JUCE  v5.1.1-3-g1a0b28c73
JUCE API
CachedComponentImage Class Referenceabstract

Base class used internally for structures that can store cached images of component state. More...

#include <juce_CachedComponentImage.h>

Public Member Functions

 CachedComponentImage () noexcept
 
virtual ~CachedComponentImage ()
 
virtual bool invalidate (const Rectangle< int > &area)=0
 Invalidates a section of the cached image data. More...
 
virtual bool invalidateAll ()=0
 Invalidates all cached image data. More...
 
virtual void paint (Graphics &)=0
 Called as part of the parent component's paint method, this must draw the given component into the target graphics context, using the cached version where possible. More...
 
virtual void releaseResources ()=0
 Called to indicate that the component is no longer active, so any cached data should be released if possible. More...
 

Detailed Description

Base class used internally for structures that can store cached images of component state.

Most people are unlikely to ever need to know about this class - it's really only for power-users!

See also
Component::setCachedComponentImage

Constructor & Destructor Documentation

◆ CachedComponentImage()

CachedComponentImage::CachedComponentImage ( )
inlinenoexcept

◆ ~CachedComponentImage()

virtual CachedComponentImage::~CachedComponentImage ( )
inlinevirtual

Member Function Documentation

◆ invalidate()

virtual bool CachedComponentImage::invalidate ( const Rectangle< int > &  area)
pure virtual

Invalidates a section of the cached image data.

Returns
true if the peer should also be repainted, or false if this object handles all repaint work internally.

◆ invalidateAll()

virtual bool CachedComponentImage::invalidateAll ( )
pure virtual

Invalidates all cached image data.

Returns
true if the peer should also be repainted, or false if this object handles all repaint work internally.

◆ paint()

virtual void CachedComponentImage::paint ( Graphics )
pure virtual

Called as part of the parent component's paint method, this must draw the given component into the target graphics context, using the cached version where possible.

◆ releaseResources()

virtual void CachedComponentImage::releaseResources ( )
pure virtual

Called to indicate that the component is no longer active, so any cached data should be released if possible.


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