JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType > Class Template Reference

#include <juce_RenderingHelpers.h>

Inheritance diagram for juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >:
Collaboration diagram for juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >:

Public Member Functions

void addTransform (const AffineTransform &t) override
 
void beginTransparencyLayer (float opacity) override
 
bool clipRegionIntersects (const Rectangle< int > &r) override
 
void clipToImageAlpha (const Image &im, const AffineTransform &t) override
 
void clipToPath (const Path &path, const AffineTransform &t) override
 
bool clipToRectangle (const Rectangle< int > &r) override
 
bool clipToRectangleList (const RectangleList< int > &r) override
 
void drawGlyph (int glyphNumber, const AffineTransform &t) override
 
void drawImage (const Image &im, const AffineTransform &t) override
 
void drawLine (const Line< float > &line) override
 
virtual bool drawTextLayout (const AttributedString &, const Rectangle< float > &)
 
void endTransparencyLayer () override
 
void excludeClipRectangle (const Rectangle< int > &r) override
 
void fillPath (const Path &path, const AffineTransform &t) override
 
void fillRect (const Rectangle< int > &r, bool replace) override
 
void fillRect (const Rectangle< float > &r) override
 
void fillRectList (const RectangleList< float > &list) override
 
Rectangle< intgetClipBounds () const override
 
const FontgetFont () override
 
float getPhysicalPixelScaleFactor () override
 
bool isClipEmpty () const override
 
bool isVectorDevice () const override
 Returns true if this device is vector-based, e.g. More...
 
void restoreState () override
 
void saveState () override
 
void setFill (const FillType &fillType) override
 
void setFont (const Font &newFont) override
 
void setInterpolationQuality (Graphics::ResamplingQuality quality) override
 
void setOpacity (float newOpacity) override
 
void setOrigin (Point< int > o) override
 Moves the origin to a new position. More...
 

Protected Member Functions

 StackBasedLowLevelGraphicsContext (SavedStateType *initialState)
 
 StackBasedLowLevelGraphicsContext ()
 

Protected Attributes

RenderingHelpers::SavedStateStack< SavedStateType > stack
 

Constructor & Destructor Documentation

◆ StackBasedLowLevelGraphicsContext() [1/2]

template<class SavedStateType>
juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::StackBasedLowLevelGraphicsContext ( SavedStateType *  initialState)
inlineprotected

◆ StackBasedLowLevelGraphicsContext() [2/2]

template<class SavedStateType>
juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::StackBasedLowLevelGraphicsContext ( )
inlineprotected

Member Function Documentation

◆ addTransform()

template<class SavedStateType>
void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::addTransform ( const AffineTransform t)
inlineoverridevirtual

◆ beginTransparencyLayer()

template<class SavedStateType>
void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::beginTransparencyLayer ( float  opacity)
inlineoverridevirtual

◆ clipRegionIntersects()

template<class SavedStateType>
bool juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::clipRegionIntersects ( const Rectangle< int > &  r)
inlineoverridevirtual

◆ clipToImageAlpha()

template<class SavedStateType>
void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::clipToImageAlpha ( const Image im,
const AffineTransform t 
)
inlineoverridevirtual

◆ clipToPath()

template<class SavedStateType>
void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::clipToPath ( const Path path,
const AffineTransform t 
)
inlineoverridevirtual

◆ clipToRectangle()

template<class SavedStateType>
bool juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::clipToRectangle ( const Rectangle< int > &  r)
inlineoverridevirtual

◆ clipToRectangleList()

template<class SavedStateType>
bool juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::clipToRectangleList ( const RectangleList< int > &  r)
inlineoverridevirtual

◆ drawGlyph()

template<class SavedStateType>
void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::drawGlyph ( int  glyphNumber,
const AffineTransform t 
)
inlineoverridevirtual

◆ drawImage()

template<class SavedStateType>
void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::drawImage ( const Image im,
const AffineTransform t 
)
inlineoverridevirtual

◆ drawLine()

template<class SavedStateType>
void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::drawLine ( const Line< float > &  line)
inlineoverridevirtual

◆ drawTextLayout()

virtual bool juce::LowLevelGraphicsContext::drawTextLayout ( const AttributedString ,
const Rectangle< float > &   
)
inlinevirtualinherited

◆ endTransparencyLayer()

template<class SavedStateType>
void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::endTransparencyLayer ( )
inlineoverridevirtual

◆ excludeClipRectangle()

template<class SavedStateType>
void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::excludeClipRectangle ( const Rectangle< int > &  r)
inlineoverridevirtual

◆ fillPath()

template<class SavedStateType>
void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::fillPath ( const Path path,
const AffineTransform t 
)
inlineoverridevirtual

◆ fillRect() [1/2]

template<class SavedStateType>
void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::fillRect ( const Rectangle< int > &  r,
bool  replace 
)
inlineoverridevirtual

◆ fillRect() [2/2]

template<class SavedStateType>
void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::fillRect ( const Rectangle< float > &  r)
inlineoverridevirtual

◆ fillRectList()

template<class SavedStateType>
void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::fillRectList ( const RectangleList< float > &  list)
inlineoverridevirtual

◆ getClipBounds()

template<class SavedStateType>
Rectangle<int> juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::getClipBounds ( ) const
inlineoverridevirtual

◆ getFont()

template<class SavedStateType>
const Font& juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::getFont ( )
inlineoverridevirtual

◆ getPhysicalPixelScaleFactor()

template<class SavedStateType>
float juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::getPhysicalPixelScaleFactor ( )
inlineoverridevirtual

◆ isClipEmpty()

template<class SavedStateType>
bool juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::isClipEmpty ( ) const
inlineoverridevirtual

◆ isVectorDevice()

template<class SavedStateType>
bool juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::isVectorDevice ( ) const
inlineoverridevirtual

Returns true if this device is vector-based, e.g.

a printer.

Implements juce::LowLevelGraphicsContext.

◆ restoreState()

template<class SavedStateType>
void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::restoreState ( )
inlineoverridevirtual

◆ saveState()

template<class SavedStateType>
void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::saveState ( )
inlineoverridevirtual

◆ setFill()

template<class SavedStateType>
void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::setFill ( const FillType fillType)
inlineoverridevirtual

◆ setFont()

template<class SavedStateType>
void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::setFont ( const Font newFont)
inlineoverridevirtual

◆ setInterpolationQuality()

template<class SavedStateType>
void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::setInterpolationQuality ( Graphics::ResamplingQuality  quality)
inlineoverridevirtual

◆ setOpacity()

template<class SavedStateType>
void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::setOpacity ( float  newOpacity)
inlineoverridevirtual

◆ setOrigin()

template<class SavedStateType>
void juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::setOrigin ( Point< int )
inlineoverridevirtual

Moves the origin to a new position.

The coordinates are relative to the current origin, and indicate the new position of (0, 0).

Implements juce::LowLevelGraphicsContext.

Member Data Documentation

◆ stack

template<class SavedStateType>
RenderingHelpers::SavedStateStack<SavedStateType> juce::RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::stack
protected

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