phoenix_title wx.PanGestureEvent

This event is generated when the user moves a finger on the surface.

wxGTK also generates this event during mouse dragging (mouse motion while a left mouse button is depressed).

Note that OSX requires the primary mouse button to be pressed while performing the finger movement.

events Events Emitted by this Class

Handlers bound for the following event types will receive a wx.PanGestureEvent parameter.

  • EVT_GESTURE_PAN: Process a wxEVT_GESTURE_PAN .

New in version 4.1/wxWidgets-3.1.1.


class_hierarchy Class Hierarchy

Inheritance diagram for class PanGestureEvent:

method_summary Methods Summary

__init__

Constructor.

GetDelta

Returns the distance covered since the previous panning event.

SetDelta

Sets the distance covered since the previous panning event.


property_summary Properties Summary

Delta

See GetDelta and SetDelta


api Class API

class wx.PanGestureEvent(GestureEvent)

Possible constructors:

PanGestureEvent(winid=0)

This event is generated when the user moves a finger on the surface.


Methods

__init__(self, winid=0)

Constructor.

Parameters

winid (wx.WindowID) –



GetDelta(self)

Returns the distance covered since the previous panning event.

Return type

wx.Point



SetDelta(self, delta)

Sets the distance covered since the previous panning event.

Parameters

delta (wx.Point) –


Properties

Delta

See GetDelta and SetDelta