JUCE  v5.4.1-191-g0ab5e696f
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 (StateObjectType *initialState) noexcept
 
 SavedStateStack () 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 ( )
inlinenoexcept

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: