get_layout_offsets


Description:

public void get_layout_offsets (out int x, out int y)

Obtains the coordinates where the label will draw its `PangoLayout`.

The coordinates are useful to convert mouse events into coordinates inside the [[email protected]], e.g. to take some action if some part of the label is clicked. Remember when using the [[email protected]] functions you need to convert to and from pixels using PANGO_PIXELS or [[email protected]].

Parameters:

this

a `GtkLabel`

x

location to store X offset of layout

y

location to store Y offset of layout




2022 vala-language.org