Top | ![]() |
![]() |
![]() |
![]() |
gchar * | name | Read / Write |
GtkPropagationLimit | propagation-limit | Read / Write |
GtkPropagationPhase | propagation-phase | Read / Write |
GtkWidget * | widget | Read |
GObject ╰── GtkEventController ├── GtkGesture ├── GtkDropTarget ├── GtkEventControllerKey ├── GtkEventControllerFocus ├── GtkEventControllerLegacy ├── GtkEventControllerMotion ├── GtkEventControllerScroll ├── GtkPadController ╰── GtkShortcutController
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.
GtkPropagationPhase
gtk_event_controller_get_propagation_phase
(GtkEventController *controller
);
Gets the propagation phase at which controller
handles events.
void gtk_event_controller_set_propagation_phase (GtkEventController *controller
,GtkPropagationPhase phase
);
Sets the propagation phase at which a controller handles events.
If phase
is GTK_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()
.
GtkPropagationLimit
gtk_event_controller_get_propagation_limit
(GtkEventController *controller
);
void gtk_event_controller_set_propagation_limit (GtkEventController *controller
,GtkPropagationLimit limit
);
GtkWidget *
gtk_event_controller_get_widget (GtkEventController *controller
);
Returns the GtkWidget this controller relates to.
void
gtk_event_controller_reset (GtkEventController *controller
);
Resets the controller
to a clean state. Every interaction
the controller did through gtk_event_controll_handle_event()
will be dropped at this point.
“name”
property “name” gchar *
Name for this controller.
Owner: GtkEventController
Flags: Read / Write
Default value: NULL
“propagation-limit”
property“propagation-limit” GtkPropagationLimit
The limit for which events this controller will handle.
Owner: GtkEventController
Flags: Read / Write
Default value: GTK_LIMIT_SAME_NATIVE
“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
“widget”
property“widget” GtkWidget *
The widget receiving the GdkEvents that the controller will handle.
Owner: GtkEventController
Flags: Read