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

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  

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: