Interface
WPEPlatformGestureController
Description [src]
interface WPEPlatform.GestureController : GObject.Object
A gesture controller.
This interface enables implementing custom gesture detection algorithms.
Objects of classes implementing this interface can be supplied to
WPEView so that they are used instead of the default gesture detector.
Prerequisite
In order to implement GestureController, your type must inherit fromGObject.
Instance methods
wpe_gesture_controller_get_gesture_delta
Get the delta of currently detected gesture such as “drag” gesture.
If it doesn’t have a delta, FALSE is returned.
wpe_gesture_controller_get_gesture_position
Get the position of currently detected gesture. If it doesn’t have
a position, FALSE is returned.
wpe_gesture_controller_handle_event
Process event with controller to detect gestures. The detected gesture, if any,
can then be retrieved with wpe_gesture_controller_get_gesture().
wpe_gesture_controller_is_drag_begin
Check if the current drag gesture is a beginning of the sequence being detected.
Interface structure
struct WPEPlatformGestureControllerInterface {
GTypeInterface parent_interface;
gboolean (* handle_event) (
WPEGestureController* controller,
WPEEvent* event
);
void (* cancel) (
WPEGestureController* controller
);
WPEGesture (* get_gesture) (
WPEGestureController* controller
);
gboolean (* get_gesture_position) (
WPEGestureController* controller,
double* x,
double* y
);
gboolean (* get_gesture_delta) (
WPEGestureController* controller,
double* x,
double* y
);
gboolean (* is_drag_begin) (
WPEGestureController* controller
);
}
No description available.
Interface members
parent_interface |
|
No description available. |
|
handle_event |
|
No description available. |
|
cancel |
|
No description available. |
|
get_gesture |
|
No description available. |
|
get_gesture_position |
|
No description available. |
|
get_gesture_delta |
|
No description available. |
|
is_drag_begin |
|
No description available. |
Virtual methods
WPEPlatform.GestureController.get_gesture_delta
Get the delta of currently detected gesture such as “drag” gesture.
If it doesn’t have a delta, FALSE is returned.
WPEPlatform.GestureController.get_gesture_position
Get the position of currently detected gesture. If it doesn’t have
a position, FALSE is returned.
WPEPlatform.GestureController.handle_event
Process event with controller to detect gestures. The detected gesture, if any,
can then be retrieved with wpe_gesture_controller_get_gesture().
WPEPlatform.GestureController.is_drag_begin
Check if the current drag gesture is a beginning of the sequence being detected.