SugarGestures.ZoomController

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

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

class

new ()

get_scale_delta ()

Virtual Methods

Inherited:

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

do_scale_changed (scale)

Properties

Inherited:

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

Signals

Inherited:

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

Name

Short Description

scale-changed

Fields

Inherited:

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

Name

Type

Access

Description

parent_instance

SugarGestures.TouchController

r

priv

SugarGestures.ZoomControllerPrivate

r

Class Details

class SugarGestures.ZoomController(**kwargs)
Bases:

SugarGestures.TouchController

Abstract:

No

Structure:

SugarGestures.ZoomControllerClass

classmethod new()
Return type:

SugarGestures.EventController

get_scale_delta()
Returns:

True if self is recognizing a zoom gesture

scale:

zoom delta

Return type:

(bool, scale: float)

If self is on state SugarGestures.EventControllerState.RECOGNIZED, this function returns True and fills in scale with the zooming difference since the gesture was recognized (hence the starting point is considered 1x).

do_scale_changed(scale) virtual
Parameters:

scale (float) –

Signal Details

SugarGestures.ZoomController.signals.scale_changed(zoom_controller, scale)
Signal Name:

scale-changed

Flags:

RUN_FIRST

Parameters: