RectInfo


Represents an axis-aligned bounding Rectangle for an element in a compose hierarchy, in the coordinates of either the Root of the compose hierarchy, the Window, or the Screen.

See also
onRectChanged

Summary

Public properties

Int

The height, in pixels, of the Rect

Cmn
IntOffset

The top left position of the Rect in the coordinates of the root node of the compose hierarchy.

Cmn
IntOffset

The top left position of the Rect in the coordinates of the Screen it is contained in.

Cmn
IntOffset

The top left position of the Rect in the coordinates of the Window it is contained in

Cmn
IntRect

The positioned bounding Rect in the coordinates of the root node of the compose hierarchy.

Cmn
IntRect

The positioned bounding Rect in the coordinates of the Screen which it is contained in.

Cmn
Int

The width, in pixels, of the Rect

Cmn
IntRect

The positioned bounding Rect in the coordinates of the Window which it is contained in.

Cmn

Public properties

height

val heightInt

The height, in pixels, of the Rect

positionInRoot

val positionInRootIntOffset

The top left position of the Rect in the coordinates of the root node of the compose hierarchy.

positionInScreen

val positionInScreenIntOffset

The top left position of the Rect in the coordinates of the Screen it is contained in.

positionInWindow

val positionInWindowIntOffset

The top left position of the Rect in the coordinates of the Window it is contained in

rootRect

val rootRectIntRect

The positioned bounding Rect in the coordinates of the root node of the compose hierarchy.

screenRect

val screenRectIntRect

The positioned bounding Rect in the coordinates of the Screen which it is contained in.

width

val widthInt

The width, in pixels, of the Rect

windowRect

val windowRectIntRect

The positioned bounding Rect in the coordinates of the Window which it is contained in.