This class provides a simple guard for setting the active clipping area for widgets. More...
#include <Luminous/RenderContext.hpp>
Public Member Functions | |
| ClipGuard (RenderContext &r, const Nimble::Rectangle &rect) | |
| Construct a new guard. More... | |
| ClipGuard (ClipGuard &&rhs) | |
| Construct a guard by moving. More... | |
| ~ClipGuard () | |
| Destructor. This function automatically calls RenderContext::popClipRect(). | |
This class provides a simple guard for setting the active clipping area for widgets.
It will automatically pop the area in its destructor so the user doesn't need to remember to do it manually. It is equivalent to calling "RenderContext::pushClipRect(const Nimble::Rectangle &)" and "RenderContext::popClipRect" This clipping only affects clipping individual widgets.
|
inline |
Construct a new guard.
| r | render context |
|
inline |
Construct a guard by moving.
| rhs | guard to move |