![]() |
Qt 6.x
The Qt SDK
|
#include <qquickpixmapcache_p.h>
Inheritance diagram for QQuickPixmap:
Collaboration diagram for QQuickPixmap:Public Types | |
| enum | Status { Null , Ready , Error , Loading } |
| enum | Option { Asynchronous = 0x00000001 , Cache = 0x00000002 } |
Static Public Member Functions | |
| static void | purgeCache () |
| static bool | isCached (const QUrl &url, const QRect &requestRegion, const QSize &requestSize, const int frame, const QQuickImageProviderOptions &options) |
Static Public Attributes | |
| static const QLatin1String | itemGrabberScheme = QLatin1String("itemgrabber") |
Friends | |
| class | QQuickPixmapData |
Definition at line 91 of file qquickpixmapcache_p.h.
| enum QQuickPixmap::Option |
| Enumerator | |
|---|---|
| Asynchronous | |
| Cache | |
Definition at line 103 of file qquickpixmapcache_p.h.
| enum QQuickPixmap::Status |
| Enumerator | |
|---|---|
| Null | |
| Ready | |
| Error | |
| Loading | |
Definition at line 101 of file qquickpixmapcache_p.h.
| QQuickPixmap::QQuickPixmap | ( | ) |
Definition at line 1576 of file qquickpixmapcache.cpp.
| QQuickPixmap::QQuickPixmap | ( | QQmlEngine * | engine, |
| const QUrl & | url | ||
| ) |
Definition at line 1581 of file qquickpixmapcache.cpp.
References engine, load(), and url().
Here is the call graph for this function:| QQuickPixmap::QQuickPixmap | ( | QQmlEngine * | engine, |
| const QUrl & | url, | ||
| const QRect & | region, | ||
| const QSize & | size | ||
| ) |
Definition at line 1587 of file qquickpixmapcache.cpp.
References engine, load(), and url().
Here is the call graph for this function:Definition at line 1593 of file qquickpixmapcache.cpp.
References QQuickPixmapData::addToCache(), QQuickPixmapData, url(), and QQuickImageProviderOptions::UsePluginDefaultTransform.
Here is the call graph for this function:| QQuickPixmap::~QQuickPixmap | ( | ) |
Definition at line 1600 of file qquickpixmapcache.cpp.
References QQuickPixmapData::declarativePixmaps, QQuickPixmapData::release(), and QIntrusiveList< N, member >::remove().
Referenced by load().
Here is the call graph for this function:
Here is the caller graph for this function:| QQuickImageProviderOptions::AutoTransform QQuickPixmap::autoTransform | ( | ) | const |
Definition at line 1677 of file qquickpixmapcache.cpp.
References QQuickPixmapData::appliedTransform, and QQuickImageProviderOptions::UsePluginDefaultTransform.
| void QQuickPixmap::clear | ( | ) |
Definition at line 1900 of file qquickpixmapcache.cpp.
References QQuickPixmapData::declarativePixmaps, QQuickPixmapData::release(), and QIntrusiveList< N, member >::remove().
Referenced by setImage(), and setPixmap().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1909 of file qquickpixmapcache.cpp.
References QQuickPixmapData::declarativePixmaps, QObject::disconnect(), QQuickPixmapData::release(), QIntrusiveList< N, member >::remove(), and QQuickPixmapData::reply.
Here is the call graph for this function:| QColorSpace QQuickPixmap::colorSpace | ( | ) | const |
Definition at line 1971 of file qquickpixmapcache.cpp.
References QImage::colorSpace(), QQuickTextureFactory::image(), and QQuickPixmapData::textureFactory.
Here is the call graph for this function:| bool QQuickPixmap::connectDownloadProgress | ( | QObject * | object, |
| const char * | method | ||
| ) |
Definition at line 1949 of file qquickpixmapcache.cpp.
References QObject::connect(), method, qWarning, QQuickPixmapData::reply, and SIGNAL.
Here is the call graph for this function:| bool QQuickPixmap::connectDownloadProgress | ( | QObject * | object, |
| int | method | ||
| ) |
Definition at line 1960 of file qquickpixmapcache.cpp.
References QMetaObject::connect(), QQuickPixmapReply::downloadProgressMethodIndex, method, qWarning, and QQuickPixmapData::reply.
Here is the call graph for this function:| bool QQuickPixmap::connectFinished | ( | QObject * | object, |
| const char * | method | ||
| ) |
Definition at line 1929 of file qquickpixmapcache.cpp.
References QObject::connect(), method, qWarning, QQuickPixmapData::reply, and SIGNAL.
Here is the call graph for this function:| bool QQuickPixmap::connectFinished | ( | QObject * | object, |
| int | method | ||
| ) |
Definition at line 1939 of file qquickpixmapcache.cpp.
References QMetaObject::connect(), QQuickPixmapReply::finishedMethodIndex, method, qWarning, and QQuickPixmapData::reply.
Here is the call graph for this function:| QString QQuickPixmap::error | ( | ) | const |
Definition at line 1629 of file qquickpixmapcache.cpp.
References QQuickPixmapData::errorString.
| int QQuickPixmap::frameCount | ( | ) | const |
Definition at line 1685 of file qquickpixmapcache.cpp.
References QQuickPixmapData::frameCount.
Referenced by load(), and loadImageFromDevice().
Here is the caller graph for this function:| int QQuickPixmap::height | ( | ) | const |
Definition at line 1734 of file qquickpixmapcache.cpp.
References QSize::height(), QQuickPixmapData::textureFactory, and QQuickTextureFactory::textureSize().
Referenced by QQuickCanvasPixmap::height(), load(), and QQuickIconImagePrivate::updateFillMode().
Here is the call graph for this function:
Here is the caller graph for this function:| QImage QQuickPixmap::image | ( | ) | const |
Definition at line 1700 of file qquickpixmapcache.cpp.
References QQuickTextureFactory::image(), and QQuickPixmapData::textureFactory.
Referenced by QQuickCanvasPixmap::image(), QQuickDragAttachedPrivate::startDrag(), and QQuickLabsPlatformIconLoader::toQIcon().
Here is the call graph for this function:
Here is the caller graph for this function:| const QSize & QQuickPixmap::implicitSize | ( | ) | const |
Definition at line 1653 of file qquickpixmapcache.cpp.
References QQuickPixmapData::implicitSize.
|
static |
Definition at line 1920 of file qquickpixmapcache.cpp.
References QHash< Key, T >::contains(), frame, QQuickPixmapStore::m_cache, requestRegion(), requestSize(), and url().
Referenced by QQuickAnimatedImagePrivate::infoForCurrentFrame().
Here is the call graph for this function:
Here is the caller graph for this function:| bool QQuickPixmap::isError | ( | ) | const |
Definition at line 1619 of file qquickpixmapcache.cpp.
References Error, and status().
Here is the call graph for this function:| bool QQuickPixmap::isLoading | ( | ) | const |
Definition at line 1624 of file qquickpixmapcache.cpp.
References Loading, and status().
Here is the call graph for this function:| bool QQuickPixmap::isNull | ( | ) | const |
Definition at line 1609 of file qquickpixmapcache.cpp.
| bool QQuickPixmap::isReady | ( | ) | const |
Definition at line 1614 of file qquickpixmapcache.cpp.
References Ready, and status().
Referenced by QQuickCanvasPixmap::isValid(), and QQuickDragAttachedPrivate::startDrag().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQuickPixmap::load | ( | QQmlEngine * | engine, |
| const QUrl & | url | ||
| ) |
Definition at line 1750 of file qquickpixmapcache.cpp.
References Cache, engine, load(), and url().
Referenced by QQuickPixmap(), QQuickPixmap(), load(), load(), load(), and load().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQuickPixmap::load | ( | QQmlEngine * | engine, |
| const QUrl & | url, | ||
| const QRect & | requestRegion, | ||
| const QSize & | requestSize | ||
| ) |
Definition at line 1760 of file qquickpixmapcache.cpp.
References Cache, engine, load(), requestRegion(), requestSize(), and url().
Here is the call graph for this function:| void QQuickPixmap::load | ( | QQmlEngine * | engine, |
| const QUrl & | url, | ||
| const QRect & | requestRegion, | ||
| const QSize & | requestSize, | ||
| QQuickPixmap::Options | options | ||
| ) |
Definition at line 1765 of file qquickpixmapcache.cpp.
References engine, load(), requestRegion(), requestSize(), and url().
Here is the call graph for this function:| void QQuickPixmap::load | ( | QQmlEngine * | engine, |
| const QUrl & | url, | ||
| const QRect & | requestRegion, | ||
| const QSize & | requestSize, | ||
| QQuickPixmap::Options | options, | ||
| const QQuickImageProviderOptions & | providerOptions, | ||
| int | frame = 0, |
||
| int | frameCount = 1, |
||
| qreal | devicePixelRatio = 1.0 |
||
| ) |
Definition at line 1770 of file qquickpixmapcache.cpp.
References ~QQuickPixmap(), QQuickPixmapData::addref(), QQuickPixmapData::addToCache(), Asynchronous, Cache, createPixmapDataSync(), QQuickPixmapData::declarativePixmaps, QHash< Key, T >::end(), engine, QHash< Key, T >::find(), QQmlImageProviderBase::ForceAsynchronousImageLoading, frame, frameCount(), QQmlEnginePrivate::get(), QQuickPixmapReader::getImage(), QPlatformIntegration::hasCapability(), height(), QQmlEnginePrivate::imageProvider(), imageProviderId(), QIntrusiveList< N, member >::insert(), QQuickPixmapReader::instance(), itemGrabberScheme, iter, QMutex::lock(), QQuickPixmapStore::m_cache, ok, QQmlImageProviderBase::Pixmap, PIXMAP_PROFILE, QGuiApplicationPrivate::platformIntegration(), QQuickPixmapData, qWarning, QQuickPixmapReader::readerMutex, QQuickPixmapData::release(), QIntrusiveList< N, member >::remove(), QQuickPixmapData::reply, requestRegion(), requestSize(), QUrl::scheme(), QPlatformIntegration::ThreadedPixmaps, QMutex::unlock(), url(), QQuickImageProviderOptions::UsePluginDefaultTransform, and width().
Here is the call graph for this function:| void QQuickPixmap::load | ( | QQmlEngine * | engine, |
| const QUrl & | url, | ||
| QQuickPixmap::Options | options | ||
| ) |
Definition at line 1755 of file qquickpixmapcache.cpp.
References engine, load(), and url().
Here is the call graph for this function:| void QQuickPixmap::loadImageFromDevice | ( | QQmlEngine * | engine, |
| QIODevice * | device, | ||
| const QUrl & | url, | ||
| const QRect & | requestRegion, | ||
| const QSize & | requestSize, | ||
| const QQuickImageProviderOptions & | providerOptions, | ||
| int | frame = 0, |
||
| int | frameCount = 1 |
||
| ) |
Attempts to load an image from the given url via the given device. This is for special cases when the QImageIOHandler can benefit from reusing the I/O device, or from something extra that a subclass of QIODevice carries with it. So far, this code doesn't support loading anything other than a QImage, for example compressed textures. It can be added if needed.
Definition at line 1867 of file qquickpixmapcache.cpp.
References QQuickPixmapData::addref(), QQuickPixmapData::addToCache(), QObject::connect(), QQuickPixmapData::declarativePixmaps, device, QHash< Key, T >::end(), engine, QHash< Key, T >::find(), QQuickPixmapReply::finished(), frame, frameCount(), QQuickPixmapReader::getImage(), QIntrusiveList< N, member >::insert(), QQuickPixmapReader::instance(), iter, QMutex::lock(), QQuickPixmapStore::m_cache, QQuickPixmapData, QQuickPixmapReader::readerMutex, QQuickPixmapData::reply, requestRegion(), requestSize(), QQuickPixmapData::specialDevice, QMutex::unlock(), url(), and QQuickImageProviderOptions::UsePluginDefaultTransform.
Here is the call graph for this function:
|
static |
Definition at line 1330 of file qquickpixmapcache.cpp.
Referenced by QQuickWindow::~QQuickWindow(), QQmlPreviewHandler::loadUrl(), and QQuickWindow::releaseResources().
Here is the caller graph for this function:| QRect QQuickPixmap::rect | ( | ) | const |
Definition at line 1742 of file qquickpixmapcache.cpp.
References QQuickPixmapData::textureFactory, and QQuickTextureFactory::textureSize().
Here is the call graph for this function:| const QRect & QQuickPixmap::requestRegion | ( | ) | const |
Definition at line 1669 of file qquickpixmapcache.cpp.
References QQuickPixmapData::requestRegion.
Referenced by isCached(), load(), load(), load(), and loadImageFromDevice().
Here is the caller graph for this function:| const QSize & QQuickPixmap::requestSize | ( | ) | const |
Definition at line 1661 of file qquickpixmapcache.cpp.
References QQuickPixmapData::requestSize.
Referenced by isCached(), load(), load(), load(), and loadImageFromDevice().
Here is the caller graph for this function:Definition at line 1707 of file qquickpixmapcache.cpp.
References clear(), QQuickPixmapData, and QQuickTextureFactory::textureFactoryForImage().
Referenced by QQuickImagePrivate::setImage().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQuickPixmap::setPixmap | ( | const QQuickPixmap & | other | ) |
Definition at line 1715 of file qquickpixmapcache.cpp.
References QQuickPixmapData::addref(), clear(), QQuickPixmapData::declarativePixmaps, QIntrusiveList< N, member >::insert(), and other().
Referenced by QQuickImagePrivate::setPixmap().
Here is the call graph for this function:
Here is the caller graph for this function:| QQuickPixmap::Status QQuickPixmap::status | ( | ) | const |
Definition at line 1637 of file qquickpixmapcache.cpp.
References Null, and QQuickPixmapData::pixmapStatus.
Referenced by isError(), isLoading(), and isReady().
Here is the caller graph for this function:| QQuickTextureFactory * QQuickPixmap::textureFactory | ( | ) | const |
Definition at line 1692 of file qquickpixmapcache.cpp.
References QQuickPixmapData::textureFactory.
| const QUrl & QQuickPixmap::url | ( | ) | const |
Definition at line 1645 of file qquickpixmapcache.cpp.
References QUrl::url(), and QQuickPixmapData::url.
Referenced by QQuickPixmap(), QQuickPixmap(), QQuickPixmap(), isCached(), load(), load(), load(), load(), load(), and loadImageFromDevice().
Here is the call graph for this function:
Here is the caller graph for this function:| int QQuickPixmap::width | ( | ) | const |
Definition at line 1726 of file qquickpixmapcache.cpp.
References QQuickPixmapData::textureFactory, QQuickTextureFactory::textureSize(), and QSize::width().
Referenced by load(), QQuickIconImagePrivate::updateFillMode(), and QQuickCanvasPixmap::width().
Here is the call graph for this function:
Here is the caller graph for this function:
|
friend |
Definition at line 163 of file qquickpixmapcache_p.h.
Referenced by QQuickPixmap(), load(), loadImageFromDevice(), and setImage().
|
static |
Definition at line 157 of file qquickpixmapcache_p.h.
Referenced by QQuickItemGrabResultPrivate::ensureImageInCache(), and load().