#include <juce_StandardCachedComponentImage.h>
|
| | StandardCachedComponentImage (Component &c) noexcept |
| |
| bool | invalidate (const Rectangle< int > &area) override |
| | Invalidates a section of the cached image data.
|
| |
| bool | invalidateAll () override |
| | Invalidates all cached image data.
|
| |
| void | paint (Graphics &g) override |
| | 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.
|
| |
| void | releaseResources () override |
| | Called to indicate that the component is no longer active, so any cached data should be released if possible.
|
| |
◆ StandardCachedComponentImage()
| juce::detail::StandardCachedComponentImage::StandardCachedComponentImage |
( |
Component & |
c | ) |
|
|
inlineexplicitnoexcept |
◆ invalidate()
| bool juce::detail::StandardCachedComponentImage::invalidate |
( |
const Rectangle< int > & |
area | ) |
|
|
inlineoverridevirtual |
◆ invalidateAll()
| bool juce::detail::StandardCachedComponentImage::invalidateAll |
( |
| ) |
|
|
inlineoverridevirtual |
◆ paint()
| void juce::detail::StandardCachedComponentImage::paint |
( |
Graphics & |
| ) |
|
|
inlineoverridevirtual |
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.
Implements juce::CachedComponentImage.
References juce::LowLevelGraphicsContext::addTransform(), juce::Image::ARGB, juce::Colours::black, juce::RectangleList< ValueType >::clear(), juce::RectangleList< ValueType >::containsRectangle(), juce::Component::getAlpha(), juce::Image::getBounds(), juce::Graphics::getInternalContext(), juce::Component::getLocalBounds(), juce::Image::getPixelData(), image, juce::Image::isNull(), juce::Component::isOpaque(), juce::jmax(), owner, juce::Component::paintEntireComponent(), juce::Image::RGB, juce::AffineTransform::scale(), scale, juce::Image::setBackupEnabled(), juce::Colours::transparentBlack, and validArea.
◆ releaseResources()
| void juce::detail::StandardCachedComponentImage::releaseResources |
( |
| ) |
|
|
inlineoverridevirtual |
Called to indicate that the component is no longer active, so any cached data should be released if possible.
Implements juce::CachedComponentImage.
References image.
◆ image
| Image juce::detail::StandardCachedComponentImage::image |
|
private |
◆ owner
| Component& juce::detail::StandardCachedComponentImage::owner |
|
private |
◆ scale
| float juce::detail::StandardCachedComponentImage::scale = 1.0f |
|
private |
◆ validArea
| RectangleList<int> juce::detail::StandardCachedComponentImage::validArea |
|
private |
The documentation for this struct was generated from the following file: