openshot-audio  0.1.7
Public Member Functions | List of all members
StandardCachedComponentImage Class Reference
Inheritance diagram for StandardCachedComponentImage:
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 CachedComponentImage
 CachedComponentImage () noexcept
 
virtual ~CachedComponentImage ()
 

Constructor & Destructor Documentation

◆ StandardCachedComponentImage()

StandardCachedComponentImage::StandardCachedComponentImage ( Component c)
inlinenoexcept

Member Function Documentation

◆ invalidate()

bool 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 CachedComponentImage.

◆ invalidateAll()

bool 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 CachedComponentImage.

◆ paint()

void 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 CachedComponentImage.

◆ releaseResources()

void StandardCachedComponentImage::releaseResources ( )
inlineoverridevirtual

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

Implements CachedComponentImage.


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