Virtual Method

GtkWidgetadjust_size_request

Declaration [src]

void
adjust_size_request (
  GtkWidget* widget,
  GtkOrientation orientation,
  gint* minimum_size,
  gint* natural_size
)

Description [src]

Convert an initial size request from a widget’s GtkSizeRequestMode virtual method implementations into a size request to be used by parent containers in laying out the widget. adjust_size_request adjusts from a child widget’s original request to what a parent container should use for layout. The for_size argument will be -1 if the request should not be for a particular size in the opposing orientation, i.e. if the request is not height-for-width or width-for-height. If for_size is greater than -1, it is the proposed allocation in the opposing orientation that we need the request for. Implementations of adjust_size_request should chain up to the default implementation, which applies GtkWidget’s margin properties and imposes any values from gtk_widget_set_size_request(). Chaining up should be last, after your subclass adjusts the request, so GtkWidget can apply constraints and add the margin properly.

Parameters

orientation

Type: GtkOrientation

No description available.

minimum_size

Type: gint*

No description available.

The data is owned by the caller of the method.
natural_size

Type: gint*

No description available.

The data is owned by the caller of the method.