EventControllerMotion
Object Hierarchy:
Description:
[
CCode ( type_id =
"gtk_event_controller_motion_get_type ()" ) ]
public class EventControllerMotion :
EventController
Tracks the pointer position.
The event controller offers [signal@Gtk.EventControllerMotion:GtkEventControllerMotion:enter] and [
signal@Gtk.EventControllerMotion:GtkEventControllerMotion:leave] signals, as well as [
property@Gtk.EventControllerMotion:is-pointer] and [property@Gtk.EventControllerMotion:contains-pointer] properties which are updated to
reflect changes in the pointer position as it moves over the widget.
Content:
Properties:
- public bool contains_pointer { get; }
Whether the pointer is in the controllers widget or a descendant.
- public bool is_pointer { get; }
Whether the pointer is in the controllers widget itself, as opposed to
in a descendent widget.
Creation methods:
Signals:
- public signal void enter (double x, double y)
Signals that the pointer has entered the widget.
- public signal void leave ()
Signals that the pointer has left the widget.
- public signal void motion (double x, double y)
Emitted when the pointer moves inside the widget.
Inherited Members:
All known members inherited from class Gtk.EventController
All known members inherited from class GLib.Object