package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Center_box/index.html
Module Wrappers.Center_box
type t = [ `center_box | `widget | `initially_unowned | `object_ ] Gobject.objval new_ : unit -> tCreate a new CenterBox
val set_start_widget :
t ->
[ `widget | `initially_unowned | `object_ ] Gobject.obj option ->
unitSets the start widget.
To remove the existing start widget, pass %NULL.
val set_shrink_center_last : t -> bool -> unitSets whether to shrink the center widget after other children.
By default, when there's no space to give all three children their natural widths, the start and end widgets start shrinking and the center child keeps natural width until they reach minimum width.
If set to `FALSE`, start and end widgets keep natural width and the center widget starts shrinking instead.
val set_end_widget :
t ->
[ `widget | `initially_unowned | `object_ ] Gobject.obj option ->
unitSets the end widget.
To remove the existing end widget, pass %NULL.
val set_center_widget :
t ->
[ `widget | `initially_unowned | `object_ ] Gobject.obj option ->
unitSets the center widget.
To remove the existing center widget, pass %NULL.
val set_baseline_position : t -> Gtk_enums.baselineposition -> unitSets the baseline position of a center 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 wrt. the extra space available.
val get_start_widget :
t ->
[ `widget | `initially_unowned | `object_ ] Gobject.obj optionGets the start widget, or %NULL if there is none.
val get_shrink_center_last : t -> boolGets whether @self shrinks the center widget after other children.
val get_end_widget :
t ->
[ `widget | `initially_unowned | `object_ ] Gobject.obj optionGets the end widget, or %NULL if there is none.
val get_center_widget :
t ->
[ `widget | `initially_unowned | `object_ ] Gobject.obj optionGets the center widget, or %NULL if there is none.
val get_baseline_position : t -> Gtk_enums.baselinepositionGets the value set by gtk_center_box_set_baseline_position().