Gtk.Event_Controller

Entities

Tagged Types

Access Types

Constants

Subprograms

Description

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.

Get_Propagation_Phase

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

Parameters
Self
Return Value

the propagation phase

Get_Type

function Get_Type return Glib.GType
Return Value

Get_Widget

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

Parameters
Self
Return Value

a Gtk.Widget.Gtk_Widget

Gtk_Event_Controller

type Gtk_Event_Controller is access all Gtk_Event_Controller_Record'Class;

Gtk_Event_Controller_Record

type Gtk_Event_Controller_Record is new GObject_Record with null record;

Handle_Event

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

Parameters
Self
Event

a Gdk.Event.Gdk_Event

Return Value

True if the event was potentially useful to trigger the controller action

Propagation_Phase_Property

Propagation_Phase_Property : constant Gtk.Enums.Property_Gtk_Propagation_Phase;

The propagation phase at which this controller will handle events.

Reset

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

Parameters
Self

Set_Propagation_Phase

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

Parameters
Self
Phase

a propagation phase

Widget_Property

Widget_Property : constant Glib.Properties.Property_Object;

Type: Gtk.Widget.Gtk_Widget The widget receiving the Gdk_Events that the controller will handle.