Widget.getSizeRequest

Gets the size request that was explicitly set for the widget using gtk.widget.Widget.setSizeRequest.

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.Widget.setSizeRequest. To get the size a widget will actually request, call gtk.widget.Widget.measure instead of this function.

class Widget
void
getSizeRequest
(
out int width
,
out int height
)

Parameters

width int

return location for width

height int

return location for height