ComponentT.getExtents

Gets the rectangle which gives the extent of the @component.

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

template ComponentT(TStruct)
void
getExtents
(
out int x
,
out int y
,
out int width
,
out int height
,)

Parameters

x int

address of #gint to put x coordinate

y int

address of #gint to put y coordinate

width int

address of #gint to put width

height int

address of #gint to put height

coordType AtkCoordType

specifies whether the coordinates are relative to the screen or to the components top level window

Meta