38 HorizontalAlignment(a), VerticalAlignment(
TextAlignment::Center),
39 AutoWrapLine(false), Text()
54 switch(HorizontalAlignment)
56 case TextAlignment::Center:
62 if(horizontal_offset > 0)
64 if(HorizontalAlignment == TextAlignment::Center)
65 horizontal_offset /= 2;
66 ts.
Pen.
X += horizontal_offset;
73 switch(VerticalAlignment)
75 case TextAlignment::Center:
81 if(vertical_offset > 0)
83 if(VerticalAlignment == TextAlignment::Center)
85 ts.
Pen.
Y += vertical_offset;
106 MTextList::MTextList(
const shared_ptr<ListType>&
h,
const Drawing::Font& fnt)
108 hList(h), tsList(
Font)
111 hList = make_shared<ListType>();
119 return IsInInterval<IndexType>(idx, lst.size()) ? &lst[idx] :
nullptr;
126 return IsInInterval<IndexType>(idx, lst.size()) ? &lst[idx] :
nullptr;
139 const auto i(std::find(lst.begin(), lst.end(), text));
141 return i != lst.end() ? i - lst.begin() :
IndexType(-1);