GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::graphics::TextAlign Struct Reference

Text alignment mode. More...

#include <GREM/graphics_2d/Text2D.hpp>

Public Attributes

TextAlignHorizontal horizontal = TextAlignHorizontal::NONE
 Horizontal alignment mode.
TextAlignVertical vertical = TextAlignVertical::NONE
 Vertical alignment mode.

Static Public Attributes

static const TextAlign NONE
 No alignment.
static const TextAlign FIRST_LINE_START_TOP
 Align to the start of the first line's ascender.
static const TextAlign FIRST_LINE_START_BASE
 Align to the start of the first line's baseline.
static const TextAlign FIRST_LINE_END_TOP
 Align to the end of the first line's ascender.
static const TextAlign FIRST_LINE_END_BASE
 Align to the end of the first line's baseline.
static const TextAlign LAST_LINE_START_TOP
 Align to the start of the last line's ascender.
static const TextAlign LAST_LINE_START_BASE
 Align to the start of the last line's baseline.
static const TextAlign LAST_LINE_END_TOP
 Align to the end of the last line's ascender.
static const TextAlign LAST_LINE_END_BASE
 Align to the end of the last line's baseline.
static const TextAlign CENTER_HORIZONTALLY_FIRST_LINE_TOP
 Align to the horizontal center of the bounding box on the first line's ascender.
static const TextAlign CENTER_HORIZONTALLY_FIRST_LINE_BASE
 Align to the horizontal center of the bounding box on the first line's baseline.
static const TextAlign CENTER_HORIZONTALLY_LAST_LINE_TOP
 Align to the horizontal center of the bounding box on the last line's ascender.
static const TextAlign CENTER_HORIZONTALLY_LAST_LINE_BASE
 Align to the horizontal center of the bounding box on the last line's baseline.
static const TextAlign CENTER
 Align to the center of the bounding box of the text.
static const TextAlign CENTER_HORIZONTALLY
 Align to the horizontal center of the bounding box of the text.
static const TextAlign CENTER_VERTICALLY
 Align to the vertical center of the bounding box of the text.
static const TextAlign CENTER_HORIZONTALLY_BOTTOM
 Align to the bottom center of the bounding box of the text.
static const TextAlign CENTER_HORIZONTALLY_TOP
 Align to the top center of the bounding box of the text.
static const TextAlign CENTER_VERTICALLY_LEFT
 Align to the left center of the bounding box of the text.
static const TextAlign CENTER_VERTICALLY_RIGHT
 Align to the right center of the bounding box of the text.
static const TextAlign LEFT
 Align to the left of the bounding box of the text.
static const TextAlign RIGHT
 Align to the right of the bounding box of the text.
static const TextAlign BOTTOM
 Align to the bottom of the bounding box of the text.
static const TextAlign TOP
 Align to the top of the bounding box of the text.

Detailed Description

Text alignment mode.

Member Data Documentation

◆ NONE

TextAlign grem::graphics::TextAlign::NONE
inlinestaticconstexpr
Initial value:
{
}
@ NONE
No horizontal alignment.
Definition Text2D.hpp:26
@ NONE
No vertical alignment.
Definition Text2D.hpp:40

No alignment.

◆ FIRST_LINE_START_TOP

TextAlign grem::graphics::TextAlign::FIRST_LINE_START_TOP
inlinestaticconstexpr
Initial value:
{
}
@ FIRST_LINE_START
Align to the start of the first glyph in the first line of the text.
Definition Text2D.hpp:27
@ FIRST_LINE_TOP
Align to the ascender of the first line in the text.
Definition Text2D.hpp:41

Align to the start of the first line's ascender.

◆ FIRST_LINE_START_BASE

TextAlign grem::graphics::TextAlign::FIRST_LINE_START_BASE
inlinestaticconstexpr
Initial value:
{
}
@ FIRST_LINE_BASE
Align to the baseline of the first line in the text.
Definition Text2D.hpp:42

Align to the start of the first line's baseline.

◆ FIRST_LINE_END_TOP

TextAlign grem::graphics::TextAlign::FIRST_LINE_END_TOP
inlinestaticconstexpr
Initial value:
{
}
@ FIRST_LINE_END
Align to the end of the last glyph in the first line of the text.
Definition Text2D.hpp:28

Align to the end of the first line's ascender.

◆ FIRST_LINE_END_BASE

TextAlign grem::graphics::TextAlign::FIRST_LINE_END_BASE
inlinestaticconstexpr
Initial value:

Align to the end of the first line's baseline.

◆ LAST_LINE_START_TOP

TextAlign grem::graphics::TextAlign::LAST_LINE_START_TOP
inlinestaticconstexpr
Initial value:
{
}
@ LAST_LINE_START
Align to the start of the first glyph in the last line of the text.
Definition Text2D.hpp:29
@ LAST_LINE_TOP
Align to the ascender of the last line in the text.
Definition Text2D.hpp:43

Align to the start of the last line's ascender.

◆ LAST_LINE_START_BASE

TextAlign grem::graphics::TextAlign::LAST_LINE_START_BASE
inlinestaticconstexpr
Initial value:
{
}
@ LAST_LINE_BASE
Align to the baseline of the last line in the text.
Definition Text2D.hpp:44

