Method
GtkWidgetsize_allocate_with_baseline
since: 3.10
Declaration [src]
void
gtk_widget_size_allocate_with_baseline (
GtkWidget* widget,
GtkAllocation* allocation,
gint baseline
)
Description [src]
This function is only used by GtkContainer
subclasses, to assign a size,
position and (optionally) baseline to their child widgets.
In this function, the allocation and baseline may be adjusted. It
will be forced to a 1x1 minimum size, and the
adjust_size_allocation virtual and adjust_baseline_allocation
methods on the child will be used to adjust the allocation and
baseline. Standard adjustments include removing the widget’s
margins, and applying the widget’s GtkWidget:halign
and
GtkWidget:valign
properties.
If the child widget does not have a valign of GTK_ALIGN_BASELINE
the
baseline argument is ignored and -1 is used instead.
Available since: 3.10
Parameters
allocation
-
Type:
GtkAllocation
Position and size to be allocated to
widget
.The data is owned by the caller of the method. baseline
-
Type:
gint
The baseline of the child, or -1.