#include "assert.hpp"
#include "cast.hpp"
Go to the source code of this file.
◆ horizontal_alignment
| Enumerator |
|---|
| flush | Align the text naturally based on the writing direction of each paragraph.
This will act as flush_left if the paragraph is in left-to-right direction, and as flush_right if the paragraph is in right-to-left direction.
|
| left | Align the text to the left side.
The text will be flush-left independent of the writing direction.
|
| center | Align the text in the center.
Since the text is centered, the writing direction is unimportant.
|
| justified | Stretch the text to be flush to both sides.
Since the text is flush on both sides, the writing direction is unimportant.
|
| right | Align the text to the right side.
The text will be flush-left independent of the writing direction.
|
◆ vertical_alignment
Vertical alignment.
| Enumerator |
|---|
| top | Align to the top.
|
| middle | Align to the vertical-middle.
|
| bottom | Align to the bottom.
|
◆ operator|() [1/2]
Combine vertical and horizontal alignment.
- Parameters
-
| lhs | A text alignment. |
| rhs | A vertical alignment. |
- Returns
- A combined vertical and horizontal alignment.
◆ operator|() [2/2]
Combine vertical and horizontal alignment.
- Parameters
-
| lhs | A text alignment. |
| rhs | A vertical alignment. |
- Returns
- A combined vertical and horizontal alignment.