package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Event_controller/index.html
Module Wrappers.Event_controller
type t = [ `event_controller | `object_ ] Gobject.objval set_static_name : t -> string option -> unitSets a name on the controller that can be used for debugging.
val set_propagation_phase : t -> Gtk_enums.propagationphase -> unitSets 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.
val set_propagation_limit : t -> Gtk_enums.propagationlimit -> unitSets the event propagation limit on the event controller.
If the limit is set to %GTK_LIMIT_SAME_NATIVE, the controller won't handle events that are targeted at widgets on a different surface, such as popovers.
val set_name : t -> string option -> unitSets a name on the controller that can be used for debugging.
val reset : t -> unitResets the @controller to a clean state.
val get_widget : t -> [ `widget | `initially_unowned | `object_ ] Gobject.objReturns the `GtkWidget` this controller relates to.
val get_propagation_phase : t -> Gtk_enums.propagationphaseGets the propagation phase at which @controller handles events.
val get_propagation_limit : t -> Gtk_enums.propagationlimitGets the propagation limit of the event controller.
val get_name : t -> string optionGets the name of @controller.
Returns the timestamp of the event that is currently being handled by the controller.
At other times, 0 is returned.
val get_current_event_state : t -> Ocgtk_gdk.Gdk.modifiertypeReturns the modifier state of the event that is currently being handled by the controller.
At other times, 0 is returned.
val get_current_event_device : t -> Ocgtk_gdk.Gdk.Wrappers.Device.t optionReturns the device of the event that is currently being handled by the controller.
At other times, %NULL is returned.
val get_current_event : t -> Ocgtk_gdk.Gdk.Wrappers.Event.t optionReturns the event that is currently being handled by the controller.
At other times, %NULL is returned.