Virtual Method
GtkWidgetsize_allocate
Declaration [src]
void
size_allocate (
GtkWidget* widget,
GtkAllocation* allocation
)
Description [src]
This function is only used by GtkContainer
subclasses, to assign a size
and position to their child widgets.
In this function, the allocation may be adjusted. It will be forced
to a 1x1 minimum size, and the adjust_size_allocation virtual
method on the child will be used to adjust the allocation. Standard
adjustments include removing the widget’s margins, and applying the
widget’s GtkWidget:halign
and GtkWidget:valign
properties.
For baseline support in containers you need to use gtk_widget_size_allocate_with_baseline()
instead.
Parameters
allocation
-
Type:
GtkAllocation
Position and size to be allocated to
widget
.The data is owned by the caller of the method.