Widget.getSizeRequest

void getSizeRequest(out int width, out int height)

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.

Parameters

widthreturn location for width
heightreturn location for height