#include "assert.hpp"
Go to the source code of this file.
|
| enum class | tt::vertical_alignment { top
, middle
, bottom
} |
| | Vertical alignment. More...
|
| |
| enum class | tt::horizontal_alignment { left
, center
, right
} |
| | Horizontal alignment. More...
|
| |
| enum class | tt::alignment {
top_left
, top_center
, top_right
, middle_left
,
middle_center
, middle_right
, bottom_left
, bottom_center
,
bottom_right
} |
| | Vertical and horizontal alignment. More...
|
| |
◆ alignment
Vertical and horizontal alignment.
| Enumerator |
|---|
| top_left | Align to the top and left.
|
| top_center | Align to the top and horizontal-center.
|
| top_right | Align to the top and right.
|
| middle_left | Align to the vertical-middle and left.
|
| middle_center | Align to the vertical-middle and horizontal-center.
|
| middle_right | Align to the vertical-middle and right.
|
| bottom_left | Align to the bottom and left.
|
| bottom_center | Align to the bottom and horizontal-center.
|
| bottom_right | Align to the bottom and right.
|
◆ horizontal_alignment
Horizontal alignment.
| Enumerator |
|---|
| left | Align to the left.
|
| center | Align to the horizontal-center.
|
| right | Align to the right.
|
◆ vertical_alignment
Vertical alignment.
| Enumerator |
|---|
| top | Align to the top.
|
| middle | Align to the vertical-middle.
|
| bottom | Align to the bottom.
|
◆ operator==() [1/2]
Check if the horizontal alignments are equal.
- Parameters
-
| lhs | A combined vertical and horizontal alignment. |
| rhs | A horizontal alignment. |
- Returns
- True when the horizontal alignment of both
lhs and rhs are equal.
◆ operator==() [2/2]
Check if the vertical alignments are equal.
- Parameters
-
| lhs | A combined vertical and horizontal alignment. |
| rhs | A vertical alignment. |
- Returns
- True when the vertical alignment of both
lhs and rhs are equal.
◆ operator|() [1/2]
Combine vertical and horizontal alignment.
- Parameters
-
| lhs | A horizontal alignment. |
| rhs | A vertical alignment. |
- Returns
- A combined vertical and horizontal alignment.
◆ operator|() [2/2]
Combine vertical and horizontal alignment.
- Parameters
-
| lhs | A vertical alignment. |
| rhs | A horizontal alignment. |
- Returns
- A combined vertical and horizontal alignment.