SugarGestures.EventController

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

Subclasses:SugarGestures.LongPressController, SugarGestures.SwipeController, SugarGestures.TouchController

Methods

Inherited:GObject.Object (37)
Structs:GObject.ObjectClass (5)
  attach (widget, flags)
  detach (widget)
  get_state ()
  handle_event (event)
  reset ()

Virtual Methods

Inherited:GObject.Object (7)
  do_began ()
  do_ended ()
  do_get_state ()
  do_handle_event (event)
  do_reset ()
  do_updated ()

Properties

Name Type Flags Short Description
state SugarGestures.EventControllerState r Controller state
widget Gtk.Widget r/w Widget the controller is attached to

Signals

Inherited:GObject.Object (1)
Name Short Description
began  
ended  
updated  

Fields

Inherited:GObject.Object (1)
Name Type Access Description
parent_instance GObject.Object r  

Class Details

class SugarGestures.EventController(**kwargs)
Bases:GObject.Object
Abstract:Yes
Structure:SugarGestures.EventControllerClass
attach(widget, flags)
Parameters:
Return type:

bool

detach(widget)
Parameters:widget (Gtk.Widget) –
Return type:bool
get_state()
Return type:SugarGestures.EventControllerState
handle_event(event)
Parameters:event (Gdk.Event) –
Return type:bool
reset()
Return type:bool
do_began() virtual
do_ended() virtual
do_get_state() virtual
Return type:SugarGestures.EventControllerState
do_handle_event(event) virtual
Parameters:event (Gdk.Event) –
Return type:bool
do_reset() virtual
do_updated() virtual

Signal Details

SugarGestures.EventController.signals.began(event_controller)
Signal Name:began
Flags:RUN_LAST
Parameters:event_controller (SugarGestures.EventController) – The object which received the signal
SugarGestures.EventController.signals.ended(event_controller)
Signal Name:ended
Flags:RUN_LAST
Parameters:event_controller (SugarGestures.EventController) – The object which received the signal
SugarGestures.EventController.signals.updated(event_controller)
Signal Name:updated
Flags:RUN_LAST
Parameters:event_controller (SugarGestures.EventController) – The object which received the signal

Property Details

SugarGestures.EventController.props.state
Name:state
Type:SugarGestures.EventControllerState
Default Value:SugarGestures.EventControllerState.NONE
Flags:READABLE

Controller state

SugarGestures.EventController.props.widget
Name:widget
Type:Gtk.Widget
Default Value:None
Flags:READABLE, WRITABLE

Widget the controller is attached to