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 [[email protected]_width] for gtk_orientation_horizontal or [ [email protected]_height] for gtk_orientation_vertical, but can be used when writing orientation-independent code, such as when implementing [[email protected]] widgets.

Parameters:

this

a `GtkWidget`

orientation

the orientation to query

Returns:

The size of this in orientation.




2022 vala-language.org