LMMS
Loading...
Searching...
No Matches
juce::StandardCachedComponentImage Struct Reference
Inheritance diagram for juce::StandardCachedComponentImage:
juce::CachedComponentImage

Public Member Functions

 StandardCachedComponentImage (Component &c) noexcept
void paint (Graphics &g) override
bool invalidateAll () override
bool invalidate (const Rectangle< int > &area) override
void releaseResources () override
Public Member Functions inherited from juce::CachedComponentImage
 CachedComponentImage ()=default
virtual ~CachedComponentImage ()=default

Private Attributes

Image image
RectangleList< intvalidArea
Componentowner
float scale = 1.0f

Constructor & Destructor Documentation

◆ StandardCachedComponentImage()

juce::StandardCachedComponentImage::StandardCachedComponentImage ( Component & c)
inlinenoexcept

Member Function Documentation

◆ invalidate()

bool juce::StandardCachedComponentImage::invalidate ( const Rectangle< int > & area)
inlineoverridevirtual

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.

Implements juce::CachedComponentImage.

◆ invalidateAll()

bool juce::StandardCachedComponentImage::invalidateAll ( )
inlineoverridevirtual

Invalidates all cached image data.

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

Implements juce::CachedComponentImage.

◆ paint()

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

◆ releaseResources()

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

Member Data Documentation

◆ image

Image juce::StandardCachedComponentImage::image
private

◆ owner

Component& juce::StandardCachedComponentImage::owner
private

◆ scale

float juce::StandardCachedComponentImage::scale = 1.0f
private

◆ validArea

RectangleList<int> juce::StandardCachedComponentImage::validArea
private

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