JUCE  v5.1.1-3-g1a0b28c73
JUCE API
Graphics::ScopedSaveState Class Reference

Uses RAII to save and restore the state of a graphics context. More...

#include <juce_GraphicsContext.h>

Collaboration diagram for Graphics::ScopedSaveState:

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()

Graphics::ScopedSaveState::ScopedSaveState ( Graphics )

◆ ~ScopedSaveState()

Graphics::ScopedSaveState::~ScopedSaveState ( )

Member Data Documentation

◆ context

Graphics& Graphics::ScopedSaveState::context
private

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