gtk-container, gtk-widget, g-initially-unowned, gtk-buildable, gtk-orientable, g-object, common-lisp:standard-object, common-lisp:t
gtk-app-chooser-widget, gtk-button-box, gtk-color-chooser-widget, gtk-file-chooser-button, gtk-font-chooser-widget, gtk-font-selection, gtk-hbox, gtk-info-bar, gtk-recent-chooser-widget, gtk-shortcuts-group, gtk-shortcuts-section, gtk-shortcuts-shortcut, gtk-stack-switcher, gtk-statusbar, gtk-vbox
The gtk-box widget arranges child widgets into a single row or column, depending upon the value :horizontal or :vertical of its inherited orientation property. Within the other dimension, all children are allocated the same size. Of course, the halign and valign properties can be used on the children to influence their allocation.
gtk-box uses a notion of packing. Packing refers to adding widgets with reference to a particular position in a gtk-container. For a gtk-box, there are two reference positions: the start and the end of the box. For a vertical gtk-box, the start is defined as the top of the box and the end is defined as the bottom. For a horizontal gtk-box the start is defined as the left side and the end is defined as the right side.
Use repeated calls to the function gtk-box-pack-start to pack widgets into a gtk-box from start to end. Use the function gtk-box-pack-end to add widgets from end to start. You may intersperse these calls and add widgets from both ends of the same gtk-box.
Because gtk-box is a gtk-container, you may also use the function gtk-container-add to insert widgets into the box, and they will be packed with the default values for expand and fill child properties. Use the function gtk-container-remove to remove widgets from the gtk-box.
Use the slot access function gtk-box-homogeneous to specify whether or not all children of the gtk-box are forced to get the same amount of space.
Use the slot access function gtk-box-spacing to determine how much space will be minimally placed between all children in the gtk-box. Note that spacing is added between the children, while padding added by the functions gtk-box-pack-start or gtk-box-pack-end is added on either side of the widget it belongs to.
Use the function gtk-box-reorder-child to move a gtk-box child to a different place in the box.
Use the function gtk-box-set-child-packing to reset the expand, fill and padding child properties. Use the function gtk-box-query-child-packing to query these fields.
gtk-box uses a single CSS node with name box.
In horizontal orientation, the nodes of the children are always arranged from left to right. So :first-child will always select the leftmost child, regardless of text direction.
Child Property Details
Slot Access Functions
Inherited Slot Access Functions