#include <lugre_ogrefonthelper.h>

Public Member Functions | |
| cTextIterator (cOgreFontHelper &mFontHelper, const Ogre::UTFString &sText) | |
| current plotter position, start = (0,0) | |
| cTextIterator (cOgreFontHelper &mFontHelper, itor mCur, itor mEnd) | |
| bool | HasNext () |
| unicode_char | Next () |
| call this BEFORE processing each char | |
| void | StartLine () |
| void | LineFeed () |
Public Attributes | |
| float | x |
| float | y |
Private Attributes | |
| cOgreFontHelper & | mFontHelper |
| itor | mCur |
| itor | mEnd |
| bool | mbFirstChar |
| bool | mbLineFeed |
| float | mfLineStartX |
| unicode_char | c |
Definition at line 194 of file lugre_ogrefonthelper.h.
| Lugre::cOgreFontHelper::cTextIterator::cTextIterator | ( | cOgreFontHelper & | mFontHelper, | |
| const Ogre::UTFString & | sText | |||
| ) | [inline] |
current plotter position, start = (0,0)
Definition at line 197 of file lugre_ogrefonthelper.h.
References StartLine().
| Lugre::cOgreFontHelper::cTextIterator::cTextIterator | ( | cOgreFontHelper & | mFontHelper, | |
| itor | mCur, | |||
| itor | mEnd | |||
| ) | [inline] |
| bool Lugre::cOgreFontHelper::cTextIterator::HasNext | ( | ) | [inline] |
Definition at line 209 of file lugre_ogrefonthelper.h.
Referenced by Lugre::cOgreFontHelper::GetGlyphAtPos(), Lugre::cOgreFontHelper::GetGlyphBounds(), Lugre::cOgreFontHelper::GetTextBounds(), Lugre::cGfx3D::SetText(), and Lugre::cColourClipTextOverlay::updatePositionGeometry().
| unicode_char Lugre::cOgreFontHelper::cTextIterator::Next | ( | ) | [inline] |
call this BEFORE processing each char
Definition at line 212 of file lugre_ogrefonthelper.h.
References c, Lugre::cOgreFontHelper::GetCharWidth(), Lugre::cOgreFontHelper::IsCRLF(), Lugre::cOgreFontHelper::IsNewLine(), Lugre::cOgreFontHelper::IsWhiteSpace(), LineFeed(), mbFirstChar, mbLineFeed, mCur, mEnd, mfLineStartX, mFontHelper, Lugre::cOgreFontHelper::mfWrapMaxW, Lugre::cOgreFontHelper::TestAutoWrap(), and x.
Referenced by Lugre::cOgreFontHelper::GetGlyphAtPos(), Lugre::cOgreFontHelper::GetGlyphBounds(), Lugre::cOgreFontHelper::GetTextBounds(), Lugre::cGfx3D::SetText(), and Lugre::cColourClipTextOverlay::updatePositionGeometry().
| void Lugre::cOgreFontHelper::cTextIterator::StartLine | ( | ) | [inline] |
reset the write position to the beginning of the line if this is called after encountering a newline, mCur should point to the first char AFTER the newline if this is called after encountering a CRLF, mCur should point to the first char AFTER both CR and LF
Definition at line 241 of file lugre_ogrefonthelper.h.
References Lugre::cOgreFontHelper::Align_Center, Lugre::cOgreFontHelper::Align_Left, Lugre::cOgreFontHelper::Align_Right, Lugre::cOgreFontHelper::CalcLineLen(), Lugre::cOgreFontHelper::mAlign, mCur, mEnd, mfLineStartX, mFontHelper, and x.
Referenced by cTextIterator(), and LineFeed().
| void Lugre::cOgreFontHelper::cTextIterator::LineFeed | ( | ) | [inline] |
Definition at line 251 of file lugre_ogrefonthelper.h.
References Lugre::cOgreFontHelper::mfLineHeight, mFontHelper, StartLine(), and y.
Referenced by Next().
Definition at line 195 of file lugre_ogrefonthelper.h.
Referenced by Lugre::cOgreFontHelper::GetGlyphAtPos(), Lugre::cOgreFontHelper::GetGlyphBounds(), Lugre::cOgreFontHelper::GetTextBounds(), Next(), Lugre::cGfx3D::SetText(), StartLine(), and Lugre::cColourClipTextOverlay::updatePositionGeometry().
Definition at line 195 of file lugre_ogrefonthelper.h.
Referenced by Lugre::cOgreFontHelper::GetGlyphAtPos(), Lugre::cOgreFontHelper::GetGlyphBounds(), Lugre::cOgreFontHelper::GetTextBounds(), LineFeed(), Lugre::cGfx3D::SetText(), and Lugre::cColourClipTextOverlay::updatePositionGeometry().
Definition at line 258 of file lugre_ogrefonthelper.h.
Referenced by LineFeed(), Next(), and StartLine().
Definition at line 259 of file lugre_ogrefonthelper.h.
Referenced by HasNext(), Next(), and StartLine().
Definition at line 260 of file lugre_ogrefonthelper.h.
Referenced by HasNext(), Next(), and StartLine().
bool Lugre::cOgreFontHelper::cTextIterator::mbFirstChar [private] |
bool Lugre::cOgreFontHelper::cTextIterator::mbLineFeed [private] |
float Lugre::cOgreFontHelper::cTextIterator::mfLineStartX [private] |
1.5.6