Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQuickPixmapData Class Reference
Collaboration diagram for QQuickPixmapData:

Public Member Functions

 QQuickPixmapData (const QUrl &u, const QRect &rr, const QSize &rs, const QQuickImageProviderOptions &po, const QString &e)
 QQuickPixmapData (const QUrl &u, const QRect &rr, const QSize &ss, const QQuickImageProviderOptions &po, QQuickImageProviderOptions::AutoTransform aTransform, int frame=0, int frameCount=1, qreal dpr=1)
 QQuickPixmapData (const QUrl &u, QQuickTextureFactory *texturetexture, const QSize &ss, const QRect &rr, const QSize &rs, const QQuickImageProviderOptions &po, QQuickImageProviderOptions::AutoTransform aTransform, int frame=0, int frameCount=1, qreal dpr=1)
 QQuickPixmapData (QQuickTextureFactory *texturetexture)
 ~QQuickPixmapData ()
int cost () const
void addref ()
void release (QQuickPixmapCache *store=nullptr)
void addToCache ()
void removeFromCache (QQuickPixmapCache *store=nullptr)
bool hasDroppedTransientImage () const
 QQuickPixmapData (const QUrl &u, const QRect &rr, const QSize &rs, const QQuickImageProviderOptions &po, const QString &e)
 QQuickPixmapData (const QUrl &u, const QRect &rr, const QSize &ss, const QQuickImageProviderOptions &po, QQuickImageProviderOptions::AutoTransform aTransform, int frame=0, int frameCount=1, qreal dpr=1)
 QQuickPixmapData (const QUrl &u, QQuickTextureFactory *texturetexture, const QSize &ss, const QRect &rr, const QSize &rs, const QQuickImageProviderOptions &po, QQuickImageProviderOptions::AutoTransform aTransform, int frame=0, int frameCount=1, qreal dpr=1)
 QQuickPixmapData (QQuickTextureFactory *texturetexture)
 ~QQuickPixmapData ()
int cost () const
void addref ()
void release (QQuickPixmapCache *store=nullptr)
void addToCache ()
void removeFromCache (QQuickPixmapCache *store=nullptr)
bool hasDroppedTransientImage () const

Public Attributes

uint refCount
int frameCount
int frame
bool inCache:1
bool fromSpecialDevice:1
QQuickPixmap::Status pixmapStatus
QUrl url
QString errorString
QSize implicitSize
QRect requestRegion
QSize requestSize
qreal devicePixelRatio = 1
QQuickImageProviderOptions providerOptions
QQuickImageProviderOptions::AutoTransform appliedTransform
QColorSpace targetColorSpace
QPointer< QIODevice > specialDevice
QQuickTextureFactory * textureFactory
QQuickPixmapReply * reply
QQuickPixmapData * prevUnreferenced
QQuickPixmapData ** prevUnreferencedPtr
QQuickPixmapData * nextUnreferenced

Detailed Description

The private storage for QQuickPixmap.

Definition at line 326 of file qquickpixmapcache.cpp.

Constructor & Destructor Documentation

◆ QQuickPixmapData() [1/8]

QQuickPixmapData::QQuickPixmapData ( const QUrl & u,
const QRect & r,
const QSize & rs,
const QQuickImageProviderOptions & po,
const QString & e )
inline

Definition at line 329 of file qquickpixmapcache.cpp.

References QQuickPixmapData(), frame, frameCount, fromSpecialDevice, inCache, nextUnreferenced, prevUnreferenced, prevUnreferencedPtr, refCount, and reply.

Referenced by QQuickPixmapData().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ QQuickPixmapData() [2/8]

QQuickPixmapData::QQuickPixmapData ( const QUrl & u,
const QRect & r,
const QSize & s,
const QQuickImageProviderOptions & po,
QQuickImageProviderOptions::AutoTransform aTransform,
int frame = 0,
int frameCount = 1,
qreal dpr = 1 )
inline

Definition at line 342 of file qquickpixmapcache.cpp.

