get_size


Description:

public int get_size (Orientation orientation)

Returns the content width or height of the widget.

Which dimension is returned depends on orientation.

This is equivalent to calling [method@Gtk.Widget.get_width] for [enum@Gtk.Orientation.horizontal] or [method@Gtk.Widget.get_height] for [ enum@Gtk.Orientation.vertical], but can be used when writing orientation-independent code, such as when implementing [iface@Gtk.Orientable] widgets.

To learn more about widget sizes, see the coordinate system [overview](coordinates.html).

Parameters:

this

a widget

orientation

the orientation to query

Returns:

the size of this in orientation