SugarGestures.ZoomController¶
- Subclasses:
None
Methods¶
- Inherited:
SugarGestures.TouchController (4), SugarGestures.EventController (5), GObject.Object (37)
- Structs:
class |
|
Virtual Methods¶
- Inherited:
|
Properties¶
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
||
priv |
r |
Class Details¶
- class SugarGestures.ZoomController(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Return type:
- get_scale_delta()¶
- Returns:
True
if self is recognizing a zoom gesture- scale:
zoom delta
- Return type:
If self is on state
SugarGestures.EventControllerState.RECOGNIZED
, this function returnsTrue
and fills in scale with the zooming difference since the gesture was recognized (hence the starting point is considered 1x).
Signal Details¶
- SugarGestures.ZoomController.signals.scale_changed(zoom_controller, scale)¶
- Signal Name:
scale-changed
- Flags:
- Parameters:
zoom_controller (
SugarGestures.ZoomController
) – The object which received the signalscale (
float
) – Difference with the starting zooming state