SugarGestures.LongPressController

g GObject.Object GObject.Object SugarGestures.EventController SugarGestures.EventController GObject.Object->SugarGestures.EventController SugarGestures.LongPressController SugarGestures.LongPressController SugarGestures.EventController->SugarGestures.LongPressController

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

class

new ()

Virtual Methods

Inherited:

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

do_pressed (x, y)

Properties

Inherited:

SugarGestures.EventController (2)

Name

Type

Flags

Short Description

threshold

int

r/w

Threshold in pixels where the long press operation remains valid

trigger-delay

int

r/w

delay in milliseconds before the gesture is triggered

Signals

Inherited:

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

Name

Short Description

pressed

Fields

Inherited:

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

Name

Type

Access

Description

parent_instance

SugarGestures.EventController

r

priv

SugarGestures.LongPressControllerPrivate

r

Class Details

class SugarGestures.LongPressController(**kwargs)
Bases:

SugarGestures.EventController

Abstract:

No

Structure:

SugarGestures.LongPressControllerClass

classmethod new()
Return type:

SugarGestures.EventController

do_pressed(x, y) virtual
Parameters:

Signal Details

SugarGestures.LongPressController.signals.pressed(long_press_controller, object, p0)
Signal Name:

pressed

Flags:

RUN_LAST

Parameters:

Property Details

SugarGestures.LongPressController.props.threshold
Name:

threshold

Type:

int

Default Value:

32

Flags:

READABLE, WRITABLE

Threshold in pixels where the long press operation remains valid

SugarGestures.LongPressController.props.trigger_delay
Name:

trigger-delay

Type:

int

Default Value:

600

Flags:

READABLE, WRITABLE

delay in milliseconds before the gesture is triggered