ATextOverflow#
Controls behavior of the overflowed text. Relevant to AAbstractLabel and its derivatives only.
| Header: | #include <AUI/Enum/AOverflow.h> |
| CMake: | aui_link(my_target PUBLIC aui::views) |
Examples#
examples/app/notes/src/main.cpp
Notes App — Note taking app that demonstrates usage of AListModel, AProperty, user data saving and loading.
return Vertical {
Label {
.text = AUI_REACT(stringOneLinePreview(note->title)),
} AUI_OVERRIDE_STYLE { FontSize { 10_pt }, ATextOverflow::ELLIPSIS },
Label {
.text = AUI_REACT(stringOneLinePreview(note->content)),
} AUI_OVERRIDE_STYLE {
ATextOverflow::ELLIPSIS,
Opacity { 0.7f },
examples/ui/contacts/src/main.cpp
AUI Contacts — Usage of AUI_DECLARATIVE_FOR to make a contacts-like application.
}
_<AView> contactPreview(const _<Contact>& contact) {
return Vertical {
Label { AUI_REACT(contact->displayName) } AUI_OVERRIDE_STYLE { Padding { 8_dp, 0 }, Margin { 0 }, ATextOverflow::ELLIPSIS },
common_views::divider(),
} AUI_LET {
connect(it->clicked, [this, contact] { mSelectedContact = contact; });
};
}