16 Rect() : left(0.0f), top(0.0f), right(0.0f), bottom(0.0f) {}
17 Rect(f32 l, f32 t, f32 r, f32 b) : left(l), top(t), right(r), bottom(b) {}
20 void SetWidth(f32 width) {
23 f32 GetWidth()
const {
27 void SetHeight(f32 height) {
28 bottom = top + height;
30 f32 GetHeight()
const {
40 left = math::FSelect(r - l, l, r);
41 right = math::FSelect(r - l, r, l);
42 top = math::FSelect(b - t, t, b);
43 bottom = math::FSelect(b - t, b, t);
46 void MoveTo(f32 x, f32 y) {
47 right = x + GetWidth();
49 bottom = y + GetHeight();