15
16
17
18
19
20
28 Bounds(int32_t x, int32_t y, int32_t w, int32_t h) :
x(x),
y(y),
w(w),
h(h) {}
Definition: AnchorLayout.h:4
size_t toPx(int32_t v)
Definition: Bounds.h:12
Axis-aligned pixel rectangle used for widget bounds and hit-testing.
Definition: Bounds.h:21
int32_t right() const
Definition: Bounds.h:30
int32_t bottom() const
Definition: Bounds.h:31
int32_t w
Definition: Bounds.h:24
Bounds(int32_t x, int32_t y, int32_t w, int32_t h)
Definition: Bounds.h:28
int32_t centerY() const
Definition: Bounds.h:33
int32_t centerX() const
Definition: Bounds.h:32
int32_t h
Definition: Bounds.h:25
bool contains(int32_t px, int32_t py) const
Definition: Bounds.h:35
Bounds inset(int32_t amount) const
Returns a rect inset by amount on every side (negative to grow).
Definition: Bounds.h:40
int32_t y
Definition: Bounds.h:23
int32_t x
Definition: Bounds.h:22