ass::BackgroundSolid#
Represents solid (single color) background.
Header: | #include <AUI/ASS/Property/BackgroundSolid.h> |
CMake: | aui_link(my_target PUBLIC aui::views) |
Examples#
examples/7guis/flight_booker/src/main.cpp
7GUIs Flight Booker - Flight Booker.
public:
FlightBookerWindow() : AWindow("AUI - 7GUIs - Book Flight", 150_dp, 50_dp) {
setExtraStylesheet(AStylesheet { {
ass::c(".red"),
ass::BackgroundSolid { AColor::RED },
} });
setContents(Centered {
Vertical {
_new<ADropdownList>(AListModel<AString>::make({ "one-way flight", "return flight" })) AUI_LET {
connect(it->selectionId().readProjected([](int selectionId) { return selectionId == 1; }),
examples/app/game_of_life/src/main.cpp
Game of Life - Game of Life implementation that uses advanced large dynamic data rendering techniques such as ITexture, AImage to be GPU friendly. The computation is performed in AThreadPool.
},
Centered {
_new<CellsView>(aui::ptr::fake_shared(&mCells)) AUI_WITH_STYLE {
Expanding(),
BackgroundSolid(AColor::BLACK),
},
},
});
}
examples/7guis/circle_drawer/src/main.cpp
7GUIs Circle Drawer - Undo, redo, dialog control.