17 void setMin(T& _var,
const T& _newValue)
24 void setMax(T& _var,
const T& _newValue)
43 void set(
size_t _position,
const UString::utf32string::const_iterator& _space_point,
size_t _count,
float _width)
46 space_point = _space_point;
62 float getWidth()
const
68 size_t getCount()
const
74 size_t getPosition()
const
80 UString::utf32string::const_iterator getTextIter()
const
88 UString::utf32string::const_iterator space_point;
107 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 0, 0, 0, 0, 0,
108 0, 10, 11, 12, 13, 14, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0,
109 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
110 0, 10, 11, 12, 13, 14, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0
124 UString::utf32string::const_iterator end =
_text.end();
125 UString::utf32string::const_iterator index =
_text.begin();
132 for (; index != end; ++index)
143 UString::utf32string::const_iterator
peeki = index;
184 for (
char i = 0;
i < 5;
i++)
278 for (VectorLineInfo::iterator
line = mLineInfo.begin();
line != mLineInfo.end(); ++
line)
282 else if (
_align.isHCenter())
294 for (VectorLineInfo::const_iterator
line = mLineInfo.begin();
line != mLineInfo.end(); ++
line)
310 for (
const auto&
sim :
line->symbols)
339 for (VectorLineInfo::const_iterator
line = mLineInfo.begin();
line != mLineInfo.end(); ++
line)
344 for (VectorCharInfo::const_iterator
sim =
line->symbols.begin();
sim !=
line->symbols.end(); ++
sim)
353 left +=
sim->getBearingX() +
sim->getAdvance();
357 position +=
line->count + 1;
#define MYGUI_DEBUG_ASSERT(exp, dest)
size_t getCursorPosition(const IntPoint &_value) const
IntPoint getCursorPoint(size_t _position) const
size_t getTextLength() const
void update(const UString::utf32string &_text, IFont *_font, int _height, Align _align, VertexColourType _format, int _maxWidth=-1)
const VectorLineInfo & getData() const
const IntSize & getViewSize() const
std::basic_string< unicode_char > utf32string
string type used for returning UTF-32 formatted data
void convertColour(uint32 &_colour, VertexColourType _format)
Convert from 32-bit ARGB to native colour (ABGR or ARGB)
std::vector< LineInfo > VectorLineInfo
types::TPoint< int > IntPoint