ass::BackgroundSolid#
Represents solid (single color) background.
| Header: | #include <AUI/ASS/Property/BackgroundSolid.h> |
| CMake: | aui_link(my_target PUBLIC aui::views) |
Examples#
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),
},
},
} AUI_WITH_STYLE { LayoutSpacing { 4_dp } });
}
examples/app/minesweeper/src/Style.cpp
Minesweeper Game - Minesweeper game implementation driven by ass.
examples/app/fractal/src/FractalWindow.cpp
Fractal Example - Fractal viewer application demonstrating usage of custom shaders.
examples/ui/contacts/src/view/common.cpp
AUI Contacts - Usage of AUI_DECLARATIVE_FOR to make a contacts-like application.
examples/7guis/flight_booker/src/main.cpp
7GUIs Flight Booker - Flight Booker.
// using type = _<ass::prop::IPropertyBase>;
// };
template<>
struct std::common_type<ass::BackgroundSolid, std::nullptr_t> {
using type = _<ass::prop::IPropertyBase>;
};
auto dateTextField(_<DateTextFieldState> state) {
return _new<ATextField>() AUI_LET {
examples/7guis/circle_drawer/src/main.cpp
7GUIs Circle Drawer - Undo, redo, dialog control.
examples/7guis/cells/src/main.cpp
7GUIs Cells - Spreadsheet processor (Excel).
for (unsigned row = 0; row < mState->spreadsheet.size().y; ++row) {
views[row + 1][0] = labelTitle("{}"_format(Cell::rowName(row)));
for (unsigned column = 0; column < mState->spreadsheet.size().x; ++column) {
views[row + 1][column + 1] = _new<CellView>(mState, mState->spreadsheet[{ column, row }]) AUI_WITH_STYLE {
BackgroundSolid { AColor::WHITE },
MinSize { {}, 20_dp },
};
}
}
return views;