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::SoftwareRendererSavedState Class Reference

#include <juce_RenderingHelpers.h>

Inheritance diagram for juce::RenderingHelpers::SoftwareRendererSavedState:
Collaboration diagram for juce::RenderingHelpers::SoftwareRendererSavedState:

Public Types

using BaseRegionType = typename ClipRegions< SoftwareRendererSavedState >::Base
 
using EdgeTableRegionType = typename ClipRegions< SoftwareRendererSavedState >::EdgeTableRegion
 
using GlyphCacheType = GlyphCache< CachedGlyphEdgeTable< SoftwareRendererSavedState >, SoftwareRendererSavedState >
 
using RectangleListRegionType = typename ClipRegions< SoftwareRendererSavedState >::RectangleListRegion
 

Public Member Functions

 SoftwareRendererSavedState (const Image &im, const RectangleList< int > &clipList, Point< int > origin)
 
 SoftwareRendererSavedState (const Image &im, Rectangle< int > clipBounds)
 
 SoftwareRendererSavedState (const SoftwareRendererSavedState &other)=default
 
SoftwareRendererSavedStatebeginTransparencyLayer (float opacity)
 
bool clipRegionIntersects (Rectangle< int > r) const
 
void clipToImageAlpha (const Image &sourceImage, const AffineTransform &t)
 
void clipToPath (const Path &p, const AffineTransform &t)
 
bool clipToRectangle (Rectangle< int > r)
 
bool clipToRectangleList (const RectangleList< int > &r)
 
void cloneClipIfMultiplyReferenced ()
 
void drawGlyph (int glyphNumber, const AffineTransform &trans)
 
void drawImage (const Image &sourceImage, const AffineTransform &trans)
 
void drawLine (Line< float > line)
 
void endTransparencyLayer (SoftwareRendererSavedState &finishedLayerState)
 
bool excludeClipRectangle (Rectangle< int > r)
 
void fillEdgeTable (const EdgeTable &edgeTable, float x, int y)
 
void fillPath (const Path &path, const AffineTransform &t)
 
void fillRect (Rectangle< float > r)
 
void fillRect (Rectangle< int > r, bool replaceContents)
 
void fillRectAsPath (Rectangle< CoordType > r)
 
void fillRectList (const RectangleList< float > &list)
 
void fillShape (typename BaseRegionType::Ptr shapeToFill, bool replaceContents)
 
void fillTargetRect (Rectangle< float > r)
 
void fillTargetRect (Rectangle< int > r, bool replaceContents)
 
template<typename IteratorType >
void fillWithGradient (IteratorType &iter, ColourGradient &gradient, const AffineTransform &trans, bool isIdentity) const
 
template<typename IteratorType >
void fillWithSolidColour (IteratorType &iter, PixelARGB colour, bool replaceContents) const
 
Rectangle< intgetClipBounds () const
 
Rectangle< intgetMaximumBounds () const
 
SoftwareRendererSavedStategetThis () noexcept
 
void renderImage (const Image &sourceImage, const AffineTransform &trans, const BaseRegionType *tiledFillClipRegion)
 
template<typename IteratorType >
void renderImageTransformed (IteratorType &iter, const Image &src, int alpha, const AffineTransform &trans, Graphics::ResamplingQuality quality, bool tiledFill) const
 
template<typename IteratorType >
void renderImageUntransformed (IteratorType &iter, const Image &src, int alpha, int x, int y, bool tiledFill) const
 
void setFillType (const FillType &newFill)
 

Static Public Member Functions

static void clearGlyphCache ()
 
static Rectangle< intgetLargestIntegerWithin (Rectangle< float > r)
 
static bool isOnlyTranslationAllowingError (const AffineTransform &t, float tolerance) noexcept
 

Public Attributes

BaseRegionType::Ptr clip
 
FillType fillType
 
Font font
 
Image image
 
Graphics::ResamplingQuality interpolationQuality
 
RenderingHelpers::TranslationOrTransform transform
 
float transparencyLayerAlpha
 

Private Types

using BaseClass = SavedStateBase< SoftwareRendererSavedState >
 

Private Member Functions

SoftwareRendererSavedStateoperator= (const SoftwareRendererSavedState &)=delete
 

Member Typedef Documentation

◆ BaseClass

◆ BaseRegionType

◆ EdgeTableRegionType

◆ GlyphCacheType

◆ RectangleListRegionType

Constructor & Destructor Documentation

◆ SoftwareRendererSavedState() [1/3]

juce::RenderingHelpers::SoftwareRendererSavedState::SoftwareRendererSavedState ( const Image im,
Rectangle< int clipBounds 
)
inline

◆ SoftwareRendererSavedState() [2/3]

juce::RenderingHelpers::SoftwareRendererSavedState::SoftwareRendererSavedState ( const Image im,
const RectangleList< int > &  clipList,
Point< int origin 
)
inline

◆ SoftwareRendererSavedState() [3/3]

juce::RenderingHelpers::SoftwareRendererSavedState::SoftwareRendererSavedState ( const SoftwareRendererSavedState other)
default

Member Function Documentation

◆ beginTransparencyLayer()

