Uses RAII to create a temporary image that is blended into the parent context when this object goes out of scope. More...
Public Types | |
| using | Options = ScopedBlendContextOptions |
Public Member Functions | |
| ScopedBlendContext (Graphics &g, const Options &options) | |
| Constructor. | |
| Graphics & | getContext () |
| Returns the context for drawing the image that will be blended into the parent context. | |
| bool | isClipEmpty () const |
| Returns true if the clip region for this context is empty. | |
| ~ScopedBlendContext () | |
| Destructor. | |
Uses RAII to create a temporary image that is blended into the parent context when this object goes out of scope.
Constructor.
The image drawn into the context returned by getContext() will be blended into the context passed in here when this object is destroyed.
| juce::ScopedBlendContext::~ScopedBlendContext | ( | ) |
Destructor.
|
inline |
Returns the context for drawing the image that will be blended into the parent context.
|
inline |
Returns true if the clip region for this context is empty.
This allows the call site to omit draw calls that wouldn't have a visible effect anyway.