package ocgtk
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
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/Root/index.html
Module Wrappers.Root
type t = [ `root ] Gobject.objval from_gobject : 'a Gobject.obj -> tval set_focus :
t ->
[ `widget | `initially_unowned | `object_ ] Gobject.obj option ->
unitIf @focus is not the current focus widget, and is focusable, sets it as the focus widget for the root.
If @focus is %NULL, unsets the focus widget for the root.
To set the focus to a particular widget in the root, it is usually more convenient to use method@Gtk.Widget.grab_focus instead of this function.
val get_focus :
t ->
[ `widget | `initially_unowned | `object_ ] Gobject.obj optionRetrieves the current focused widget within the root.
Note that this is the widget that would have the focus if the root is active; if the root is not focused then `gtk_widget_has_focus (widget)` will be %FALSE for the widget.
val get_display : t -> Ocgtk_gdk.Gdk.Wrappers.Display.tReturns the display that this `GtkRoot` is on.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>