This is a TextLine specialization class for text read from the right to the left. More...
#include <textline.h>
Inheritance diagram for Mezzanine::UI::RightToLeftTextLine:
Collaboration diagram for Mezzanine::UI::RightToLeftTextLine:Public Member Functions | |
| RightToLeftTextLine (TextLayer *ParentLayer) | |
| Class constructor. More... | |
| virtual | ~RightToLeftTextLine () |
| Class destructor. | |
| Boole | AppendCharacters (CharacterIterator First, CharacterIterator Last, const Real MaxWidth) |
| Adds a series of Characters to the end of this TextLine. More... | |
| CharacterIterator | AppendFittingCharacters (CharacterIterator First, CharacterIterator Last, const Real MaxWidth) |
| Adds as many Characters in a range as will fit to this TextLine. More... | |
| Real | GetCursorStartPosition () const |
| Gets the offset position of the cursor based on the text order of the layer this text line belongs to. More... | |
| CharacterIterator | GetFirstCharacter () |
| Gets the first character in this TextLine. More... | |
| CharacterIterator | GetLastCharacter () |
| Gets the last character in this TextLine. More... | |
| CharacterIterator | GetNextCharacter (CharacterIterator Current) |
| Gets an iterator to the next Character. More... | |
| void | RemoveFirstCharacter () |
| Removes the character at the start of this TextLine. More... | |
| void | RemoveLastCharacter () |
| Removes the character at the end of this TextLine. More... | |
Public Member Functions inherited from Mezzanine::UI::TextLine | |
| TextLine (TextLayer *ParentLayer) | |
| Class constructor. More... | |
| virtual | ~TextLine () |
| Class destructor. | |
| Boole | AppendCharacter (Character *ToAdd, const Real MaxWidth) |
| Adds a Character to the end of this TextLine. More... | |
| Boole | AppendCharacters (CharacterContainer &ToAdd, const Real MaxWidth) |
| Adds a series of Characters to the end of this TextLine. More... | |
| Boole | AppendCharacters (CharacterIteratorPair Pair, const Real MaxWidth) |
| Adds a series of Characters to the end of this TextLine. More... | |
| CharacterIterator | AppendFittingCharacters (CharacterContainer &ToAdd, const Real MaxWidth) |
| Adds as many Characters in a range as will fit to this TextLine. More... | |
| CharacterIterator | AppendFittingCharacters (CharacterIteratorPair Pair, const Real MaxWidth) |
| Adds as many Characters in a range as will fit to this TextLine. More... | |
| CharacterIterator | BeginCharacter () |
| Gets an iterator to the first Character. More... | |
| ConstCharacterIterator | BeginCharacter () const |
| Gets a const iterator to the first Character. More... | |
| CharacterIterator | EndCharacter () |
| Gets an iterator to one passed the last Character. More... | |
| ConstCharacterIterator | EndCharacter () const |
| Gets an iterator to one passed the last Character. More... | |
| UI::LinearAlignment | GetAlignment () const |
| Gets the current alignment for the text in this line of text. More... | |
| OffsetResultPair | GetCharacterAndCursorPositionAtOffset (const Real &Offset) const |
| Gets the character at the provided offset as well as the nearest valid position the cursor can take. More... | |
| Character * | GetCharacterAtIndex (const UInt32 &Index) |
| Gets the character in this textline at the specified index. More... | |
| Character * | GetCharacterAtOffset (const Real &Offset) |
| Gets the character in this textline at the specified offset. More... | |
| Real | GetClosestCursorPosition (const Real &Offset) |
| Gets the closest valid cursor position to the offset provided. More... | |
| Real | GetCurrentLength () const |
| Calculates the current length of this text line. More... | |
| Integer | GetIndexAtOffset (const Real &Offset) const |
| Gets the index of the character at the provided offset. More... | |
| Real | GetLeftMostCursorPosition () const |
| Gets the offset position of the left-most part of this TextLine. More... | |
| Real | GetLineHeight () const |
| Gets the size of this TextLine on the Y axis. More... | |
| UInt32 | GetNumCharacters () const |
| Gets the number of characters in this TextLine. More... | |
| Real | GetOffsetAtIndex (const Integer &Index) const |
| Gets the Offset position of the character at the specified index. More... | |
| Real | GetPositionOffset () const |
| Gets the offset on the Y axis from the parent layer. More... | |
| Real | GetRightMostCursorPosition () const |
| Gets the offset position of the right-most part of this TextLine. More... | |
| void | RemoveAllCharacters () |
| Removes all characters from this TextLine. | |
| void | SetAlignment (const UI::LinearAlignment Align) |
| Sets the current alignment for the text in this line of text. More... | |
| void | SetPositionOffset (const Real &Offset) |
| Sets the offset on the Y axis from the parent layer. More... | |
Protected Member Functions | |
| void | AppendToBack (Character *ToAppend) |
| Adds a character such that it becomes the last in the sequence. More... | |
| void | AppendToBack (CharacterIterator First, CharacterIterator Last) |
| Adds a series of characters to the end of this line. More... | |
| Character * | GetSecondFromLastCharacter () const |
| Gets the character before the last character. More... | |
| void | RecalculateOffsets () |
| Recalculates the offset for every character in this line. More... | |
Additional Inherited Members | |
Public Types inherited from Mezzanine::UI::TextLine | |
| typedef std::list< Character * > | CharacterContainer |
| Basic container type for Character storage by this class. | |
| typedef CharacterContainer::iterator | CharacterIterator |
| Iterator type for Character instances stored by this class. | |
| typedef std::pair< CharacterIterator, CharacterIterator > | CharacterIteratorPair |
| An std::pair storing two CharacterIterators, usually for expressing a range. | |
| typedef CharacterContainer::const_iterator | ConstCharacterIterator |
| Const Iterator type for Character instances stored by this class. | |
| typedef std::pair< Character *, Vector2 > | OffsetResultPair |
| An std::pair storing a Character and it's offset position (relative to the parent layer). | |
| typedef CharacterContainer::reverse_iterator | ReverseCharacterIterator |
| Reverse Iterator type for Character instances stored by this class. | |
| typedef CharacterContainer::const_reverse_iterator | ReverseConstCharacterIterator |
| Const Reverse Iterator type for Character instances stored by this class. | |
Protected Attributes inherited from Mezzanine::UI::TextLine | |
| UI::LinearAlignment | Alignment |
| The alignment of the text on the X axis in this line. More... | |
| CharacterContainer | Characters |
| Vector containing all the characters belonging to this TextLine. More... | |
| Real | CurrLength |
| The current length of this TextLine. More... | |
| TextLayer * | Parent |
| The parent layer this text line belongs to. More... | |
| Real | PositionOffset |
| The offset in pixels from the parent layer on the Y axis. More... | |
| Real | TallestHeight |
| The size of the largest glyph on the Y axis. More... | |
This is a TextLine specialization class for text read from the right to the left.
Definition at line 323 of file textline.h.
| Mezzanine::UI::RightToLeftTextLine::RightToLeftTextLine | ( | TextLayer * | ParentLayer | ) |
Class constructor.
Definition at line 478 of file textline.cpp.
|
virtual |
Adds a series of Characters to the end of this TextLine.
| First | Iterator to the first Character in the series to be added. |
| Last | Iterator to one passed the last Character in the series to be added. |
| MaxWidth | The maximum line width to assume for all text lines that are to be populated. |
Implements Mezzanine::UI::TextLine.
Definition at line 525 of file textline.cpp.
|
virtual |
Adds as many Characters in a range as will fit to this TextLine.
| First | Iterator to the first Character in the series to be added. |
| Last | Iterator to one passed the last Character in the series to be added. |
| MaxWidth | The maximum line width to assume for all text lines that are to be populated. |
Implements Mezzanine::UI::TextLine.
Definition at line 561 of file textline.cpp.
|
protectedvirtual |
Adds a character such that it becomes the last in the sequence.
| ToAppend | The character to be appended. |
Implements Mezzanine::UI::TextLine.
Definition at line 504 of file textline.cpp.
|
protectedvirtual |
Adds a series of characters to the end of this line.
| First | The first Character in a range to be appended. |
| Last | The last Character in a range to be appended. |
Implements Mezzanine::UI::TextLine.
Definition at line 509 of file textline.cpp.
|
virtual |
Gets the offset position of the cursor based on the text order of the layer this text line belongs to.
Implements Mezzanine::UI::TextLine.
Definition at line 517 of file textline.cpp.
|
virtual |
Gets the first character in this TextLine.
Implements Mezzanine::UI::TextLine.
Definition at line 598 of file textline.cpp.
|
virtual |
Gets the last character in this TextLine.
Implements Mezzanine::UI::TextLine.
Definition at line 604 of file textline.cpp.
|
virtual |
Gets an iterator to the next Character.
| Current | An iterator to a valid Character. |
Implements Mezzanine::UI::TextLine.
Definition at line 610 of file textline.cpp.
|
protectedvirtual |
Gets the character before the last character.
Implements Mezzanine::UI::TextLine.
Definition at line 485 of file textline.cpp.
|
protectedvirtual |
Recalculates the offset for every character in this line.
Implements Mezzanine::UI::TextLine.
Definition at line 491 of file textline.cpp.
|
virtual |
Removes the character at the start of this TextLine.
Implements Mezzanine::UI::TextLine.
Definition at line 617 of file textline.cpp.
|
virtual |
Removes the character at the end of this TextLine.
Implements Mezzanine::UI::TextLine.
Definition at line 623 of file textline.cpp.
1.8.9.1. Thanks to the
Open Icon Library
for help with some of the icons.