JUCE  v5.1.1-3-g1a0b28c73
JUCE API
RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion Class Reference

#include <juce_RenderingHelpers.h>

Inheritance diagram for RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion:
Collaboration diagram for RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion:

Classes

class  SubRectangleIterator
 
class  SubRectangleIteratorFloat
 

Public Types

typedef Base::Ptr Ptr
 

Public Member Functions

 RectangleListRegion (const Rectangle< int > &r)
 
 RectangleListRegion (const RectangleList< int > &r)
 
 RectangleListRegion (const RectangleListRegion &other)
 
Ptr applyClipTo (const Ptr &target) const
 
bool clipRegionIntersects (const Rectangle< int > &r) const
 
Ptr clipToEdgeTable (const EdgeTable &et)
 
Ptr clipToImageAlpha (const Image &image, const AffineTransform &transform, const Graphics::ResamplingQuality quality)
 
Ptr clipToPath (const Path &p, const AffineTransform &transform)
 
Ptr clipToRectangle (const Rectangle< int > &r)
 
Ptr clipToRectangleList (const RectangleList< int > &r)
 
Ptr clone () const
 
void decReferenceCount () noexcept
 Decreases the object's reference count. More...
 
bool decReferenceCountWithoutDeleting () noexcept
 Decreases the object's reference count. More...
 
Ptr excludeClipRectangle (const Rectangle< int > &r)
 
void fillAllWithColour (SavedStateType &state, const PixelARGB colour, bool replaceContents) const
 
void fillAllWithGradient (SavedStateType &state, ColourGradient &gradient, const AffineTransform &transform, bool isIdentity) const
 
void fillRectWithColour (SavedStateType &state, const Rectangle< int > &area, const PixelARGB colour, bool replaceContents) const
 
void fillRectWithColour (SavedStateType &state, const Rectangle< float > &area, const PixelARGB colour) const
 
Rectangle< intgetClipBounds () const
 
int getReferenceCount () const noexcept
 Returns the object's current reference count. More...
 
void incReferenceCount () noexcept
 Increments the object's reference count. More...
 
template<class Renderer >
void iterate (Renderer &r) const noexcept
 
void renderImageTransformed (SavedStateType &state, const Image &src, const int alpha, const AffineTransform &transform, Graphics::ResamplingQuality quality, bool tiledFill) const
 
void renderImageUntransformed (SavedStateType &state, const Image &src, const int alpha, int x, int y, bool tiledFill) const
 
void translate (Point< int > delta)
 

Public Attributes

RectangleList< intclip
 

Private Member Functions

RectangleListRegionoperator= (const RectangleListRegion &)
 
Ptr toEdgeTable () const
 

Member Typedef Documentation

◆ Ptr

template<class SavedStateType >
typedef Base::Ptr RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::Ptr

Constructor & Destructor Documentation

◆ RectangleListRegion() [1/3]

template<class SavedStateType >
RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::RectangleListRegion ( const Rectangle< int > &  r)
inline

◆ RectangleListRegion() [2/3]

template<class SavedStateType >
RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::RectangleListRegion ( const RectangleList< int > &  r)
inline

◆ RectangleListRegion() [3/3]

template<class SavedStateType >
RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::RectangleListRegion ( const RectangleListRegion other)
inline

Member Function Documentation

◆ applyClipTo()

template<class SavedStateType >
Ptr RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::applyClipTo ( const Ptr target) const
inlinevirtual

◆ clipRegionIntersects()

template<class SavedStateType >
bool RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::clipRegionIntersects ( const Rectangle< int > &  r) const
inlinevirtual

◆ clipToEdgeTable()

template<class SavedStateType >
Ptr RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::clipToEdgeTable ( const EdgeTable et)
inlinevirtual

◆ clipToImageAlpha()

template<class SavedStateType >
Ptr RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::clipToImageAlpha ( const Image image,
const AffineTransform transform,
const Graphics::ResamplingQuality  quality 
)
inlinevirtual

