31class API_AUI_VIEWS AText :
public ATextBase<AWordWrappingEngine<>> {
35 WordBreak wordBreak = WordBreak::NORMAL;
44 void clearContent()
override;
48 void setHtml(
const AString& html,
const Flags& flags = {});
50 void setString(
const AString&
string,
const Flags& flags = {});
52 void setString(
const AString&
string) {
53 setString(
string, {});
56 static _<AText> fromItems(std::initializer_list<std::variant<AString, _<AView>>> init,
const Flags& flags = {}) {
58 v->setItems(init, flags);
62 static _<AText> fromHtml(
const AString& html,
const Flags& flags = {}) {
64 v->setHtml(html, flags);
68 static _<AText> fromString(
const AString&
string,
const Flags& flags = {}) {
70 v->setString(
string, flags);
75 void fillStringCanvas(
const _<IRenderer::IMultiStringCanvas>& canvas)
override;
78 class WordEntry final :
public aui::detail::WordEntry {
80 using aui::detail::WordEntry::WordEntry;
83 class CharEntry final :
public aui::detail::CharEntry {
85 using aui::detail::CharEntry::CharEntry;
88 ADeque<WordEntry> mWordEntries;
89 ADeque<CharEntry> mCharEntries;
90 ParsedFlags mParsedFlags;
91 aui::detail::WhitespaceEntry mWhitespaceEntry =
this;
92 aui::detail::NextLineEntry mNextLineEntry =
this;
94 void pushWord(Entries& entries,
96 const ParsedFlags& flags);
98 static ParsedFlags parseFlags(
const Flags& flags);
100 void processString(
const AString&
string,
const ParsedFlags& parsedFlags,
static _< T > manage(T *raw)
Delegates memory management of the raw pointer T* raw to the shared pointer, which is returned.
Definition SharedPtrTypes.h:372