Package: gtk

Function gtk-widget-compute-expand

Lambda List

gtk-widget-compute-expand (widget orientation)

Arguments

widget -- a gtk-widget object
orientation -- a gtk-orientation value for the expand direction

Return Value

A boolean whether widget tree rooted here should be expanded.

Details

Computes whether a container should give this widget extra space when possible. Containers should check this, rather than looking at the hexpand or vexpand properties.

This function already checks whether the widget is visible, so visibility does not need to be checked separately. Non-visible widgets are not expanded.

The computed expand value uses either the expand setting explicitly set on the widget itself, or, if none has been explicitly set, the widget may expand if some of its children do.
 

See also

2021-9-21