Gesture Core API (Compact 2013)
3/26/2014
The gesture core provides an API for applications and gesture recognizers to use. The API is documented in Gesture Reference.
The following table describes the functions for applications. The header for these functions is Winuser.h.
Function |
Description |
---|---|
Enables one or more gestures for a window or application process. |
|
Disables one or more gestures for a window or application process. |
|
Returns the list of gestures that a specified window or process supports. QueryGestures returns the set of gestures that are enabled for a specific window or process. You can use this function so that your application can disable some or all gestures and then enable the gestures later. |
|
Provides information about a gesture event. When your application receives a WM_GESTURE message, use the GetGestureInfo function to get information about the gesture, and then process the gesture accordingly. |
|
Provides additional information about a gesture event from an OEM gesture recognizer. |
The following table describes the gesture core functions for gesture recognizers. The header for these functions is Touchgesture.h.
Function |
Description |
---|---|
Registers a gesture, or queries the ID of a registered gesture. The recognizers call RegisterGesture to register gesture types with the register core. The recognizers report a recognized gesture by calling Gesture, which results in GWES sending WM_GESTURE messages to the appropriate windows. |
|
Posts a gesture event. |
|
Begins a gesture recognizer session. |
|
Ends a gesture recognizer session. |