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

Module Wrappers.Grid_layout

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

Create a new GridLayout

val set_row_spacing : t -> int -> unit

Sets the amount of space to insert between consecutive rows.

val set_row_homogeneous : t -> bool -> unit

Sets whether all rows of @grid should have the same height.

val set_row_baseline_position : t -> int -> Gtk_enums.baselineposition -> unit

Sets how the baseline should be positioned on @row of the grid, in case that row is assigned more space than is requested.

val set_column_spacing : t -> int -> unit

Sets the amount of space to insert between consecutive columns.

val set_column_homogeneous : t -> bool -> unit

Sets whether all columns of @grid should have the same width.

val set_baseline_row : t -> int -> unit

Sets which row defines the global baseline for the entire grid.

Each row in the grid can have its own local baseline, but only one of those is global, meaning it will be the baseline in the parent of the @grid.

val get_row_spacing : t -> int

Retrieves the spacing set with gtk_grid_layout_set_row_spacing().

val get_row_homogeneous : t -> bool

Checks whether all rows of @grid should have the same height.

val get_row_baseline_position : t -> int -> Gtk_enums.baselineposition

Returns the baseline position of @row.

If no value has been set with method@Gtk.GridLayout.set_row_baseline_position, the default value of %GTK_BASELINE_POSITION_CENTER is returned.

val get_column_spacing : t -> int

Retrieves the spacing set with gtk_grid_layout_set_column_spacing().

val get_column_homogeneous : t -> bool

Checks whether all columns of @grid should have the same width.

val get_baseline_row : t -> int

Retrieves the row set with gtk_grid_layout_set_baseline_row().