JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
juce::CachedComponentImage Class Referenceabstract

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

#include "juce_CachedComponentImage.h"

Inheritance diagram for juce::CachedComponentImage:
juce::StandardCachedComponentImage

Public Member Functions

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.
 
virtual bool invalidateAll ()=0
 Invalidates all cached image data.
 
virtual bool invalidate (const Rectangle< int > &area)=0
 Invalidates a section of the cached image data.
 
virtual void releaseResources ()=0
 Called to indicate that the component is no longer active, so any cached data should be released if possible.
 

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

@tags{GUI}

Definition at line 41 of file juce_CachedComponentImage.h.

Member Function Documentation

◆ invalidate()

virtual bool juce::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.

Implemented in juce::StandardCachedComponentImage.

◆ invalidateAll()

virtual bool juce::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.

Implemented in juce::StandardCachedComponentImage.

◆ paint()

virtual void juce::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.

Implemented in juce::StandardCachedComponentImage.

◆ releaseResources()

virtual void juce::CachedComponentImage::releaseResources ( )
pure virtual

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

Implemented in juce::StandardCachedComponentImage.


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