phoenix_title wx.ZoomGestureEvent

This event is generated when two fingers pinch the surface to zoom in or out.

events 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 Class Hierarchy

Inheritance diagram for class ZoomGestureEvent:

method_summary Methods Summary

__init__

Constructor.

GetZoomFactor

Returns the zoom Factor since the gesture started.

SetZoomFactor

Sets the zoom Factor.


property_summary Properties Summary

ZoomFactor

See GetZoomFactor and SetZoomFactor


api Class API

class wx.ZoomGestureEvent(GestureEvent)

Possible constructors:

ZoomGestureEvent(windid: int=0) -> None

This event is generated when two fingers pinch the surface to zoom in or out.


Methods

__init__(self, windid: int = 0)

Constructor.

Parameters:

windid (wx.WindowID)

Return type:

None



GetZoomFactor(self)

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

Return type:

float



SetZoomFactor(self, zoomFactor: float)

Sets the zoom Factor.

Parameters:

zoomFactor (float)

Return type:

None


Properties

ZoomFactor

See GetZoomFactor and SetZoomFactor