#include <juce_gui_basics.h>
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
◆ CachedComponentImage()
juce::CachedComponentImage::CachedComponentImage |
( |
| ) |
|
|
inlinenoexcept |
◆ ~CachedComponentImage()
virtual juce::CachedComponentImage::~CachedComponentImage |
( |
| ) |
|
|
inlinevirtual |
◆ 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 |
The documentation for this class was generated from the following file: