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 gtk_orientation_horizontal or [ method@Gtk.Widget.get_height] for 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 `GtkWidget`

orientation

the orientation to query

Returns:

The size of this in orientation.