HIERARCHY
Glib::Boxed +----Clutter::Event
EVENT TYPES
- Clutter::Event::Button
- Clutter::Event::Key
- Clutter::Event::Motion
- Clutter::Event::Scroll
- Clutter::Event::Crossing
- Clutter::Event::StageState
METHODS
event = Clutter::Event->new ($type)
- $type (Clutter::EventType)
boolean = Clutter::Event->clutter_events_pending
list = $event->get_coords
event = $event->copy
unsigned = Clutter::Event->get_current_event_time
integer = $event->device_id
integer = $event->get_device_id
inputdevicetype = $event->device_type
inputdevicetype = $event->get_device_type
event or undef = Clutter::Event->get
event or undef = Clutter::Event->peek
Clutter::Event->put ($event)
- $event (Clutter::Event)
actor or undef = $event->source
actor or undef = $event->get_source
stage or undef = $event->stage
stage or undef = $event->get_stage
$state = $event->get_state
$state = $event->state
Get $event's state. If that event type doesn't have a modifier state, or if $event is undef, returns 0.$event->set_state ($new_state)
- $newstate (Clutter::ModifierType)
$timestamp = $event->get_time
$timestamp = $event->time
Get $event's time. If that event type doesn't have a time, or if $event is undef, returns 0.$event->set_time ($new_time)
- $newtime (seconds from the System Epoch)
eventtype = $event->type
ENUMS AND FLAGS
enum Clutter::EventType
- 'nothing' / 'CLUTTER_NOTHING'
- 'key-press' / 'CLUTTER_KEY_PRESS'
- 'key-release' / 'CLUTTER_KEY_RELEASE'
- 'motion' / 'CLUTTER_MOTION'
- 'enter' / 'CLUTTER_ENTER'
- 'leave' / 'CLUTTER_LEAVE'
- 'button-press' / 'CLUTTER_BUTTON_PRESS'
- 'button-release' / 'CLUTTER_BUTTON_RELEASE'
- 'scroll' / 'CLUTTER_SCROLL'
- 'stage-state' / 'CLUTTER_STAGE_STATE'
- 'destroy-notify' / 'CLUTTER_DESTROY_NOTIFY'
- 'client-message' / 'CLUTTER_CLIENT_MESSAGE'
- 'delete' / 'CLUTTER_DELETE'
enum Clutter::InputDeviceType
- 'pointer-device' / 'CLUTTER_POINTER_DEVICE'
- 'keyboard-device' / 'CLUTTER_KEYBOARD_DEVICE'
- 'extension-device' / 'CLUTTER_EXTENSION_DEVICE'
- 'n-device-types' / 'CLUTTER_N_DEVICE_TYPES'
flags Clutter::ModifierType
- 'shift-mask' / 'CLUTTER_SHIFT_MASK'
- 'lock-mask' / 'CLUTTER_LOCK_MASK'
- 'control-mask' / 'CLUTTER_CONTROL_MASK'
- 'mod1-mask' / 'CLUTTER_MOD1_MASK'
- 'mod2-mask' / 'CLUTTER_MOD2_MASK'
- 'mod3-mask' / 'CLUTTER_MOD3_MASK'
- 'mod4-mask' / 'CLUTTER_MOD4_MASK'
- 'mod5-mask' / 'CLUTTER_MOD5_MASK'
- 'button1-mask' / 'CLUTTER_BUTTON1_MASK'
- 'button2-mask' / 'CLUTTER_BUTTON2_MASK'
- 'button3-mask' / 'CLUTTER_BUTTON3_MASK'
- 'button4-mask' / 'CLUTTER_BUTTON4_MASK'
- 'button5-mask' / 'CLUTTER_BUTTON5_MASK'
- 'super-mask' / 'CLUTTER_SUPER_MASK'
- 'hyper-mask' / 'CLUTTER_HYPER_MASK'
- 'meta-mask' / 'CLUTTER_META_MASK'
- 'release-mask' / 'CLUTTER_RELEASE_MASK'
- 'modifier-mask' / 'CLUTTER_MODIFIER_MASK'
COPYRIGHT
Copyright (C) 2006, 2007, 2008 OpenedHand LtdCopyright (C) 2009 Intel Corporation
This module is free software; you can redistribute it and/or modify it under the terms of either:
- the GNU Lesser General Public Library version 2.1; or
- the Artistic License, version 2.0.
See Clutter for the full copyright notice.