AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
IRenderViewToTexture::InvalidArea Struct Reference

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.
 
Rectanglesrectangles () noexcept
 
const Rectanglesrectangles () const noexcept