PinchEvent

class ginga.Bindings.PinchEvent(button=None, state=None, mode=None, modifiers=None, rot_deg=None, scale=None, data_x=None, data_y=None, viewer=None)[source]

Bases: UIEvent

A pinch event in a Ginga viewer.

Attributes
buttonstr

The name of the button as set up in the configuration

state: str

‘start’ (gesture starting), ‘move’ (in action) or ‘stop’ (done)

modestr

The mode name of the mode that was active when the event happened

modifiersset of str

A set of names of modifier keys that were pressed at the time

rot_degfloat

Amount of rotation in degrees

scalefloat

Scale of the pinch shrink or enlargement

data_xfloat

X part of the data coordinates of the viewer under the cursor

data_yfloat

Y part of the data coordinates of the viewer under the cursor

viewersubclass of ImageViewBase

The viewer in which the event happened