ass::Sizing#
Determines sizing rules of a background texture (BackgroundImage).
| Header: | #include <AUI/ASS/Property/BackgroundImage.h> |
| CMake: | aui_link(my_target PUBLIC aui::views) |
Examples#
examples/ui/views/src/ExampleWindow.cpp
Views Example — All-in-one views building example.
"https://raster.shields.io/github/stars/aui-framework/aui?style=raster&logo=github");
AUI_UI_THREAD {
auto view = Icon { drawable } AUI_OVERRIDE_STYLE {
FixedSize { 80_dp, 20_dp },
BackgroundImage { {}, {}, {}, Sizing::COVER },
Margin { 4_dp },
ACursor::POINTER,
};
connect(view->clicked, [] {
APlatform::openUrl("https://github.com/aui-framework/aui/stargazers");