Gtk.Event_Controller.Gtk_Event_Controller is a base, low-level implementation for event controllers. Those react to a series of Gdk_Events, and possibly trigger actions as a consequence of those.
function Get_Propagation_Phase
(Self : not null access Gtk_Event_Controller_Record)
return Gtk.Enums.Gtk_Propagation_Phase
Gets the propagation phase at which Controller handles events. Since: gtk+ 3.14
the propagation phase
function Get_Type return Glib.GType
function Get_Widget
(Self : not null access Gtk_Event_Controller_Record)
return Gtk.Widget.Gtk_Widget
Returns the Gtk.Widget.Gtk_Widget this controller relates to. Since: gtk+ 3.14
a Gtk.Widget.Gtk_Widget
type Gtk_Event_Controller is access all Gtk_Event_Controller_Record'Class;
type Gtk_Event_Controller_Record is new GObject_Record with null record;
function Handle_Event
(Self : not null access Gtk_Event_Controller_Record;
Event : Gdk.Event.Gdk_Event) return Boolean
Feeds an events into Controller, so it can be interpreted and the controller actions triggered. Since: gtk+ 3.14
a Gdk.Event.Gdk_Event
True if the event was potentially useful to trigger the controller action
Propagation_Phase_Property : constant Gtk.Enums.Property_Gtk_Propagation_Phase;
The propagation phase at which this controller will handle events.
procedure Reset (Self : not null access Gtk_Event_Controller_Record)
Resets the Controller to a clean state. Every interaction the controller did through Gtk.Event_Controller.Gtk_Event_Controller::handle-event will be dropped at this point. Since: gtk+ 3.14
procedure Set_Propagation_Phase
(Self : not null access Gtk_Event_Controller_Record;
Phase : Gtk.Enums.Gtk_Propagation_Phase)
Sets the propagation phase at which a controller handles events. If Phase is Gtk.Enums.Phase_None, no automatic event handling will be performed, but other additional gesture maintenance will. In that phase, the events can be managed by calling Gtk.Event_Controller.Handle_Event. Since: gtk+ 3.14
a propagation phase
Widget_Property : constant Glib.Properties.Property_Object;
Type: Gtk.Widget.Gtk_Widget The widget receiving the Gdk_Events that the controller will handle.