| Top |
| GtkPropagationPhase | propagation-phase | Read / Write |
| GtkWidget * | widget | Read / Write / Construct Only |
GObject
╰── GtkEventController
├── GtkEventControllerKey
├── GtkEventControllerMotion
├── GtkEventControllerScroll
├── GtkGesture
╰── GtkPadController
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.
Since: 3.14
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().
Since: 3.14
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.
Since: 3.14
GtkWidget *
gtk_event_controller_get_widget (GtkEventController *controller);
Returns the GtkWidget this controller relates to.
Since: 3.14
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
“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