References QQuickPixmapData(), frame, frameCount, fromSpecialDevice, inCache, nextUnreferenced, prevUnreferenced, prevUnreferencedPtr, refCount, and reply.

Referenced by QQuickPixmapData().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ QQuickPixmapData() [3/8]

QQuickPixmapData::QQuickPixmapData ( const QUrl & u,
QQuickTextureFactory * texture,
const QSize & s,
const QRect & r,
const QSize & rs,
const QQuickImageProviderOptions & po,
QQuickImageProviderOptions::AutoTransform aTransform,
int frame = 0,
int frameCount = 1,
qreal dpr = 1 )
inline

Definition at line 355 of file qquickpixmapcache.cpp.

References QQuickPixmapData(), frame, frameCount, fromSpecialDevice, inCache, nextUnreferenced, prevUnreferenced, prevUnreferencedPtr, refCount, and reply.

Referenced by QQuickPixmapData().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ QQuickPixmapData() [4/8]

QQuickPixmapData::QQuickPixmapData ( QQuickTextureFactory * texture)
inline

Definition at line 369 of file qquickpixmapcache.cpp.

References QQuickPixmapData(), frame, frameCount, fromSpecialDevice, inCache, nextUnreferenced, prevUnreferenced, prevUnreferencedPtr, refCount, and reply.

Referenced by QQuickPixmapData().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~QQuickPixmapData() [1/2]

QQuickPixmapData::~QQuickPixmapData ( )
inline

Definition at line 382 of file qquickpixmapcache.cpp.

◆ QQuickPixmapData() [5/8]

QQuickPixmapData::QQuickPixmapData ( const QUrl & u,
const QRect & r,
const QSize & rs,
const QQuickImageProviderOptions & po,
const QString & e )
inline

Definition at line 329 of file qquickpixmapcache.cpp.

◆ QQuickPixmapData() [6/8]

QQuickPixmapData::QQuickPixmapData ( const QUrl & u,
const QRect & r,
const QSize & s,
const QQuickImageProviderOptions & po,
QQuickImageProviderOptions::AutoTransform aTransform,
int frame = 0,
int frameCount = 1,
qreal dpr = 1 )
inline

Definition at line 342 of file qquickpixmapcache.cpp.

◆ QQuickPixmapData() [7/8]

QQuickPixmapData::QQuickPixmapData ( const QUrl & u,
QQuickTextureFactory * texture,
const QSize & s,
const QRect & r,
const QSize & rs,
const QQuickImageProviderOptions & po,
QQuickImageProviderOptions::AutoTransform aTransform,
int frame = 0,
int frameCount = 1,
qreal dpr = 1 )
inline

Definition at line 355 of file qquickpixmapcache.cpp.

◆ QQuickPixmapData() [8/8]

QQuickPixmapData::QQuickPixmapData ( QQuickTextureFactory * texture)
inline

Definition at line 369 of file qquickpixmapcache.cpp.

◆ ~QQuickPixmapData() [2/2]

QQuickPixmapData::~QQuickPixmapData ( )
inline

Definition at line 382 of file qquickpixmapcache.cpp.

Member Function Documentation

◆ addref() [1/2]

void QQuickPixmapData::addref ( )

Definition at line 1528 of file qquickpixmapcache.cpp.

References refCount.

◆ addref() [2/2]

void QQuickPixmapData::addref ( )

◆ addToCache() [1/2]

void QQuickPixmapData::addToCache ( )

Add this to the QQuickPixmapCache singleton.

Note
The actual image will end up in QQuickPixmapData::textureFactory. At the time addToCache() is called, it's generally not yet loaded; so the qCDebug() below cannot say how much data we're committing to storing. (On the other hand, removeFromCache() can tell.) QQuickTextureFactory is an abstraction for image data. See QQuickDefaultTextureFactory for example: it stores a QImage directly. Other QQuickTextureFactory subclasses store data in other ways.

Definition at line 1581 of file qquickpixmapcache.cpp.

References inCache.

◆ addToCache() [2/2]

