JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
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::Base< SoftwareRendererSavedState >
 
using EdgeTableRegionType = typename ClipRegions::EdgeTableRegion< SoftwareRendererSavedState >
 
using RectangleListRegionType = typename ClipRegions::RectangleListRegion< SoftwareRendererSavedState >
 

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
 
std::unique_ptr< 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 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< int > getClipBounds () const
 
Rectangle< int > getMaximumBounds () 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 bool isOnlyTranslationAllowingError (const AffineTransform &t, float tolerance) noexcept
 

Public Attributes

BaseRegionType::Ptr clip
 
FillType fillType
 
Font font { FontOptions{} }
 
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

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

std::unique_ptr< SoftwareRendererSavedState > juce::RenderingHelpers::SoftwareRendererSavedState::beginTransparencyLayer ( float  opacity)
inline

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

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

◆ clipToRectangleList()

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

◆ cloneClipIfMultiplyReferenced()

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

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

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

Rectangle< int > juce::RenderingHelpers::SavedStateBase< SoftwareRendererSavedState >::getClipBounds ( ) const
inlineinherited

◆ getMaximumBounds()

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

References juce::Image::getBounds(), and image.

◆ 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 { FontOptions{} }

◆ image

◆ interpolationQuality

◆ transform

◆ transparencyLayerAlpha


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