Label.getLayoutOffsets

void getLayoutOffsets(out int x, out int y)

Obtains the coordinates where the label will draw its [pango.layout.Layout].

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

Parameters

xlocation to store X offset of layout
ylocation to store Y offset of layout