Share via


Gesture Core API (Compact 7)

3/12/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

EnableGestures

Enables one or more touch gestures for a window or application process.

DisableGestures

Disables one or more touch gestures for a window or application process.

QueryGestures

Returns the list of gestures that a specified window or process supports.

GetGestureInfo

Provides information about a gesture event.

GetGestureExtraArguments

Provides additional information about a gesture event from an OEM gesture recognizer.

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.

When your application receives a WM_GESTURE message, use the GetGestureInfo function to get information about the gesture, and then process the gesture accordingly.

The following table describes the gesture core functions for gesture recognizers. The header for these functions is Touchgesture.h.

Function Description

RegisterGesture

Registers a gesture, or queries the ID of a registered gesture.

Gesture

Posts a gesture event.

GestureBeginSession

Begins a gesture recognizer session.

GestureEndSession

Ends a gesture recognizer session.

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.

See Also

Concepts

Gesture Architecture