SoftwareRendererSavedState* juce::RenderingHelpers::SoftwareRendererSavedState::beginTransparencyLayer ( float  opacity)
inline

References juce::Image::ARGB, and juce::gl::s.

◆ clearGlyphCache()

static void juce::RenderingHelpers::SoftwareRendererSavedState::clearGlyphCache ( )
inlinestatic

◆ clipRegionIntersects()

bool juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::clipRegionIntersects ( Rectangle< int r) const
inlineinherited

◆ clipToImageAlpha()

void juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::clipToImageAlpha ( const Image sourceImage,
const AffineTransform t 
)
inlineinherited

◆ clipToPath()

void juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::clipToPath ( const Path p,
const AffineTransform t 
)
inlineinherited

◆ clipToRectangle()

◆ clipToRectangleList()

bool juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::clipToRectangleList ( const RectangleList< int > &  r)
inlineinherited

◆ cloneClipIfMultiplyReferenced()

void juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::cloneClipIfMultiplyReferenced
inlineinherited

◆ drawGlyph()

◆ drawImage()

void juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::drawImage ( const Image sourceImage,
const AffineTransform trans 
)
inlineinherited

◆ drawLine()

void juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::drawLine ( Line< float line)
inlineinherited

◆ endTransparencyLayer()

void juce::RenderingHelpers::SoftwareRendererSavedState::endTransparencyLayer ( SoftwareRendererSavedState finishedLayerState)
inline

◆ excludeClipRectangle()

bool juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::excludeClipRectangle ( Rectangle< int r)
inlineinherited

◆ fillEdgeTable()

void juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::fillEdgeTable ( const EdgeTable edgeTable,
float  x,
int  y 
)
inlineinherited

◆ fillPath()

void juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::fillPath ( const Path path,
const AffineTransform t 
)
inlineinherited

◆ fillRect() [1/2]

◆ fillRect() [2/2]

void juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::fillRect ( Rectangle< int r,
bool  replaceContents 
)
inlineinherited

◆ fillRectAsPath()

void juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::fillRectAsPath ( Rectangle< CoordType >  r)
inlineinherited

◆ fillRectList()

void juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::fillRectList ( const RectangleList< float > &  list)
inlineinherited

◆ fillShape()

void juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::fillShape ( typename BaseRegionType::Ptr  shapeToFill,
bool  replaceContents 
)
inlineinherited

◆ fillTargetRect() [1/2]

void juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::fillTargetRect ( Rectangle< float r)
inlineinherited

◆ fillTargetRect() [2/2]

void juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::fillTargetRect ( Rectangle< int r,
bool  replaceContents 
)
inlineinherited

◆ fillWithGradient()

template<typename IteratorType >
void juce::RenderingHelpers::SoftwareRendererSavedState::fillWithGradient ( IteratorType &  iter,
ColourGradient gradient,
const AffineTransform trans,
bool  isIdentity 
) const
inline

◆ fillWithSolidColour()

template<typename IteratorType >
void juce::RenderingHelpers::SoftwareRendererSavedState::fillWithSolidColour ( IteratorType &  iter,
PixelARGB  colour,
bool  replaceContents 
) const
inline

◆ getClipBounds()

◆ getLargestIntegerWithin()

static Rectangle<int> juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::getLargestIntegerWithin ( Rectangle< float r)
inlinestaticinherited

◆ getMaximumBounds()

Rectangle<int> juce::RenderingHelpers::SoftwareRendererSavedState::getMaximumBounds ( ) const
inline

◆ getThis()

◆ isOnlyTranslationAllowingError()

static bool juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::isOnlyTranslationAllowingError ( const AffineTransform t,
float  tolerance 
)
inlinestaticnoexceptinherited

◆ operator=()

SoftwareRendererSavedState& juce::RenderingHelpers::SoftwareRendererSavedState::operator= ( const SoftwareRendererSavedState )
privatedelete

◆ renderImage()

void juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::renderImage ( const Image sourceImage,
const AffineTransform trans,
const BaseRegionType tiledFillClipRegion 
)
inlineinherited

◆ renderImageTransformed()

template<typename IteratorType >
void juce::RenderingHelpers::SoftwareRendererSavedState::renderImageTransformed ( IteratorType &  iter,
const Image src,
int  alpha,
const AffineTransform trans,
Graphics::ResamplingQuality  quality,
bool  tiledFill 
) const
inline

◆ renderImageUntransformed()

template<typename IteratorType >
void juce::RenderingHelpers::SoftwareRendererSavedState::renderImageUntransformed ( IteratorType &  iter,
const Image src,
int  alpha,
int  x,
int  y,
bool  tiledFill 
) const
inline

◆ setFillType()

void juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::setFillType ( const FillType newFill)
inlineinherited

Member Data Documentation

◆ clip

◆ fillType

◆ font

Font juce::RenderingHelpers::SoftwareRendererSavedState::font

◆ image

Image juce::RenderingHelpers::SoftwareRendererSavedState::image

Referenced by endTransparencyLayer().

◆ interpolationQuality

◆ transform

◆ transparencyLayerAlpha


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