![]() |
![]() |
![]() |
libgrip Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
struct GripGestureManager; struct GripGestureManagerClass; GripGestureManager * grip_gesture_manager_get (void
); void (*GripGestureCallback) (GtkWidget *widget
,GripTimeType time
,GripGestureEvent *gesture
,gpointer user_data
); void grip_gesture_manager_register_window (GripGestureManager *manager
,GtkWidget *widget
,GripGestureType gesture_type
,GripDeviceType device_type
,gint touch_points
,GripGestureCallback callback
,gpointer user_data
,GDestroyNotify destroy
); void grip_gesture_manager_unregister_window (GripGestureManager *manager
,GtkWidget *widget
);
The Grip gesture managre is a singleton object that connections to the gesture recognition engine and manages gesture subscriptions for GTK widgets.
struct GripGestureManager;
A singleton manager into which a window may be registered to receive multitouch gesture events.
struct GripGestureManagerClass { GObjectClass parent_class; };
The class object for a GripGestureManager.
GripGestureManager * grip_gesture_manager_get (void
);
Retrieves a GripGestureManager pointer.
Returns : |
A GripGestureManager. [transfer none] |
void (*GripGestureCallback) (GtkWidget *widget
,GripTimeType time
,GripGestureEvent *gesture
,gpointer user_data
);
The gesture callback function is registered by the
grip_gesture_manager_register_window()
function and gets called whenever a
new gesture event has been received. The same function may be registered for
more than one gesture type.
The GripGestureCallback function is the main customization point for application response to gestural input.
|
A GtkWidget pointer. [in] |
|
A GripTimeType |
|
A GripGestureEvent pointer. [in] |
|
user data. [transfer none] |
void grip_gesture_manager_register_window (GripGestureManager *manager
,GtkWidget *widget
,GripGestureType gesture_type
,GripDeviceType device_type
,gint touch_points
,GripGestureCallback callback
,gpointer user_data
,GDestroyNotify destroy
);
|
self |
|
A GtkWidget on which to register the gesture |
|
Gesture type |
|
Type of the device producing the gesture. |
|
Number of touch points |
|
Callback |
|
User data. [transfer none] |
|
Destroy. [transfer none][scope async] |
void grip_gesture_manager_unregister_window (GripGestureManager *manager
,GtkWidget *widget
);
"device-available"
signalvoid user_function (GripGestureManager *gesture_manager,
GripInputDevice *input_device,
gpointer user_data) : Run Last
Signals the availability of a new gesture-capable input device.
|
the GripGestureManager sending the signal |
|
the new GripInputDevice just added. |
|
user data set when the signal handler was connected. |
"device-unavailable"
signalvoid user_function (GripGestureManager *gesture_manager,
GripInputDevice *input_device,
gpointer user_data) : Run Last
Signals the unavailability of a gesture-capable input device.
|
the GripGestureManager sending the signal |
|
the new GripInputDevice just added. |
|
user data set when the signal handler was connected. |