Om
1.0.0
A universal framework for multimedia simulation
|
A class that describes the layout direction and major axis of text. More...
#include <omGraphicsGUITextLayout.h>
Public Member Functions | |
TextLayout () | |
Create a new font layout with the default font layout. More... | |
TextLayout (const Axis &newAxis) | |
Create a new font layout using the specified font layout type. More... | |
TextLayout (const Axis &newAxis, const Vector2f &newDirection) | |
Create a new font layout using the specified font layout type. More... | |
operator const Axis & () const | |
Convert this font layout to an axis enum value. More... | |
const Axis & | getAxis () const |
Return the major axis of this font layout along which consecutive glyphs are arranged. More... | |
void | setAxis (const Axis &newAxis) |
Set the major axis of this font layout along which consecutive glyphs are arranged. More... | |
Index | getAxisIndex () const |
Return the axis index along which consecutive glyphs are arranged for this layout. More... | |
const Vector2f & | getDirection () const |
Return the signed layout direction of this font along each axis. More... | |
void | setDirection (const Vector2f &newDirection) |
Set the signed layout direction of this font along each axis. More... | |
A class that describes the layout direction and major axis of text.
Text can be layed out either horizontally, in which case lines are horizontal and each successive line is vertically offset, or vertically, where lines are vertical and each successive line is horizontally offset.
The text direction along each axis is specified as a signed value. For horizontal layouts, the sign of the x component indicates whether the layout is left-to-right (+1) or right-to-left (-1). The y component indicates how consecutive lines of text are arranged, either top-to-bottom (-1) or bottom-to-top (+1).
For vertical layouts, the x component indicates how consecutive lines of text are arranged, and the y component indicates the vertical direction of the text.
|
inline |
Create a new font layout with the default font layout.
The default horizontal font layout direction is used, where text is written left-to-right and top-to-bottom.
|
inline |
Create a new font layout using the specified font layout type.
The default font layout direction is used, where text is written left-to-right and top-to-bottom.
|
inline |
Create a new font layout using the specified font layout type.
The default font layout direction is used, where text is written left-to-right and top-to-bottom.
|
inline |
Convert this font layout to an axis enum value.
|
inline |
Return the major axis of this font layout along which consecutive glyphs are arranged.
|
inline |
Set the major axis of this font layout along which consecutive glyphs are arranged.
|
inline |
Return the axis index along which consecutive glyphs are arranged for this layout.
For horizontal layouts, the axis index is 0 for the X axis. For vertical layouts, the axis index is 1 for the Y axis.
|
inline |
Return the signed layout direction of this font along each axis.
|
inline |
Set the signed layout direction of this font along each axis.