void QQuickPixmapData::addToCache ( )

◆ cost() [1/2]

int QQuickPixmapData::cost ( ) const

Definition at line 1521 of file qquickpixmapcache.cpp.

◆ cost() [2/2]

int QQuickPixmapData::cost ( ) const

◆ hasDroppedTransientImage() [1/2]

bool QQuickPixmapData::hasDroppedTransientImage ( ) const
inline

Definition at line 393 of file qquickpixmapcache.cpp.

◆ hasDroppedTransientImage() [2/2]

bool QQuickPixmapData::hasDroppedTransientImage ( ) const
inline

Definition at line 393 of file qquickpixmapcache.cpp.

◆ release() [1/2]

void QQuickPixmapData::release ( QQuickPixmapCache * store = nullptr)

Definition at line 1536 of file qquickpixmapcache.cpp.

References QQuickPixmapReader::cancel(), QQuickPixmapReply::data, inCache, refCount, removeFromCache(), and reply.

Here is the call graph for this function:

◆ release() [2/2]

void QQuickPixmapData::release ( QQuickPixmapCache * store = nullptr)

◆ removeFromCache() [1/2]

void QQuickPixmapData::removeFromCache ( QQuickPixmapCache * store = nullptr)

Definition at line 1600 of file qquickpixmapcache.cpp.

References inCache.

Referenced by QQuickPixmapReply::event(), and release().

Here is the caller graph for this function:

◆ removeFromCache() [2/2]

void QQuickPixmapData::removeFromCache ( QQuickPixmapCache * store = nullptr)

Member Data Documentation

◆ appliedTransform

QQuickImageProviderOptions::AutoTransform QQuickPixmapData::appliedTransform

Definition at line 414 of file qquickpixmapcache.cpp.

◆ devicePixelRatio

qreal QQuickPixmapData::devicePixelRatio = 1

Definition at line 412 of file qquickpixmapcache.cpp.

◆ errorString

QString QQuickPixmapData::errorString

Definition at line 408 of file qquickpixmapcache.cpp.

◆ frame

int QQuickPixmapData::frame

◆ frameCount

int QQuickPixmapData::frameCount

◆ fromSpecialDevice

bool QQuickPixmapData::fromSpecialDevice

◆ implicitSize

QSize QQuickPixmapData::implicitSize

Definition at line 409 of file qquickpixmapcache.cpp.

◆ inCache

bool QQuickPixmapData::inCache

◆ nextUnreferenced

QQuickPixmapData * QQuickPixmapData::nextUnreferenced

◆ pixmapStatus

QQuickPixmap::Status QQuickPixmapData::pixmapStatus

Definition at line 406 of file qquickpixmapcache.cpp.

◆ prevUnreferenced

QQuickPixmapData * QQuickPixmapData::prevUnreferenced

◆ prevUnreferencedPtr

QQuickPixmapData ** QQuickPixmapData::prevUnreferencedPtr

◆ providerOptions

QQuickImageProviderOptions QQuickPixmapData::providerOptions

Definition at line 413 of file qquickpixmapcache.cpp.

◆ refCount

uint QQuickPixmapData::refCount

◆ reply

◆ requestRegion

QRect QQuickPixmapData::requestRegion

Definition at line 410 of file qquickpixmapcache.cpp.

◆ requestSize

QSize QQuickPixmapData::requestSize

Definition at line 411 of file qquickpixmapcache.cpp.

◆ specialDevice

QPointer< QIODevice > QQuickPixmapData::specialDevice

Definition at line 417 of file qquickpixmapcache.cpp.

◆ targetColorSpace

QColorSpace QQuickPixmapData::targetColorSpace

Definition at line 415 of file qquickpixmapcache.cpp.

◆ textureFactory

QQuickTextureFactory * QQuickPixmapData::textureFactory

Definition at line 420 of file qquickpixmapcache.cpp.

◆ url

QUrl QQuickPixmapData::url

Definition at line 407 of file qquickpixmapcache.cpp.


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