A newly allocated Clutter.Event
Frees all resources used by event.
Retrieves the angle relative from source to target.
The direction of the angle is from the position X axis towards the positive Y axis.
the angle between two Clutter.Event
Retrieves the array of axes values attached to the event.
an array of axis values
Retrieves the button number of event
the button number
Retrieves the coordinates of event and puts them into x and y.
Returns the device tool that originated this event
The tool of this event8
Retrieves the distance between two events, a source and a target.
the distance between two Clutter.Event
Retrieves the Clutter.EventSequence of event.
the event sequence, or null
Returns the gesture motion deltas relative to the current pointer position.4
Returns the unaccelerated gesture motion deltas relative to the current pointer position. Unlike Clutter.Event.get_gesture_motion_delta, pointer acceleration is ignored.
Returns the phase of the event, See Clutter.TouchpadGesturePhase.
the phase of the gesture event.
Returns the angle delta reported by this specific event.
The angle delta relative to the previous event.4
Returns the current scale as reported by event, 1.0 being the original
distance at the time the corresponding event with phase
Clutter.TouchpadGesturePhase.BEGIN is received.
is received.
the current pinch gesture scale4
Retrieves the keycode of the key that caused event
The keycode representing the key
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.
Retrieves the key symbol of event
the key symbol representing the key
Retrieves the unicode value for the key that caused keyev.
The unicode value representing the key
Returns the details of a pad event.
TRUE if event details could be obtained
Retrieves the related actor of a crossing event.
the related Clutter.Actor, or null
Retrieves the precise scrolling information of event.
The event has to have a Clutter.ScrollEvent.direction value
of Clutter.ScrollDirection.SMOOTH.
Retrieves the direction of the scrolling of event
the scrolling direction
Returns the Clutter.ScrollFinishFlags of an scroll event. Those can be used to determine whether post-scroll effects like kinetic scrolling should be applied.
The scroll finish flags
Returns the Clutter.ScrollSource that applies to an scroll event.
The source of scroll events
Retrieves the source Clutter.Actor the event originated from, or NULL if the event has no source.
Retrieves the hardware device that originated the event.
a pointer to a Clutter.InputDevice or null
Retrieves the modifier state of the event. In case the window system supports reporting latched and locked modifiers, this function returns the effective state.
the modifier state parameter, or 0
Retrieves the time of the event.
the time of the event, or CLUTTER_CURRENT_TIME
Returns the number of fingers that is triggering the touchpad gesture.
the number of fingers in the gesture.4
Checks whether event has the Control modifier mask set.
true if the event has the Control modifier mask set
Checks whether event has the Shift modifier mask set.
true if the event has the Shift modifier mask set
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).
true if the event is pointer emulated
Puts a copy of the event on the back of the event queue. The event will have the Clutter.EventFlags.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
Staticadd_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.
The Clutter.Stage to capture events for
The callback function which will be passed all events.
StaticgetStaticremove_Removes an event filter that was previously added with Clutter.Event.add_filter.
The ID of the event filter, as returned from Clutter.Event.add_filter
Copies
event.