17 void setMin(T& _var,
const T& _newValue)
24 void setMax(T& _var,
const T& _newValue)
37 const UString::utf32string::const_iterator& _space_point,
42 space_point = _space_point;
58 float getWidth()
const
64 size_t getCount()
const
70 size_t getPosition()
const
76 UString::utf32string::const_iterator getTextIter()
const
84 UString::utf32string::const_iterator space_point;
102 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 0, 0, 0, 0, 0, 0, 10, 11, 12, 13, 14, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0,
103 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 12, 13, 14, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0};
116 UString::utf32string::const_iterator end =
_text.end();
117 UString::utf32string::const_iterator index =
_text.begin();
124 for (; index != end; ++index)
133 UString::utf32string::const_iterator
peeki = index;
174 for (
char i = 0;
i < 5;
i++)
267 for (
auto&
line : mLineInfo)
271 else if (
_align.isHCenter())
283 for (VectorLineInfo::const_iterator
line = mLineInfo.begin();
line != mLineInfo.end(); ++
line)
299 for (
const auto&
sym :
line->symbols)
328 for (
const auto&
line : mLineInfo)
333 for (
const auto&
sym :
line.symbols)
342 left +=
sym.getBearingX() +
sym.getAdvance();
346 position +=
line.count + 1;
350 return {(
int)left, top};
#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