Uses RAII to save and restore the state of a graphics context.
On construction, this calls Graphics::saveState(), and on destruction it calls Graphics::restoreState() on the Graphics object that you supply.
Public Member Functions | |
| ScopedSaveState (Graphics &) | |
| ~ScopedSaveState () | |
| juce::Graphics::ScopedSaveState::ScopedSaveState | ( | Graphics & | ) |
References juce::Graphics::Graphics().
Referenced by ~ScopedSaveState().
| juce::Graphics::ScopedSaveState::~ScopedSaveState | ( | ) |
References juce::Graphics::Graphics(), and ScopedSaveState().