TextIF.getCharacterExtents

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

interface TextIF
void
getCharacterExtents
(
int offset
,
int* x
,
int* y
,
int* width
,
int* height
,)

Parameters

offset int

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

x int*

Pointer for the x cordinate of the bounding box

y int*

Pointer for the y cordinate of the bounding box

width int*

Pointer for the width of the bounding box

height int*

Pointer for the height of the bounding box

coords AtkCoordType

specify whether coordinates are relative to the screen or widget window

Meta