SugarGestures.RotateController

g GObject.Object GObject.Object SugarGestures.EventController SugarGestures.EventController GObject.Object->SugarGestures.EventController SugarGestures.TouchController SugarGestures.TouchController SugarGestures.EventController->SugarGestures.TouchController SugarGestures.RotateController SugarGestures.RotateController SugarGestures.TouchController->SugarGestures.RotateController

Subclasses:

None

Methods

Inherited:

SugarGestures.TouchController (4), SugarGestures.EventController (5), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_angle_delta ()

Virtual Methods

Inherited:

SugarGestures.EventController (6), GObject.Object (7)

do_angle_changed (angle, delta)

Properties

Inherited:

SugarGestures.TouchController (2), SugarGestures.EventController (2)

Signals

Inherited:

SugarGestures.EventController (3), GObject.Object (1)

Name

Short Description

angle-changed

Fields

Inherited:

SugarGestures.EventController (3), GObject.Object (1)

Name

Type

Access

Description

parent_instance

SugarGestures.TouchController

r

priv

SugarGestures.RotateControllerPrivate

r

Class Details

class SugarGestures.RotateController(**kwargs)
Bases:

SugarGestures.TouchController

Abstract:

No

Structure:

SugarGestures.RotateControllerClass

classmethod new()
Return type:

SugarGestures.EventController

get_angle_delta()
Returns:

True if self is recognizing a rotate gesture

delta:

angle delta

Return type:

(bool, delta: float)

If self is on state SugarGestures.EventControllerState.RECOGNIZED, this function returns True and fills in delta with the angle difference in radians since the gesture was first recognized.

do_angle_changed(angle, delta) virtual
Parameters:

Signal Details

SugarGestures.RotateController.signals.angle_changed(rotate_controller, angle, angle_delta)
Signal Name:

angle-changed

Flags:

RUN_FIRST

Parameters:
  • rotate_controller (SugarGestures.RotateController) – The object which received the signal

  • angle (float) – Current angle in radians

  • angle_delta (float) – Difference with the starting angle in radians