Function Control.getRect

Returns the position and size of the control relative to the top-left corner of the parent Control. See rectPosition and rectSize.

Rect2 getRect() nothrow @nogc const;