package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Event_controller/index.html

Module Wrappers.Event_controller

type t = [ `event_controller | `object_ ] Gobject.obj
val set_static_name : t -> string option -> unit

Sets a name on the controller that can be used for debugging.

val set_propagation_phase : t -> Gtk_enums.propagationphase -> unit

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.

val set_propagation_limit : t -> Gtk_enums.propagationlimit -> unit

Sets 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 -> unit

Sets a name on the controller that can be used for debugging.

val reset : t -> unit

Resets the @controller to a clean state.

val get_widget : t -> [ `widget | `initially_unowned | `object_ ] Gobject.obj

Returns the `GtkWidget` this controller relates to.

val get_propagation_phase : t -> Gtk_enums.propagationphase

Gets the propagation phase at which @controller handles events.

val get_propagation_limit : t -> Gtk_enums.propagationlimit

Gets the propagation limit of the event controller.

val get_name : t -> string option

Gets the name of @controller.

val get_current_event_time : t -> UInt32.t

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.modifiertype

Returns 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 option

Returns 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 option

Returns the event that is currently being handled by the controller.

At other times, %NULL is returned.