Method

GtkWidgetget_size_request

Declaration [src]

void
gtk_widget_get_size_request (
  GtkWidget* widget,
  gint* width,
  gint* height
)

Description [src]

Gets the size request that was explicitly set for the widget using gtk_widget_set_size_request(). A value of -1 stored in width or height indicates that that dimension has not been set explicitly and the natural requisition of the widget will be used instead. See gtk_widget_set_size_request(). To get the size a widget will actually request, call gtk_widget_get_preferred_size() instead of this function.

Parameters

width gint*
 

Return location for width, or NULL.

 The argument will be set by the function.
 The argument can be NULL.
height gint*
 

Return location for height, or NULL.

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