- public Event copy ()
Copies this.
- public void free ()
Frees all resources used by this.
- public double get_angle (Event target)
Retrieves the angle relative from this
to target
.
- public double get_axes (out uint n_axes)
Retrieves the array of axes values attached to the event.
- public uint32 get_button ()
Retrieves the button number of this
- public uint get_click_count ()
Retrieves the number of clicks of this
- public void get_coords (out float x, out float y)
Retrieves the coordinates of this
and puts them into x
and y
.
- public unowned InputDevice get_device ()
- public int get_device_id ()
Retrieves the events device id if set.
- public InputDeviceType get_device_type ()
Retrieves the type of the device for this
- public float get_distance (Event target)
Retrieves the distance between two events, a
this and a target
.
- public unowned EventSequence get_event_sequence ()
- public EventFlags get_flags ()
- public void get_gesture_motion_delta (out double dx, out double dy)
Returns the gesture motion deltas relative to the current pointer
position.
- public TouchpadGesturePhase get_gesture_phase ()
- public double get_gesture_pinch_angle_delta ()
Returns the angle delta reported by this specific event.
- public double get_gesture_pinch_scale ()
Returns the current scale as reported by
this, 1.0 being the original distance at the time the corresponding event with phase
BEGIN is received.
- public uint get_gesture_swipe_finger_count ()
Returns the number of fingers that is triggering the touchpad gesture.
- public uint16 get_key_code ()
Retrieves the keycode of the key that caused
this
- public uint get_key_symbol ()
Retrieves the key symbol of this
- public unichar get_key_unicode ()
Retrieves the unicode value for the key that caused keyev
.
- public Point get_position ()
Retrieves the event coordinates as a
Point.
- public unowned Actor get_related ()
Retrieves the related actor of a crossing event.
- public void get_scroll_delta (out double dx, out double dy)
Retrieves the precise scrolling information of
this.
- public ScrollDirection get_scroll_direction ()
Retrieves the direction of the scrolling of
this
- public ScrollFinishFlags get_scroll_finish_flags ()
- public ScrollSource get_scroll_source ()
- public unowned Actor get_source ()
Retrieves the source Actor
the event originated from, or NULL if the event has no source.
- public unowned InputDevice get_source_device ()
Retrieves the hardware device that originated the event.
- public unowned Stage get_stage ()
Retrieves the source Stage
the event originated for, or null
if the event has no stage.
- public ModifierType get_state ()
Retrieves the modifier state of the event.
- public void get_state_full (out ModifierType button_state, out ModifierType base_state, out ModifierType latched_state, out ModifierType locked_state, out ModifierType effective_state)
Retrieves the decomposition of the keyboard state into button, base,
latched, locked and effective.
- public uint32 get_time ()
Retrieves the time of the event.
- public EventType get_type ()
Retrieves the type of the event.
- public bool has_control_modifier ()
Checks whether this has the Control
modifier mask set.
- public bool has_shift_modifier ()
Checks whether this has the Shift
modifier mask set.
- public bool is_pointer_emulated ()
Checks whether a pointer this has
been generated by the windowing system.
- public void put ()
Puts a copy of the event on the back of the event queue.
- public void set_button (uint32 button)
Sets the button number of this
- public void set_coords (float x, float y)
Sets the coordinates of the this.
- public void set_device (InputDevice? device)
Sets the device for this.
- public void set_flags (EventFlags flags)
- public void set_key_code (uint16 key_code)
Sets the keycode of the this.
- public void set_key_symbol (uint key_sym)
Sets the key symbol of this.
- public void set_key_unicode (unichar key_unicode)
Sets the Unicode value of this.
- public void set_related (Actor? actor)
Sets the related actor of a crossing event
- public void set_scroll_delta (double dx, double dy)
Sets the precise scrolling information of
this.
- public void set_scroll_direction (ScrollDirection direction)
Sets the direction of the scrolling of this
- public void set_source (Actor? actor)
Sets the source Actor
of this.
- public void set_source_device (InputDevice? device)
- public void set_stage (Stage? stage)
Sets the source Stage
of the event.
- public void set_state (ModifierType state)
Sets the modifier state of the event.
- public void set_time (uint32 time_)
Sets the time of the event.