KVIrc
4.9.2
DeveloperAPIs
|
#include <KviAnimatedPixmapCache.h>
Classes | |
class | Data |
class | FrameInfo |
Static Public Member Functions | |
static void | done () |
static QPixmap * | dummyPixmap () |
static void | free (Data *data) |
static void | init () |
static Data * | load (const QString &szFileName, int iWidth=0, int iHeight=0) |
static void | notifyDelete (KviAnimatedPixmapInterface *receiver) |
static Data * | resize (Data *data, const QSize &size) |
static void | scheduleFrameChange (uint delay, KviAnimatedPixmapInterface *receiver) |
Protected Slots | |
virtual void | timeoutEvent () |
Protected Member Functions | |
void | internalFree (Data *data) |
Data * | internalLoad (const QString &szFile, int iWidth=0, int iHeight=0) |
void | internalNotifyDelete (KviAnimatedPixmapInterface *receiver) |
Data * | internalResize (Data *data, const QSize &size) |
void | internalScheduleFrameChange (uint delay, KviAnimatedPixmapInterface *receiver) |
KviAnimatedPixmapCache () | |
virtual | ~KviAnimatedPixmapCache () |
Protected Attributes | |
QTimer | m_animationTimer |
QMutex | m_cacheMutex |
QMultiHash< QString, Data * > | m_hCache |
QMultiMap< long long, KviAnimatedPixmapInterface * > | m_timerData |
QMutex | m_timerMutex |
Static Protected Attributes | |
static KviAnimatedPixmapCache * | m_pInstance = nullptr |
|
protected |
References connect(), FRAME_DELAY, m_animationTimer, m_pInstance, and timeoutEvent().
Referenced by init().
|
protectedvirtual |
References g_pDummyPixmap, and m_pInstance.
|
static |
References m_pInstance.
Referenced by KviApplication::~KviApplication().
|
static |
References g_pDummyPixmap.
Referenced by KviAnimatedPixmap::pixmap().
|
inlinestatic |
Referenced by KviAnimatedPixmap::~KviAnimatedPixmap().
|
static |
References KviAnimatedPixmapCache(), and m_pInstance.
Referenced by KviApplication::setup().
|
protected |
References KviAnimatedPixmapCache::Data::file, i, m_cacheMutex, m_hCache, and KviAnimatedPixmapCache::Data::refs.
Referenced by internalResize().
|
protected |
References i, m_cacheMutex, m_hCache, KviAnimatedPixmapCache::Data::refs, and KviAnimatedPixmapCache::Data::size.
|
protected |
References i, m_timerData, and m_timerMutex.
|
protected |
|
protected |
References KviTimeUtils::getCurrentTimeMills(), m_animationTimer, m_timerData, and m_timerMutex.
|
inlinestatic |
Referenced by KviAnimatedPixmap::KviAnimatedPixmap().
|
inlinestatic |
Referenced by KviAnimatedPixmap::~KviAnimatedPixmap().
Referenced by KviAnimatedPixmap::resize().
|
inlinestatic |
Referenced by KviAnimatedPixmap::nextFrame(), and KviAnimatedPixmap::start().
|
protectedvirtualslot |
References FRAME_DELAY, KviTimeUtils::getCurrentTimeMills(), i, m_animationTimer, and m_timerData.
Referenced by KviAnimatedPixmapCache().
|
protected |
Referenced by internalScheduleFrameChange(), KviAnimatedPixmapCache(), and timeoutEvent().
|
mutableprotected |
Referenced by internalFree(), internalLoad(), and internalResize().
|
protected |
Referenced by internalFree(), internalLoad(), and internalResize().
|
staticprotected |
Referenced by done(), init(), KviAnimatedPixmapCache(), and ~KviAnimatedPixmapCache().
|
protected |
Referenced by internalNotifyDelete(), internalScheduleFrameChange(), and timeoutEvent().
|
mutableprotected |
Referenced by internalNotifyDelete(), and internalScheduleFrameChange().