Chemical Data Processing Library C++ API - Version 1.2.0
|
Provides flags that are used to specify the 2D alignment of graphical objects within a bounded rectangular area. More...
Variables | |
constexpr unsigned int | NONE = 0 |
Specifies that an object has no special alignment. More... | |
constexpr unsigned int | LEFT = 0x1 |
Specifies an alignment to the left. More... | |
constexpr unsigned int | RIGHT = 0x2 |
Specifies an alignment to the right. More... | |
constexpr unsigned int | H_CENTER = LEFT | RIGHT |
Specifies that an object has to be centered horizontally. More... | |
constexpr unsigned int | H_ALIGNMENT_MASK = H_CENTER |
A bitmask for all horizontal alignment flags. More... | |
constexpr unsigned int | TOP = 0x4 |
Specifies an alignment to the top. More... | |
constexpr unsigned int | BOTTOM = 0x8 |
Specifies an alignment to the bottom. More... | |
constexpr unsigned int | V_CENTER = TOP | BOTTOM |
Specifies that an object has to be centered vertically. More... | |
constexpr unsigned int | V_ALIGNMENT_MASK = V_CENTER |
A bitmask for all vertical alignment flags. More... | |
constexpr unsigned int | CENTER = H_CENTER | V_CENTER |
Specifies that an object has to be centered horizontally and vertically. More... | |
Provides flags that are used to specify the 2D alignment of graphical objects within a bounded rectangular area.
The flags may be combined by a bitwise OR operation to specify a composite alignment for both directions. For example: (Alignment::RIGHT | Alignment::BOTTOM)
specifies an alignment to the bottom-right corner.
|
constexpr |
Specifies that an object has no special alignment.
|
constexpr |
Specifies an alignment to the left.
|
constexpr |
Specifies an alignment to the right.
Specifies that an object has to be centered horizontally.
|
constexpr |
A bitmask for all horizontal alignment flags.
|
constexpr |
Specifies an alignment to the top.
|
constexpr |
Specifies an alignment to the bottom.
Specifies that an object has to be centered vertically.
|
constexpr |
A bitmask for all vertical alignment flags.