get_layout


Description:

public unowned Layout get_layout ()

Gets the `PangoLayout` used to display the label.

The layout is useful to e.g. convert text positions to pixel positions, in combination with [[email protected]_layout_offsets]. The returned layout is owned by the label so need not be freed by the caller. The label is free to recreate its layout at any time, so it should be considered read-only.

Parameters:

this

a `GtkLabel`

Returns:

the [[email protected]] for this label




2022 vala-language.org