clutter.Event
class clutter.Event(gobject.GBoxed): |
def put()
Puts a copy of the event on the back of the event queue. The event will have the EVENT_FLAG_SYNTHETIC flag set. If the source is set event signals will be emitted for this source and capture/bubbling for its ancestors. If the source is not set it will be generated by picking or use the actor that currently has keyboard focus.
def get_state()
Returns : | a ClutterModifierType |
Returns the modifier state of the event.
def get_coords()
Returns : | 2-tuple with X and Y coordinates. |
Returns the coordinates of the event.
def get_source()
Returns : | a clutter.Actor |
Returns the source clutter.Actor
the event originated from, or None
if the event has no source.
def get_stage()
Returns : | a clutter.Stage or None |
Returns the source clutter.Stage
the event originated for, or None
if the event has no stage.
def get_flags()
Returns : | the event flags |
Returns the clutter.EventFlags of the event.
def get_button()
Returns : | the button number |
Returns the button number of the event.
def get_click_count()
Returns : | the click count |
Returns the number of clicks of the event.
def get_key_symbol()
Returns : | the key symbol representing the key |
Returns the key symbol of the event.
def get_key_code()
Returns : | The keycode representing the key |
Returns the keycode of the key that caused the event.
def get_key_unicode()
Returns : | The unicode value representing the key |
Returns the unicode value for the key that caused the event.
def get_related()
Returns : | the related clutter.Actor or None . |
Returns the related actor of a crossing event.