Package: gtk
Function gtk:widget-allocation
Lambda Listgtk:widget-allocation (widget) ArgumentsReturn ValueThe gdk:rectangle instance with the allocation. Details
Retrieves the allocation of the widget.
Note, when implementing a layout container: an allocation of the widget will
be its "adjusted" allocation, that is, the parent of the widget typically calls the gtk:widget-size-allocate function with an allocation, and that
allocation is then adjusted (to handle margin and alignment for example) before assignment to the widget. The gtk:widget-allocation function
returns the adjusted allocation that was actually assigned to the widget. The
adjusted allocation is guaranteed to be completely contained within the gtk:widget-size-allocate allocation, however. So a layout container is guaranteed that its children stay inside the assigned bounds, but not that they have exactly the bounds the container assigned. NotesWarning | See also |
#2025-2-15