Definition Application.hpp:19
UInt32 Glyph
Definition Font.hpp:29
std::vector< T, ScopedAllocatorAdaptor< StdAllocator< T, RawAllocator > > > Vector
Vector is a sequence container that encapsulates dynamic size arrays.
Definition Vector.hpp:17
LineBreakMode
Constants that specify what happens when a line is too long for its container.
Definition TextLayout.hpp:23
@ ByWordWrapping
Wrapping occurs at word boundaries, unless the word itself doesn't fit on a single line.
@ ByTruncatingHead
The line is displayed so that the end fits in the container and the missing text at the beginning of ...
@ ByCharWrapping
Wrapping occurs before the first character that doesn't fit.
@ ByTruncatingTail
The line is displayed so that the beginning fits in the container and the missing text at the end of ...
@ ByTruncatingMiddle
The line is displayed so that the beginning and end fit in the container and the missing text in the ...
@ ByClipping
Lines are simply not drawn past the edge of the text container.
@ Color
Attachment is used for color output.
std::uint32_t UInt32
Definition DataTypes.hpp:23
A structure that describes positioning and sizing of a single glyph in a text layout.
Definition TextLayout.hpp:104
UInt32 textureIdx
The index to the font texture map.
Definition TextLayout.hpp:115
Rect2 bounds
The size of the rendered glyph.
Definition TextLayout.hpp:112
Point2 pen
The position of the glyph.
Definition TextLayout.hpp:109
Color color
The glyph color.
Definition TextLayout.hpp:121
Rect2 uv
The UV coordinates for the glyph.
Definition TextLayout.hpp:118
Glyph glyph
The glyph to be rendered.
Definition TextLayout.hpp:106
A region where text is laid out.
Definition TextLayout.hpp:64
UInt32 maximumNumberOfLines
The maximum number of lines that can be stored in the text container.
Definition TextLayout.hpp:87
double lineFragmentPadding
The amount by which text is inset within line fragment rectangles.
Definition TextLayout.hpp:99
Rect2 rect
The size of the text container's bounding rectangle.
Definition TextLayout.hpp:66
LineBreakMode lineBreakMode
The behavior of the last line inside the text container.
Definition TextLayout.hpp:78
Rect2 usedRect
The size of actually used space on the text container.
Definition TextLayout.hpp:69
A structure that describes how text is layout in a text container.
Definition TextLayout.hpp:125
UInt32 offset
An offset into the glyph data buffer.
Definition TextLayout.hpp:130
Vector< GlyphLayout > glyphs
A vector that describes the positioning and rendering information of all glyphs in a text.
Definition TextLayout.hpp:134
TextLayout(TextContainer &container)
Creates a new TextLayout for the given container.
TextContainer & container
The text container this layout represents.
Definition TextLayout.hpp:127