InkApplicationGesture enumeration

Defines values that set the interest in a set of application-specific gesture.

Application gestures are gestures that you can choose to have your application support. Applications that are specifically designed to work with a pen are more likely to use these gestures than applications designed for mouse and keyboard.

The Tap and DoubleTap gestures are supported as application gestures and system gestures (system gestures are defined in the InkSystemGesture enumeration type). This means you can incorporate an application gesture that has a component that may be construed as a Tap or DoubleTap (such as the Exclamation gesture). In this case, enable the Tap application gesture and disable the Tap system gesture in your application. When a user taps, the application gesture is recognized. This allows your application to listen for a single component that can both identify and distinguish a system gesture Tap from a Tap within the application gesture.

In addition to the following list of gestures, Microsoft intends to support many gesture glyphs as part of the Microsoft gesture recognizer. For more information about these unimplemented gesture glyphs, see Unimplemented Glyphs.

For more information about application gestures and system gestures, see Using Gestures and Pen Input, Ink, and Recognition.

Syntax

typedef enum InkApplicationGesture {
  IAG_AllGestures,
  IAG_NoGesture,
  IAG_Scratchout,
  IAG_Triangle,
  IAG_Square,
  IAG_Star,
  IAG_Check,
  IAG_Curlicue,
  IAG_DoubleCurlicue,
  IAG_Circle,
  IAG_DoubleCircle,
  IAG_SemiCircleLeft,
  IAG_SemiCircleRight,
  IAG_ChevronUp,
  IAG_ChevronDown,
  IAG_ChevronLeft,
  IAG_ChevronRight,
  IAG_ArrowUp,
  IAG_ArrowDown,
  IAG_ArrowLeft,
  IAG_ArrowRight,
  IAG_Up,
  IAG_Down,
  IAG_Left,
  IAG_Right,
  IAG_UpDown,
  IAG_DownUp,
  IAG_LeftRight,
  IAG_RightLeft,
  IAG_UpLeftLong,
  IAG_UpRightLong,
  IAG_DownLeftLong,
  IAG_DownRightLong,
  IAG_UpLeft,
  IAG_UpRight,
  IAG_DownLeft,
  IAG_DownRight,
  IAG_LeftUp,
  IAG_LeftDown,
  IAG_RightUp,
  IAG_RightDown,
  IAG_Exclamation,
  IAG_Tap,
  IAG_DoubleTap
} ;

Constants

IAG_AllGestures All application-specific gestures.
IAG_NoGesture No application-specific gestures. See the following "Remarks" section for more details on this member.

This is the default value.
IAG_Scratchout This gesture must be drawn as a single stroke that has at least three back-and-forth motions.
IAG_Triangle The triangle must be drawn in a single stroke, without lifting the pen.
IAG_Square The square can be drawn in one or two strokes. In one stroke, draw the entire square without lifting the pen. In two strokes, draw three sides of the square and use another stroke to draw the remaining side. Do not use more than two strokes to draw the square.
IAG_Star The star must have exactly five points and be drawn in a single stroke without lifting the pen.
IAG_Check The upward stroke must be twice as long as the smaller downward stroke.
IAG_Curlicue Start the curlicue on the ink on which you intend to take action.
IAG_DoubleCurlicue Start the double-curlicue on the ink on which you intend to take action.
IAG_Circle The circle must be drawn in a single stroke without lifting the pen.
IAG_DoubleCircle The two circles must overlap each other and be drawn in a single stroke without lifting the pen.
IAG_SemiCircleLeft The semicircle must be drawn from left to right. Horizontally, the two ends of the semicircle should be as even as possible.
IAG_SemiCircleRight The semicircle must be drawn from right to left. Horizontally, the two ends of the semicircle should be as even as possible.
IAG_ChevronUp Both sides of the chevron must be drawn as equal as possible. The angle must be sharp and end in a point.
IAG_ChevronDown Both sides of the chevron must be drawn as equal as possible. The angle must be sharp and end in a point.
IAG_ChevronLeft Both sides of the chevron must be drawn as equal as possible. The angle must be sharp and end in a point.
IAG_ChevronRight Both sides of the chevron must be drawn as equal as possible. The angle must be sharp and end in a point.
IAG_ArrowUp The arrow can be drawn in single stroke or in two strokes in which one stroke is the line and the other is the arrow head. Do not use more than two strokes to draw the arrow.
IAG_ArrowDown The arrow can be drawn in a single stroke or in two strokes in which one stroke is the line and the other is the arrow head. Do not use more than two strokes to draw the arrow.
IAG_ArrowLeft The arrow can be drawn in a single stroke or in two strokes in which one stroke is the line and the other is the arrow head. Do not use more than two strokes to draw the arrow.
IAG_ArrowRight The arrow can be drawn in a single stroke or in two strokes in which one stroke is the line and the other is the arrow head. Do not use more than two strokes to draw the arrow.
IAG_Up This gesture must be drawn as a single fast flick in the upward direction.

