#include <OpenGUI_Types.h>
Text alignment is combined into a single object to represent both vertical and horizontal alignments.
Public Types | |
| enum | Alignment { ALIGN_LEFT = 0, ALIGN_TOP = 0, ALIGN_RIGHT = 1, ALIGN_BOTTOM = 1, ALIGN_CENTER = 2, ALIGN_JUSTIFIED = 3 } |
| Enum definition for representing alignment style. More... | |
Public Member Functions | |
| TextAlignment () | |
| Default constructor initializes with Left and Top alignments. | |
| TextAlignment (Alignment both) | |
| The single argument constructor sets both axis to the same alignment. | |
| TextAlignment (Alignment horizontal_alignment, Alignment vertical_alignment) | |
| The double argument constructor sets each alignment axis individually. | |
| Alignment | getHorizontal () const |
| returns the horizontal alignment component | |
| Alignment | getVertical () const |
| returns the vertical alignment component | |
| TextAlignment & | operator= (const TextAlignment &rhs) |
| Assignment operator, copies both axis from the right hand side TextAlignment object. | |
| bool | operator== (const TextAlignment &rhs) const |
| TextAlignment objects are equal if both axis have equal values. | |
|
|
|
Default constructor initializes with Left and Top alignments.
|
|
|
The single argument constructor sets both axis to the same alignment.
|
|
||||||||||||
|
The double argument constructor sets each alignment axis individually.
|
|
|
returns the horizontal alignment component
|
|
|
returns the vertical alignment component
|
|
|
Assignment operator, copies both axis from the right hand side TextAlignment object.
|
|
|
TextAlignment objects are equal if both axis have equal values.
|