Axis-aligned rectangle (x,y = top-left, w,h = size).
<insightdock/geometry.h>
struct Rect;
| Name | Description |
|---|---|
Rect [constructor] | Constructors |
bottom | |
center_x | |
center_y | |
contains | True if (px, py) lies inside the rectangle. |
inset | Rectangle inset by margin on all sides. |
left | |
right | |
top | |
union_with | Smallest rectangle containing this and other. |
| Name |
|---|
h |
w |
x |
y |