Package: gtk

Function gtk:widget-size

Lambda List

gtk:widget-size (widget orientation)

Arguments

widget -- a gtk:widget object
orientation -- a gtk:orientation value for the orientation to query

Return Value

The integer with the size of the widget in the given orientation.

Details

Returns the content width or height of the widget, depending on the given orientation. This is equivalent to calling the gtk:widget-width function for the :horizontal value or the gtk:widget-height function for the :vertical value, but can be used when writing orientation independent code, such as when implementing gtk:orientable widgets.
 

See also

#2025-2-15