This gesture is used by Flicks Gestures.
IAG_Down This gesture must be drawn as a single fast flick in the downward direction.

This gesture is used by Flicks Gestures.
IAG_Left This gesture must be drawn as a single fast flick to the left.

This gesture is used by Flicks Gestures.
IAG_Right This gesture must be drawn as a single fast flick to the right.

This gesture is used by Flicks Gestures.
IAG_UpDown This gesture must be drawn in a single stroke starting with the up stroke. The two strokes must be as close to each other as possible.
IAG_DownUp This gesture must be drawn in a single stroke starting with the down stroke. The two strokes must be as close to each other as possible.
IAG_LeftRight This gesture must be drawn in a single stroke starting with the left stroke. The two strokes must be as close to each other as possible.
IAG_RightLeft This gesture must be drawn in a single stroke starting with the right stroke. The two strokes must be as close to each other as possible.
IAG_UpLeftLong This gesture must be drawn in a single stroke starting with the up stroke. The left stroke must be about twice as long as the up stroke, and the two strokes must be at a right angle.
IAG_UpRightLong This gesture must be drawn in a single stroke starting with the up stroke. The right stroke must be about twice as long as the up stroke, and the two strokes must be at a right angle.
IAG_DownLeftLong This gesture must be drawn in a single stroke starting with the down stroke. The left stroke is about twice as long as the up stroke, and the two strokes must be at a right angle.
IAG_DownRightLong This gesture must be drawn in a single stroke starting with the down stroke. The right stroke must be about twice as long as the up stroke, and the two strokes must be at a right angle.
IAG_UpLeft This gesture must be drawn in a single stroke starting with the up stroke. The two sides must be as equal in length as possible and at a right angle.
IAG_UpRight This gesture must be drawn in a single stroke starting with the up stroke. The two sides must be as equal in length as possible and at a right angle.
IAG_DownLeft This gesture must be drawn in a single stroke starting with the down stroke. The two sides must be as equal in length as possible and at a right angle.
IAG_DownRight This gesture must be drawn in a single stroke starting with the down stroke. The two sides must be as equal in length as possible and at a right angle.
IAG_LeftUp This gesture must be drawn in a single stroke starting with the left stroke. The two sides must be as equal in length as possible and at a right angle.
IAG_LeftDown This gesture must be drawn in a single stroke starting with the left stroke. The two sides are as equal in length as possible and at a right angle.
IAG_RightUp This gesture must be drawn in a single stroke starting with the right stroke. The two sides must be as equal in length as possible and at a right angle.
IAG_RightDown This gesture must be drawn in a single stroke starting with the right stroke. The two sides must be as equal in length as possible and at a right angle.
IAG_Exclamation The line must be drawn first and then the dot drawn quickly and as close to the line as possible.
IAG_Tap A mouse click.

For the least amount of slipping across the digitizer surface, tap quickly.
IAG_DoubleTap A mouse double-click.

Tap quickly and in as close to the same place for best results.

Remarks

The default value is NoGesture, which is actually a cutoff line that represents the Microsoft gesture recognizer minimum suggested confidence. It does not actually represent a gesture or lack of gesture, just the point at which the gesture recognizer lacks enough confidence in the result accuracy to recommend anything following that point.

For example, assume that a gesture array consists of the following values: Circle, LeftRight, NoGesture, RightLeft, and Triangle. In this case, the gesture recognizer has a great degree of confidence in Circle and less confidence in LeftRight. The recognizer has very low confidence in RightLeft and Triangle because they come after NoGesture in the array order.

The confidence level at which the gesture recognizer returns NoGesture cannot be changed.

If NoGesture is the first element in the array (which means that every recognized gesture is below the suggested confidence threshold), then the platform alters the default value of the Cancel parameter in the Gesture event handler from FALSE to TRUE. This causes the ink to be considered a stroke and not be deleted from the InkDisp object by default.

Requirements

   
Minimum supported client Windows XP Tablet PC Edition [desktop apps only]
Minimum supported server None supported
Header msinkaut.h

See also

CollectionMode Property [InkPicture Class]

Gesture Event [InkPicture Control]

GetGestureStatus Method [InkPicture Control]

GetHotPoint Method

InkSystemGesture Enumeration

Integrating Application Gestures

SetGestureStatus Method [InkPicture Control]

SystemGesture Event [InkPicture Class]

Using Gestures