Struct
ClutterEvent
Functions
clutter_event_add_filter
Adds a function which will be called for all events that Clutter processes. The function will be called before any signals are emitted for the event and it will take precedence over any grabs.
clutter_event_remove_filter
Removes an event filter that was previously added with
clutter_event_add_filter()
.
Instance methods
clutter_event_get_device
Retrieves the ClutterInputDevice
for the event.
If you want the physical device the event originated from, use
clutter_event_get_source_device()
.
clutter_event_get_gesture_motion_delta
Returns the gesture motion deltas relative to the current pointer position.4.
clutter_event_get_gesture_motion_delta_unaccelerated
Returns the unaccelerated gesture motion deltas relative to the current
pointer position. Unlike clutter_event_get_gesture_motion_delta()
,
pointer acceleration is ignored.
clutter_event_get_gesture_pinch_angle_delta
Returns the angle delta reported by this specific event.
clutter_event_get_gesture_pinch_scale
Returns the current scale as reported by event
, 1.0 being the original
distance at the time the corresponding event with phase
CLUTTER_TOUCHPAD_GESTURE_PHASE_BEGIN
is received.
is received.
clutter_event_get_key_state
Returns the modifier state decomposed into independent
pressed/latched/locked states. The effective state is a
composition of these 3 states, see clutter_event_get_state()
.
clutter_event_get_scroll_finish_flags
Returns the ClutterScrollFinishFlags
of an scroll event. Those
can be used to determine whether post-scroll effects like kinetic
scrolling should be applied.
clutter_event_get_source
Retrieves the source ClutterActor
the event originated from, or
NULL if the event has no source.
clutter_event_get_state
Retrieves the modifier state of the event. In case the window system supports reporting latched and locked modifiers, this function returns the effective state.
clutter_event_get_touchpad_gesture_finger_count
Returns the number of fingers that is triggering the touchpad gesture.
clutter_event_is_pointer_emulated
Checks whether a pointer event
has been generated by the windowing
system. The returned value can be used to distinguish between events
synthesized by the windowing system itself (as opposed by Clutter).
clutter_event_put
Puts a copy of the event on the back of the event queue. The event will
have the CLUTTER_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.