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-file-chooser-widget, 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 gtk-box-pack-start function to pack widgets into a gtk-box from start to end. Use the gtk-box-pack-end function 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 gtk-container-add function to insert widgets into the box, and they will be packed with the default values for the expand and fill child properties. Use the gtk-container-remove function to remove widgets from the gtk-box.
Use the gtk-box-homogeneous slot access function to specify whether or not all children of the gtk-box are forced to get the same amount of space.
Use the gtk-box-spacing slot access function 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 gtk-box-pack-start or gtk-box-pack-end functions is added on either side of the widget it belongs to.
Use the gtk-box-reorder-child function to move a gtk-box child to a different place in the box.
Use the gtk-box-set-child-packing function to reset the expand, fill and padding child properties. Use the gtk-box-query-child-packing function 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