JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::RenderingHelpers::SavedStateStack< StateObjectType > Class Template Reference

#include <juce_RenderingHelpers.h>

Inheritance diagram for juce::RenderingHelpers::SavedStateStack< StateObjectType >:
Collaboration diagram for juce::RenderingHelpers::SavedStateStack< StateObjectType >:

Public Member Functions

 SavedStateStack ()=default
 
 SavedStateStack (StateObjectType *initialState) noexcept
 
void beginTransparencyLayer (float opacity)
 
void endTransparencyLayer ()
 
void initialise (StateObjectType *state)
 
StateObjectType & operator* () const noexcept
 
StateObjectType * operator-> () const noexcept
 
void restore ()
 
void save ()
 

Private Attributes

std::unique_ptr< StateObjectType > currentState
 
OwnedArray< StateObjectType > stack
 

Constructor & Destructor Documentation

◆ SavedStateStack() [1/2]

template<class StateObjectType >
juce::RenderingHelpers::SavedStateStack< StateObjectType >::SavedStateStack ( StateObjectType *  initialState)
inlinenoexcept

◆ SavedStateStack() [2/2]

template<class StateObjectType >
juce::RenderingHelpers::SavedStateStack< StateObjectType >::SavedStateStack ( )
default

Member Function Documentation

◆ beginTransparencyLayer()

template<class StateObjectType >
void juce::RenderingHelpers::SavedStateStack< StateObjectType >::beginTransparencyLayer ( float  opacity)
inline

◆ endTransparencyLayer()

template<class StateObjectType >
void juce::RenderingHelpers::SavedStateStack< StateObjectType >::endTransparencyLayer ( )
inline

◆ initialise()

template<class StateObjectType >
void juce::RenderingHelpers::SavedStateStack< StateObjectType >::initialise ( StateObjectType *  state)
inline

◆ operator*()

template<class StateObjectType >
StateObjectType& juce::RenderingHelpers::SavedStateStack< StateObjectType >::operator* ( ) const
inlinenoexcept

◆ operator->()

template<class StateObjectType >
StateObjectType* juce::RenderingHelpers::SavedStateStack< StateObjectType >::operator-> ( ) const
inlinenoexcept

◆ restore()

template<class StateObjectType >
void juce::RenderingHelpers::SavedStateStack< StateObjectType >::restore ( )
inline

◆ save()

template<class StateObjectType >
void juce::RenderingHelpers::SavedStateStack< StateObjectType >::save ( )
inline

Member Data Documentation

◆ currentState

template<class StateObjectType >
std::unique_ptr<StateObjectType> juce::RenderingHelpers::SavedStateStack< StateObjectType >::currentState
private

◆ stack

template<class StateObjectType >
OwnedArray<StateObjectType> juce::RenderingHelpers::SavedStateStack< StateObjectType >::stack
private

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