wx.ZoomGestureEvent¶This event is generated when two fingers pinch the surface to zoom in or out.
Events Emitted by this Class¶Handlers bound for the following event types will receive a wx.ZoomGestureEvent parameter.
EVT_GESTURE_ZOOM: Process a wxEVT_GESTURE_ZOOM .
Added in version 4.1/wxWidgets-3.1.1.
Class Hierarchy¶
Inheritance diagram for class ZoomGestureEvent:
Methods Summary¶Constructor. |
|
Returns the zoom Factor since the gesture started. |
|
Sets the zoom Factor. |
Properties Summary¶See |
Class API¶Possible constructors:
ZoomGestureEvent(windid=0) -> None
This event is generated when two fingers pinch the surface to zoom in or out.
Constructor.
windid (wx.WindowID)
None
Returns the zoom Factor since the gesture started.
Hence, starting of the gesture is considered as 1:1. A value greater than 1.0 means we should enlarge (or zoom in), a value less than 1.0 means we should shrink (or zoom out).
float
Sets the zoom Factor.
zoomFactor (float)
None
See GetZoomFactor and SetZoomFactor