Package: gtk
Class gtk-box
Superclassesgtk-container, gtk-widget, gtk-buildable, gtk-orientable, g-object, common-lisp:standard-object, common-lisp:t Documented Subclassesgtk-app-chooser-widget, gtk-button-box, gtk-color-chooser-widget, gtk-color-selection, gtk-file-chooser-button, gtk-file-chooser-widget, gtk-font-chooser-widget, gtk-info-bar, gtk-recent-chooser-widget, gtk-shortcuts-group, gtk-shortcuts-section, gtk-shortcuts-shortcut, gtk-stack-switcher, gtk-statusbar Direct SlotsDetails The gtk-box widget arranges child widgets into a single row or column, depending upon the :horizontal or :vertical value 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. The gtk-box widget uses a notion of packing. Packing refers to adding widgets with reference to a particular position in a gtk-container widget. For a box, there are two reference positions: the start and the end of the box. For a vertical box, the start is defined as the top of the box and the end is defined as the bottom. For a horizontal 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 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 box. Because the gtk-box widget is a gtk-container widget, 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 box. Use the gtk-box-homogeneous slot access function to specify whether or not all children of the 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 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 widget to a different place in the box. Use the gtk-box-child-packing function to reset the expand, fill and padding child properties and use the gtk-box-query-child-packing function to query these properties. CSS nodesChild Property Details
| Slot Access FunctionsInherited Slot Access FunctionsSee also |
*2021-10-31