![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qquickpixmap_p.h>
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 bool | isScalableImageFormat (const QUrl &url) |
Static Public Attributes | |
| static const QLatin1String | itemGrabberScheme = QLatin1String("itemgrabber") |
Friends | |
| class | QQuickPixmapData |
A class that encapsulates the action of fetching a pixmap, as well as the pixmap itself (indirectly via QQuickPixmapData::textureFactory) and the responsibility of canceling outstanding requests. Rather than relying on QPixmapCache which doesn't cache all the information Qt Quick needs, QQuickPixmap implements its own cache, that correctly degrades over time. (QQuickPixmapData::release() marks it as being not-currently-used, and QQuickPixmapCache::shrinkCache() sweeps away the least-recently-released instances until the remaining bytes are less than cache_limit.)
Definition at line 104 of file qquickpixmap_p.h.
| enum QQuickPixmap::Option |
| Enumerator | |
|---|---|
| Asynchronous | |
| Cache | |
Definition at line 110 of file qquickpixmap_p.h.
| enum QQuickPixmap::Status |
| Enumerator | |
|---|---|
| Null | |
| Ready | |
| Error | |
| Loading | |
Definition at line 108 of file qquickpixmap_p.h.
| QQuickPixmap::QQuickPixmap | ( | ) |
Definition at line 1686 of file qquickpixmapcache.cpp.
| QQuickPixmap::QQuickPixmap | ( | QQmlEngine * | engine, |
| const QUrl & | url ) |
Definition at line 1691 of file qquickpixmapcache.cpp.
| QQuickPixmap::QQuickPixmap | ( | QQmlEngine * | engine, |
| const QUrl & | url, | ||
| Options | options ) |
Definition at line 1697 of file qquickpixmapcache.cpp.
| QQuickPixmap::QQuickPixmap | ( | QQmlEngine * | engine, |
| const QUrl & | url, | ||
| const QRect & | region, | ||
| const QSize & | size ) |
Definition at line 1703 of file qquickpixmapcache.cpp.
Definition at line 1709 of file qquickpixmapcache.cpp.
| QQuickPixmap::~QQuickPixmap | ( | ) |
Definition at line 1717 of file qquickpixmapcache.cpp.
| QQuickImageProviderOptions::AutoTransform QQuickPixmap::autoTransform | ( | ) | const |
Definition at line 1793 of file qquickpixmapcache.cpp.
| void QQuickPixmap::clear | ( | ) |
Definition at line 2039 of file qquickpixmapcache.cpp.
Definition at line 2047 of file qquickpixmapcache.cpp.
| QColorSpace QQuickPixmap::colorSpace | ( | ) | const |
Definition at line 2119 of file qquickpixmapcache.cpp.
| bool QQuickPixmap::connectDownloadProgress | ( | QObject * | object, |
| const char * | method ) |
Definition at line 2097 of file qquickpixmapcache.cpp.
| bool QQuickPixmap::connectDownloadProgress | ( | QObject * | object, |
| int | method ) |
Definition at line 2108 of file qquickpixmapcache.cpp.
| bool QQuickPixmap::connectFinished | ( | QObject * | object, |
| const char * | method ) |
Definition at line 2077 of file qquickpixmapcache.cpp.
| bool QQuickPixmap::connectFinished | ( | QObject * | object, |
| int | method ) |
Definition at line 2087 of file qquickpixmapcache.cpp.
| qreal QQuickPixmap::devicePixelRatio | ( | ) | const |
Definition at line 1864 of file qquickpixmapcache.cpp.
| QString QQuickPixmap::error | ( | ) | const |
Definition at line 1745 of file qquickpixmapcache.cpp.
| int QQuickPixmap::frameCount | ( | ) | const |
Definition at line 1801 of file qquickpixmapcache.cpp.
| int QQuickPixmap::height | ( | ) | const |
Definition at line 1856 of file qquickpixmapcache.cpp.
| QImage QQuickPixmap::image | ( | ) | const |
Definition at line 1816 of file qquickpixmapcache.cpp.
| const QSize & QQuickPixmap::implicitSize | ( | ) | const |
Definition at line 1769 of file qquickpixmapcache.cpp.
|
static |
Definition at line 2057 of file qquickpixmapcache.cpp.
| bool QQuickPixmap::isError | ( | ) | const |
Definition at line 1735 of file qquickpixmapcache.cpp.
| bool QQuickPixmap::isLoading | ( | ) | const |
Definition at line 1740 of file qquickpixmapcache.cpp.
| bool QQuickPixmap::isNull | ( | ) | const |
Definition at line 1725 of file qquickpixmapcache.cpp.
| bool QQuickPixmap::isReady | ( | ) | const |
Definition at line 1730 of file qquickpixmapcache.cpp.
|
static |
Definition at line 2066 of file qquickpixmapcache.cpp.
| void QQuickPixmap::load | ( | QQmlEngine * | engine, |
| const QUrl & | url ) |
Definition at line 1877 of file qquickpixmapcache.cpp.
| void QQuickPixmap::load | ( | QQmlEngine * | engine, |
| const QUrl & | url, | ||
| const QRect & | requestRegion, | ||
| const QSize & | requestSize ) |
Definition at line 1887 of file qquickpixmapcache.cpp.
| void QQuickPixmap::load | ( | QQmlEngine * | engine, |
| const QUrl & | url, | ||
| const QRect & | requestRegion, | ||
| const QSize & | requestSize, | ||
| QQuickPixmap::Options | options ) |
Definition at line 1892 of file qquickpixmapcache.cpp.
| 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 1897 of file qquickpixmapcache.cpp.
| void QQuickPixmap::load | ( | QQmlEngine * | engine, |
| const QUrl & | url, | ||
| QQuickPixmap::Options | options ) |
Definition at line 1882 of file qquickpixmapcache.cpp.
| 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 1998 of file qquickpixmapcache.cpp.
|
static |
Definition at line 1418 of file qquickpixmapcache.cpp.
| QRect QQuickPixmap::rect | ( | ) | const |
Definition at line 1869 of file qquickpixmapcache.cpp.
| const QRect & QQuickPixmap::requestRegion | ( | ) | const |
Definition at line 1785 of file qquickpixmapcache.cpp.
| const QSize & QQuickPixmap::requestSize | ( | ) | const |
Definition at line 1777 of file qquickpixmapcache.cpp.
Definition at line 1823 of file qquickpixmapcache.cpp.
| void QQuickPixmap::setPixmap | ( | const QQuickPixmap & | other | ) |
Definition at line 1834 of file qquickpixmapcache.cpp.
| QQuickPixmap::Status QQuickPixmap::status | ( | ) | const |
Definition at line 1753 of file qquickpixmapcache.cpp.
| QQuickTextureFactory * QQuickPixmap::textureFactory | ( | ) | const |
Definition at line 1808 of file qquickpixmapcache.cpp.
| const QUrl & QQuickPixmap::url | ( | ) | const |
Definition at line 1761 of file qquickpixmapcache.cpp.
| int QQuickPixmap::width | ( | ) | const |
Definition at line 1848 of file qquickpixmapcache.cpp.
|
friend |
Definition at line 178 of file qquickpixmap_p.h.
|
static |
Definition at line 173 of file qquickpixmap_p.h.