Method

GtkWidgetset_allocation

Declaration [src]

void
gtk_widget_set_allocation (
  GtkWidget* widget,
  const GtkAllocation* allocation
)

Description [src]

Sets the widget’s allocation. This should not be used directly, but from within a widget’s size_allocate method.

The allocation set should be the “adjusted” or actual allocation. If you’re implementing a GtkContainer, you want to use gtk_widget_size_allocate() instead of gtk_widget_set_allocation(). The GtkWidgetClass::adjust_size_allocation virtual method adjusts the allocation inside gtk_widget_size_allocate() to create an adjusted allocation.

Available since:2.18

Parameters

allocation GtkAllocation
 

A pointer to a GtkAllocation to copy from.

 The data is owned by the caller of the function.