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

Module Wrappers.Box

type t = [ `box | `widget | `initially_unowned | `object_ ] Gobject.obj
val new_ : Gtk_enums.orientation -> int -> t

Create a new Box

val set_spacing : t -> int -> unit

Sets the number of pixels to place between children of @box.

val set_homogeneous : t -> bool -> unit

Sets whether or not all children of @box are given equal space in the box.

val set_baseline_position : t -> Gtk_enums.baselineposition -> unit

Sets the baseline position of a box.

This affects only horizontal boxes with at least one baseline aligned child. If there is more vertical space available than requested, and the baseline is not allocated by the parent then @position is used to allocate the baseline with respect to the extra space available.

val set_baseline_child : t -> int -> unit

Sets the baseline child of a box.

This affects only vertical boxes.

val reorder_child_after : t -> [ `widget | `initially_unowned | `object_ ] Gobject.obj -> [ `widget | `initially_unowned | `object_ ] Gobject.obj option -> unit

Moves @child to the position after @sibling in the list of @box children.

If @sibling is %NULL, move @child to the first position.

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

Removes a child widget from @box.

The child must have been added before with method@Gtk.Box.append, method@Gtk.Box.prepend, or method@Gtk.Box.insert_child_after.

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

Adds @child as the first child to @box.

val insert_child_after : t -> [ `widget | `initially_unowned | `object_ ] Gobject.obj -> [ `widget | `initially_unowned | `object_ ] Gobject.obj option -> unit

Inserts @child in the position after @sibling in the list of @box children.

If @sibling is %NULL, insert @child at the first position.

val get_spacing : t -> int

Gets the value set by gtk_box_set_spacing().

val get_homogeneous : t -> bool

Returns whether the box is homogeneous (all children are the same size).

val get_baseline_position : t -> Gtk_enums.baselineposition

Gets the value set by gtk_box_set_baseline_position().

val get_baseline_child : t -> int

Gets the value set by gtk_box_set_baseline_child().

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

Adds @child as the last child to @box.