ass::BorderRadius#
Controls border radius.
| Header: | #include <AUI/ASS/Property/BorderRadius.h> |
| CMake: | aui_link(my_target PUBLIC aui::views) |
Examples#
examples/ui/contacts/src/view/ContactDetailsView.cpp
AUI Contacts - Usage of AUI_DECLARATIVE_FOR to make a contacts-like application.
AUI_REACT(contact->displayName->empty() ? "?" : AString(1, contact->displayName->first()).uppercase())
} AUI_WITH_STYLE { Opacity(0.5f), FontSize { 32_dp } },
} AUI_WITH_STYLE {
FixedSize { 64_dp },
BorderRadius { 32_dp },
BackgroundGradient { AColor::GRAY.lighter(0.5f), AColor::GRAY, 163_deg },
};
}
template <typename T>
examples/ui/backdrop/src/main.cpp
Backdrop - Backdrop effects demo.
Centered {
Horizontal {
Label { "boll" } AUI_WITH_STYLE {
FixedSize { 60_dp },
BorderRadius { 60_dp / 2.f },
Padding { 0 },
ATextAlign::CENTER,
Backdrop {
Backdrop::LiquidFluid {},
},
examples/7guis/cells/src/main.cpp
7GUIs Cells - Spreadsheet processor (Excel).
this,
_new<ATextField>() AUI_WITH_STYLE {
MinSize { 0 },
Margin { 0 },
BorderRadius { 0 },
} AUI_LET {
it && mState->currentExpression;
it->focus();
connect(it->focusLost, me::commitExpression);
});