Method

GtkWidgetget_allocated_size

Declaration [src]

void
gtk_widget_get_allocated_size (
  GtkWidget* widget,
  GtkAllocation* allocation,
  int* baseline
)

Description [src]

Retrieves the widget’s allocated size.

This function returns the last values passed to gtk_widget_size_allocate_with_baseline(). The value differs from the size returned in gtk_widget_get_allocation() in that functions like gtk_widget_set_halign() can adjust the allocation, but not the value returned by this function.

If a widget is not visible, its allocated size is 0.

Available since:3.20

Parameters

allocation GtkAllocation
 

A pointer to a GtkAllocation to copy to.

 The argument will be set by the function.
 The data is owned by the caller of the function.
baseline int*
 

A pointer to an integer to copy to.

 The argument will be set by the function.
 The argument can be NULL.