◆ clipToPath()

template<class SavedStateType >
Ptr RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::clipToPath ( const Path p,
const AffineTransform transform 
)
inlinevirtual

◆ clipToRectangle()

template<class SavedStateType >
Ptr RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::clipToRectangle ( const Rectangle< int > &  r)
inlinevirtual

◆ clipToRectangleList()

template<class SavedStateType >
Ptr RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::clipToRectangleList ( const RectangleList< int > &  r)
inlinevirtual

◆ clone()

template<class SavedStateType >
Ptr RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::clone ( ) const
inlinevirtual

◆ decReferenceCount()

void SingleThreadedReferenceCountedObject::decReferenceCount ( )
inlinenoexceptinherited

Decreases the object's reference count.

If the count gets to zero, the object will be deleted.

References jassert.

◆ decReferenceCountWithoutDeleting()

bool SingleThreadedReferenceCountedObject::decReferenceCountWithoutDeleting ( )
inlinenoexceptinherited

Decreases the object's reference count.

If the count gets to zero, the object will not be deleted, but this method will return true, allowing the caller to take care of deletion.

References jassert.

◆ excludeClipRectangle()

template<class SavedStateType >
Ptr RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::excludeClipRectangle ( const Rectangle< int > &  r)
inlinevirtual

◆ fillAllWithColour()

template<class SavedStateType >
void RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::fillAllWithColour ( SavedStateType &  state,
const PixelARGB  colour,
bool  replaceContents 
) const
inlinevirtual

◆ fillAllWithGradient()

template<class SavedStateType >
void RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::fillAllWithGradient ( SavedStateType &  state,
ColourGradient gradient,
const AffineTransform transform,
bool  isIdentity 
) const
inlinevirtual

◆ fillRectWithColour() [1/2]

template<class SavedStateType >
void RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::fillRectWithColour ( SavedStateType &  state,
const Rectangle< int > &  area,
const PixelARGB  colour,
bool  replaceContents 
) const
inlinevirtual

◆ fillRectWithColour() [2/2]

template<class SavedStateType >
void RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::fillRectWithColour ( SavedStateType &  state,
const Rectangle< float > &  area,
const PixelARGB  colour 
) const
inlinevirtual

◆ getClipBounds()

template<class SavedStateType >
Rectangle<int> RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::getClipBounds ( ) const
inlinevirtual

◆ getReferenceCount()

int SingleThreadedReferenceCountedObject::getReferenceCount ( ) const
inlinenoexceptinherited

Returns the object's current reference count.

◆ incReferenceCount()

void SingleThreadedReferenceCountedObject::incReferenceCount ( )
inlinenoexceptinherited

Increments the object's reference count.

This is done automatically by the smart pointer, but is public just in case it's needed for nefarious purposes.

◆ iterate()

template<class SavedStateType >
template<class Renderer >
void RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::iterate ( Renderer &  r) const
inlinenoexcept

References jassert.

◆ operator=()

template<class SavedStateType >
RectangleListRegion& RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::operator= ( const RectangleListRegion )
private

◆ renderImageTransformed()

template<class SavedStateType >
void RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::renderImageTransformed ( SavedStateType &  state,
const Image src,
const int  alpha,
const AffineTransform transform,
Graphics::ResamplingQuality  quality,
bool  tiledFill 
) const
inlinevirtual

◆ renderImageUntransformed()

template<class SavedStateType >
void RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::renderImageUntransformed ( SavedStateType &  state,
const Image src,
const int  alpha,
int  x,
int  y,
bool  tiledFill 
) const
inlinevirtual

◆ toEdgeTable()

template<class SavedStateType >
Ptr RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::toEdgeTable ( ) const
inlineprivate

◆ translate()

template<class SavedStateType >
void RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::translate ( Point< int delta)
inlinevirtual

Member Data Documentation

◆ clip

template<class SavedStateType >
RectangleList<int> RenderingHelpers::ClipRegions< SavedStateType >::RectangleListRegion::clip

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