Widget.getChildRequisition

This function is only for use in widget implementations. Obtains widget->requisition, unless someone has forced a particular geometry on the widget (e.g. with gtk.widget.Widget.setSizeRequest), in which case it returns that geometry instead of the widget's requisition.

This function differs from gtk.widget.Widget.sizeRequest in that it retrieves the last size request value from widget->requisition, while gtk.widget.Widget.sizeRequest actually calls the "size_request" method on widget to compute the size request and fill in widget->requisition, and only then returns widget->requisition.

Because this function does not call the “size_request” method, it can only be used when you know that widget->requisition is up-to-date, that is, gtk.widget.Widget.sizeRequest has been called since the last time a resize was queued. In general, only container implementations have this information; applications should use gtk.widget.Widget.sizeRequest.

More...
class Widget
void
getChildRequisition

Parameters

requisition gtk.requisition.Requisition

a #GtkRequisition to be filled in

Detailed Description

Deprecated: Use gtk.widget.Widget.getPreferredSize instead.