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_focus/index.html

Module Wrappers.Event_controller_focus

type t = [ `event_controller_focus | `event_controller | `object_ ] Gobject.obj
val new_ : unit -> t

Create a new EventControllerFocus

val is_focus : t -> bool

Returns %TRUE if focus is within @self, but not one of its children.

val contains_focus : t -> bool

Returns %TRUE if focus is within @self or one of its children.

val on_enter : ?after:bool -> t -> callback:(unit -> unit) -> Gobject.Signal.handler_id
val on_leave : ?after:bool -> t -> callback:(unit -> unit) -> Gobject.Signal.handler_id