Package: gtk
Accessor gtk:widget-hexpand
Lambda Listgtk:widget-hexpand (object) SyntaxArgumentsDetails The accessor for the hexpand slot of the gtk:widget class get or sets whether the widget would like any
available extra horizontal space. This function only looks at the own hexpand flag of the
widget, rather than computing whether the entire widget tree rooted at this
widget wants to expand. Call this function to set the expand flag if you would
like your widget to become larger horizontally when the window has extra room. By default, widgets automatically expand if any of their children want to expand. To see if a widget will automatically expand given its current children and state, call the gtk:widget-compute-expand function. A container can decide how the expandability of children affects the expansion of the container by overriding the compute_expand virtual method on the gtk:widget class. Setting the hexpand property explicitly with this function will override the automatic expand behavior. This function forces the widget to expand or not to expand, regardless of children. The override occurs because the gtk:widget-hexpand function sets the hexpand-set property, which causes the hexpand property of the widget to be used, rather than looking at children and widget state. | See also |
2025-08-14