|
roo_display
API Documentation for roo_display
|
Combines horizontal and vertical alignment. More...
#include <alignment.h>
Public Member Functions | |
| constexpr | Alignment () |
| constexpr | Alignment (HAlign h) |
| constexpr | Alignment (VAlign v) |
| constexpr | Alignment (HAlign h, VAlign v) |
| constexpr HAlign | h () const |
| constexpr VAlign | v () const |
| Offset | resolveOffset (const Box &outer, const Box &inner) const |
| Alignment | shiftBy (int16_t dx, int16_t dy) |
| bool | operator== (Alignment other) const |
| bool | operator!= (Alignment other) const |
Combines horizontal and vertical alignment.
Lightweight and pass-by-value. Use | to compose, e.g. kTop.shiftBy(5) | kMiddle.
Definition at line 172 of file alignment.h.
|
inlineconstexpr |
Definition at line 174 of file alignment.h.
Referenced by shiftBy().
Definition at line 176 of file alignment.h.
Definition at line 178 of file alignment.h.
Definition at line 180 of file alignment.h.
Definition at line 182 of file alignment.h.
Referenced by resolveOffset().
Definition at line 201 of file alignment.h.
Definition at line 197 of file alignment.h.
Definition at line 186 of file alignment.h.
References roo_display::Offset::dx, h(), and v().
Referenced by roo_display::DrawingContext::draw().
Definition at line 193 of file alignment.h.
References Alignment(), roo_display::HAlign::shiftBy(), and roo_display::VAlign::shiftBy().
Definition at line 184 of file alignment.h.
Referenced by resolveOffset().