SugarGestures.RotateController¶
- 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.RotateController(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Return type:
- get_angle_delta()¶
- Returns:
True
if self is recognizing a rotate gesture- delta:
angle delta
- Return type:
If self is on state
SugarGestures.EventControllerState.RECOGNIZED
, this function returnsTrue
and fills in delta with the angle difference in radians since the gesture was first recognized.
Signal Details¶
- SugarGestures.RotateController.signals.angle_changed(rotate_controller, angle, angle_delta)¶
- Signal Name:
angle-changed
- Flags:
- Parameters:
rotate_controller (
SugarGestures.RotateController
) – The object which received the signalangle (
float
) – Current angle in radiansangle_delta (
float
) – Difference with the starting angle in radians