JUCE  v5.1.1-3-g1a0b28c73
JUCE API
RenderingHelpers::SavedStateStack< StateObjectType > Class Template Reference

#include <juce_RenderingHelpers.h>

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

Public Member Functions

 SavedStateStack (StateObjectType *const 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

ScopedPointer< StateObjectType > currentState
 
OwnedArray< StateObjectType > stack
 

Constructor & Destructor Documentation

◆ SavedStateStack() [1/2]

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

◆ SavedStateStack() [2/2]

template<class StateObjectType>
RenderingHelpers::SavedStateStack< StateObjectType >::SavedStateStack ( )
inlinenoexcept

Member Function Documentation

◆ beginTransparencyLayer()

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

◆ endTransparencyLayer()

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

◆ initialise()

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

◆ operator*()

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

◆ operator->()

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

◆ restore()

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

◆ save()

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

Member Data Documentation

◆ currentState

template<class StateObjectType>
ScopedPointer<StateObjectType> RenderingHelpers::SavedStateStack< StateObjectType >::currentState
private

◆ stack

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

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