Component.getPosition

void getPosition(out int x, out int y, atk.types.CoordType coordType)

Gets the position of component in the form of a point specifying component's top-left corner.

If the position can not be obtained (e.g. a non-embedded plug or missing support), x and y are set to -1.

Parameters

xaddress of #gint to put x coordinate position
yaddress of #gint to put y coordinate position
coordTypespecifies whether the coordinates are relative to the screen or to the components top level window

Deprecated

Since 2.12. Use [atk.component.Component.getExtents] instead.