GtkEventController
GtkEventController — Self-contained handler of series of events
|
|
Includes
#include <gtk/gtk.h>
Description
GtkEventController is a base, low-level implementation for event
controllers. Those react to a series of GdkEvents, and possibly trigger
actions as a consequence of those.
Functions
gtk_event_controller_get_propagation_phase ()
GtkPropagationPhase
gtk_event_controller_get_propagation_phase
(GtkEventController *controller);
Gets the propagation phase at which controller
handles events.
Returns
the propagation phase
Since: 3.14
gtk_event_controller_handle_event ()
gboolean
gtk_event_controller_handle_event (GtkEventController *controller,
const GdkEvent *event);
Feeds an events into controller
, so it can be interpreted
and the controller actions triggered.
Returns
TRUE if the event was potentially useful to trigger the
controller action
Since: 3.14
gtk_event_controller_reset ()
void
gtk_event_controller_reset (GtkEventController *controller);
Resets the controller
to a clean state. Every interaction
the controller did through “handle-event”
will be dropped at this point.
Since: 3.14
Types and Values
GtkEventController
typedef struct _GtkEventController GtkEventController;
Property Details
The “propagation-phase” property
“propagation-phase” GtkPropagationPhase
The propagation phase at which this controller will handle events.
Owner: GtkEventController
Flags: Read / Write
Default value: GTK_PHASE_BUBBLE
Since: 3.14
The “widget” property
“widget” GtkWidget *
The widget receiving the GdkEvents that the controller will handle.
Owner: GtkEventController
Flags: Read / Write / Construct Only
Since: 3.14