JUCE  v5.4.1-191-g0ab5e696f
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, Rectangle< int > clipBounds)
 
 SoftwareRendererSavedState (const Image &im, const RectangleList< int > &clipList, Point< int > origin)
 
 SoftwareRendererSavedState (const SoftwareRendererSavedState &other)
 
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< int > r, bool replaceContents)
 
void fillRect (Rectangle< float > r)
 
void fillRectAsPath (Rectangle< CoordType > r)
 
void fillRectList (const RectangleList< float > &list)
 
void fillShape (typename BaseRegionType::Ptr shapeToFill, bool replaceContents)
 
void fillTargetRect (Rectangle< int > r, bool replaceContents)
 
void fillTargetRect (Rectangle< float > r)
 
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 &)
 

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)
inline

Member Function Documentation

◆ beginTransparencyLayer()

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

References juce::Image::ARGB.

◆ clearGlyphCache()

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

◆ clipRegionIntersects()

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

◆ clipToImageAlpha()

◆ clipToPath()

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

◆ clipToRectangle()

◆ clipToRectangleList()

◆ cloneClipIfMultiplyReferenced()

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

◆ drawGlyph()

◆ drawImage()

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

◆ drawLine()

◆ endTransparencyLayer()

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

◆ excludeClipRectangle()

◆ fillEdgeTable()

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

◆ fillPath()

◆ fillRect() [1/2]

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

References jassert.

◆ fillRect() [2/2]

◆ fillRectAsPath()

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

◆ fillRectList()

◆ fillShape()

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

◆ fillTargetRect() [1/2]

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

◆ fillTargetRect() [2/2]

void juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::fillTargetRect ( Rectangle< float r)
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()

◆ 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 )
private

◆ renderImage()

◆ 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: