get_character_extents


Description:

public abstract void get_character_extents (int offset, out int x, out int y, out int width, out int height, CoordType coords)

If the extent can not be obtained (e.g. missing support), all of x, y, width, height are set to -1.

Get the bounding box containing the glyph representing the character at a particular text offset.

Parameters:

this

an Text

offset

The offset of the text character for which bounding information is required.

x

Pointer for the x coordinate of the bounding box

y

Pointer for the y coordinate of the bounding box

width

Pointer for the width of the bounding box

height

Pointer for the height of the bounding box

coords

specify whether coordinates are relative to the screen or widget window




2022 vala-language.org