get_character_extents


Description:

public Rect get_character_extents (int offset, CoordType type) throws Error

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

The returned values are meaningful only if the Text has both STATE_VISIBLE and STATE_SHOWING.

Parameters:

this

a pointer to the Text object on which to operate.

offset

a int indicating the offset of the text character for whom boundary information is requested.

type

an AccessibleCoordType indicating the coordinate system to use for the returned values.

Returns:

An Rect specifying the position and size of the character.




2022 vala-language.org