IRenderingContext#
Glue between AWindow and IRenderer.
Header: | #include <AUI/Platform/IRenderingContext.h> |
CMake: | aui_link(my_target PUBLIC aui::views) |
Detailed Description#
IRenderingContext is linker object between AWindow and IRenderer, that exposes IRenderer to the client code in order to draw.
Unlike IRenderer, each AWindow has it's own instance of IRenderingContext, thus it can be used to carry platform-specific and window-specific objects, like handles and framebuffers.
Public Types#
Init#
struct IRenderingContext::Init
Examples#
examples/ui/infinite_lazy_list/src/main.cpp
Infinite Lazy List - Usage of AUI_DECLARATIVE_FOR to make an infinite lazy list.
};
});
return Vertical {
AUI_DECLARATIVE_FOR(i, *state->items, AVerticalLayout) { return Label{} & i->value; },
Centered {
_new<ASpinnerV2>() AUI_LET {
AObject::connect(it->redrawn, AObject::GENERIC_OBSERVER, [state] {
// when a spinner appears, we indicate that we need more items.
state->needMore = true;
Empty structure.