|
AUI Framework
master
Cross-platform base for C++ UI apps
|
Defines areas to invalidate (redraw).
#include <AUI/Render/IRenderViewToTexture.h>
Classes# | |
| struct | Empty |
| No redraw. More... | |
| struct | Full |
| Full redraw. More... | |
Public Types# | |
| using | Rectangles = AStaticVector<ARect<int>, ARenderContext::Rectangles::capacity() - 1> |
| Specific areas redraw. | |
| using | Underlying = std::variant<Empty, Rectangles, Full> |
Public Member Functions# | |
| template<aui::convertible_to< Underlying > F> | |
| InvalidArea (F &&u) noexcept | |
| bool | empty () const noexcept |
| bool | full () const noexcept |
| void | addRectangle (ARect< int > rhs) |
| Adds rectangle as an invalid area. If needed, switches to full redraw. | |
| Rectangles * | rectangles () noexcept |
| const Rectangles * | rectangles () const noexcept |