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
Classes | Public Member Functions | Public Attributes | List of all members
juce::ImageCache::Pimpl Struct Reference
Inheritance diagram for juce::ImageCache::Pimpl:
juce::Timer juce::DeletedAtShutdown

Classes

struct  Item
 

Public Member Functions

Image getFromHashCode (const int64 hashCode) noexcept
 
void addImageToCache (const Image &image, const int64 hashCode)
 
void timerCallback () override
 The user-defined callback routine that actually gets called periodically.
 
void releaseUnusedImages ()
 

Public Attributes

Array< Itemimages
 
CriticalSection lock
 
unsigned int cacheTimeout
 

Detailed Description

Definition at line 29 of file juce_ImageCache.cpp.


Class Documentation

◆ juce::ImageCache::Pimpl::Item

struct juce::ImageCache::Pimpl::Item

Definition at line 104 of file juce_ImageCache.cpp.

Class Members
int64 hashCode
Image image
uint32 lastUseTime

Constructor & Destructor Documentation

◆ ~Pimpl()

juce::ImageCache::Pimpl::~Pimpl ( )
override

Definition at line 34 of file juce_ImageCache.cpp.

Member Function Documentation

◆ addImageToCache()

void juce::ImageCache::Pimpl::addImageToCache ( const Image image,
const int64  hashCode 
)

Definition at line 58 of file juce_ImageCache.cpp.

◆ getFromHashCode()

Image juce::ImageCache::Pimpl::getFromHashCode ( const int64  hashCode)
noexcept

Definition at line 42 of file juce_ImageCache.cpp.

◆ releaseUnusedImages()

void juce::ImageCache::Pimpl::releaseUnusedImages ( )

Definition at line 95 of file juce_ImageCache.cpp.

◆ timerCallback()

void juce::ImageCache::Pimpl::timerCallback ( )
overridevirtual

The user-defined callback routine that actually gets called periodically.

It's perfectly ok to call startTimer() or stopTimer() from within this callback to change the subsequent intervals.

Implements juce::Timer.

Definition at line 70 of file juce_ImageCache.cpp.

Member Data Documentation

◆ cacheTimeout

unsigned int juce::ImageCache::Pimpl::cacheTimeout

Definition at line 113 of file juce_ImageCache.cpp.

◆ images

Array<Item> juce::ImageCache::Pimpl::images

Definition at line 111 of file juce_ImageCache.cpp.

◆ lock

CriticalSection juce::ImageCache::Pimpl::lock

Definition at line 112 of file juce_ImageCache.cpp.


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