LMMS
Loading...
Searching...
No Matches
juce::Graphics::ScopedSaveState Class Reference

#include <juce_GraphicsContext.h>

Public Member Functions

 ScopedSaveState (Graphics &)
 ~ScopedSaveState ()

Private Attributes

Graphicscontext

Detailed Description

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.

Constructor & Destructor Documentation

◆ ScopedSaveState()

juce::Graphics::ScopedSaveState::ScopedSaveState ( Graphics & g)

◆ ~ScopedSaveState()

juce::Graphics::ScopedSaveState::~ScopedSaveState ( )

Member Data Documentation

◆ context

Graphics& juce::Graphics::ScopedSaveState::context
private

The documentation for this class was generated from the following files: