This is the base class for all supported gesture events.
Added in version 4.1/wxWidgets-3.1.1.
Note
Gesture events are not generated by default, you must call wx.Window.EnableTouchEvents
with the appropriate parameter to request their generation.
wx.LongPressEvent, wx.PanGestureEvent, wx.PressAndTapEvent, wx.RotateGestureEvent, wx.TwoFingerTapEvent, wx.ZoomGestureEvent
Constructor. |
|
Returns the position where the event took effect, in client coordinates: position of Pan event, center of zoom for Zoom event, center of rotation for Rotate event, center of box formed by 2 fingers for Two Finger Tap event and position of the pressed finger for Press and Tap Event. |
|
Returns |
|
Returns |
|
Sets the event to be the last in a gesture sequence. |
|
Sets the event to be the first in a gesture sequence. |
|
Sets the position where the event took effect, in client coordinates: position of Pan event, center of zoom for Zoom event, center of rotation for Rotate event. |
See |
Possible constructors:
GestureEvent(winid: int=0, type: EventType=wxEVT_NULL) -> None
This is the base class for all supported gesture events.
Constructor.
winid (wx.WindowID)
type (wx.EventType)
None
Returns the position where the event took effect, in client coordinates: position of Pan event, center of zoom for Zoom event, center of rotation for Rotate event, center of box formed by 2 fingers for Two Finger Tap event and position of the pressed finger for Press and Tap Event.
Returns True
if the event was the last in a gesture sequence.
bool
Returns True
if the event was the first in a gesture sequence.
bool
Sets the event to be the last in a gesture sequence.
isEnd (bool)
None
Sets the event to be the first in a gesture sequence.
isStart (bool)
None
Sets the position where the event took effect, in client coordinates: position of Pan event, center of zoom for Zoom event, center of rotation for Rotate event.
pos (wx.Point)
None
See GetPosition
and SetPosition