Share via


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

EnableGestures

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

DisableGestures

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

QueryGestures

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.

GetGestureInfo

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.

GetGestureExtraArguments

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

RegisterGesture

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.

Gesture

Posts a gesture event.

GestureBeginSession

Begins a gesture recognizer session.

GestureEndSession

Ends a gesture recognizer session.

See Also

Concepts

Gesture Architecture