phoenix_title wx.GestureEvent

This is the base class for all supported gesture events.

New 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.


class_hierarchy Class Hierarchy

Inheritance diagram for class GestureEvent:

method_summary Methods Summary

__init__

Constructor.

GetPosition

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.

IsGestureEnd

Returns True if the event was the last in a gesture sequence.

IsGestureStart

Returns True if the event was the first in a gesture sequence.

SetGestureEnd

Sets the event to be the last in a gesture sequence.

SetGestureStart

Sets the event to be the first in a gesture sequence.

SetPosition

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.


property_summary Properties Summary

Position

See GetPosition and SetPosition


api Class API

class wx.GestureEvent(Event)

Possible constructors:

GestureEvent(winid=0, type=wxEVT_NULL)

This is the base class for all supported gesture events.


Methods

__init__(self, winid=0, type=wxEVT_NULL)

Constructor.

Parameters
  • winid (wx.WindowID) –

  • type (wx.EventType) –



GetPosition(self)

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.

Return type

wx.Point



IsGestureEnd(self)

Returns True if the event was the last in a gesture sequence.

Return type

bool



IsGestureStart(self)

Returns True if the event was the first in a gesture sequence.

Return type

bool



SetGestureEnd(self, isEnd=True)

Sets the event to be the last in a gesture sequence.

Parameters

isEnd (bool) –



SetGestureStart(self, isStart=True)

Sets the event to be the first in a gesture sequence.

Parameters

isStart (bool) –



SetPosition(self, pos)

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.

Parameters

pos (wx.Point) –


Properties

Position

See GetPosition and SetPosition