Align to the start of the last line's baseline.

◆ LAST_LINE_END_TOP

TextAlign grem::graphics::TextAlign::LAST_LINE_END_TOP
inlinestaticconstexpr
Initial value:
{
}
@ LAST_LINE_END
Align to the end of the last glyph in the last line of the text.
Definition Text2D.hpp:30

Align to the end of the last line's ascender.

◆ LAST_LINE_END_BASE

TextAlign grem::graphics::TextAlign::LAST_LINE_END_BASE
inlinestaticconstexpr
Initial value:

Align to the end of the last line's baseline.

◆ CENTER_HORIZONTALLY_FIRST_LINE_TOP

TextAlign grem::graphics::TextAlign::CENTER_HORIZONTALLY_FIRST_LINE_TOP
inlinestaticconstexpr
Initial value:
{
}
@ CENTER
Align to the horizontal center of the bounding box of the text.
Definition Text2D.hpp:32

Align to the horizontal center of the bounding box on the first line's ascender.

◆ CENTER_HORIZONTALLY_FIRST_LINE_BASE

TextAlign grem::graphics::TextAlign::CENTER_HORIZONTALLY_FIRST_LINE_BASE
inlinestaticconstexpr
Initial value:

Align to the horizontal center of the bounding box on the first line's baseline.

◆ CENTER_HORIZONTALLY_LAST_LINE_TOP

TextAlign grem::graphics::TextAlign::CENTER_HORIZONTALLY_LAST_LINE_TOP
inlinestaticconstexpr
Initial value:

Align to the horizontal center of the bounding box on the last line's ascender.

◆ CENTER_HORIZONTALLY_LAST_LINE_BASE

TextAlign grem::graphics::TextAlign::CENTER_HORIZONTALLY_LAST_LINE_BASE
inlinestaticconstexpr
Initial value:

Align to the horizontal center of the bounding box on the last line's baseline.

◆ CENTER

TextAlign grem::graphics::TextAlign::CENTER
inlinestaticconstexpr
Initial value:
{
}
@ CENTER
Align to the vertical center of the bounding box of the text.
Definition Text2D.hpp:46

Align to the center of the bounding box of the text.

◆ CENTER_HORIZONTALLY

TextAlign grem::graphics::TextAlign::CENTER_HORIZONTALLY
inlinestaticconstexpr
Initial value:
{
}

Align to the horizontal center of the bounding box of the text.

◆ CENTER_VERTICALLY

TextAlign grem::graphics::TextAlign::CENTER_VERTICALLY
inlinestaticconstexpr
Initial value:
{
}

Align to the vertical center of the bounding box of the text.

◆ CENTER_HORIZONTALLY_BOTTOM

TextAlign grem::graphics::TextAlign::CENTER_HORIZONTALLY_BOTTOM
inlinestaticconstexpr
Initial value:
{
}
@ BOTTOM
Align to the bottom of the bounding box of the text.
Definition Text2D.hpp:45

Align to the bottom center of the bounding box of the text.

◆ CENTER_HORIZONTALLY_TOP

TextAlign grem::graphics::TextAlign::CENTER_HORIZONTALLY_TOP
inlinestaticconstexpr
Initial value:
{
}
@ TOP
Align to the top of the bounding box of the text.
Definition Text2D.hpp:47

Align to the top center of the bounding box of the text.

◆ CENTER_VERTICALLY_LEFT

TextAlign grem::graphics::TextAlign::CENTER_VERTICALLY_LEFT
inlinestaticconstexpr
Initial value:
{
}
@ LEFT
Align to the left of the bounding box of the text.
Definition Text2D.hpp:31

Align to the left center of the bounding box of the text.

◆ CENTER_VERTICALLY_RIGHT

TextAlign grem::graphics::TextAlign::CENTER_VERTICALLY_RIGHT
inlinestaticconstexpr
Initial value:
{
}
@ RIGHT
Align to the right of the bounding box of the text.
Definition Text2D.hpp:33

Align to the right center of the bounding box of the text.

◆ LEFT

TextAlign grem::graphics::TextAlign::LEFT
inlinestaticconstexpr
Initial value:
{
}

Align to the left of the bounding box of the text.

◆ RIGHT

TextAlign grem::graphics::TextAlign::RIGHT
inlinestaticconstexpr
Initial value:
{
}

Align to the right of the bounding box of the text.

◆ BOTTOM

TextAlign grem::graphics::TextAlign::BOTTOM
inlinestaticconstexpr
Initial value:
{
}

Align to the bottom of the bounding box of the text.

◆ TOP

TextAlign grem::graphics::TextAlign::TOP
inlinestaticconstexpr
Initial value:
{
}

Align to the top of the bounding box of the text.

◆ horizontal

TextAlignHorizontal grem::graphics::TextAlign::horizontal = TextAlignHorizontal::NONE

Horizontal alignment mode.

◆ vertical

TextAlignVertical grem::graphics::TextAlign::vertical = TextAlignVertical::NONE

Vertical alignment mode.


The documentation for this struct was generated from the following file: