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 &r, const QSize &rs, const QQuickImageProviderOptions &po, const QString &e)
 QQuickPixmapData (const QUrl &u, const QRect &r, const QSize &s, const QQuickImageProviderOptions &po, QQuickImageProviderOptions::AutoTransform aTransform, int frame=0, int frameCount=1)
 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)
 QQuickPixmapData (QQuickTextureFactory *texture)
 ~QQuickPixmapData ()
int cost () const
void addref ()
void release (QQuickPixmapCache *store=nullptr)
void addToCache ()
void removeFromCache (QQuickPixmapCache *store=nullptr)
 QQuickPixmapData (const QUrl &u, const QRect &r, const QSize &rs, const QQuickImageProviderOptions &po, const QString &e)
 QQuickPixmapData (const QUrl &u, const QRect &r, const QSize &s, const QQuickImageProviderOptions &po, QQuickImageProviderOptions::AutoTransform aTransform, int frame=0, int frameCount=1)
 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)
 QQuickPixmapData (QQuickTextureFactory *texture)
 ~QQuickPixmapData ()
int cost () const
void addref ()
void release (QQuickPixmapCache *store=nullptr)
void addToCache ()
void removeFromCache (QQuickPixmapCache *store=nullptr)

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
QQuickImageProviderOptions providerOptions
QQuickImageProviderOptions::AutoTransform appliedTransform
QColorSpace targetColorSpace
QPointer< QIODevicespecialDevice
QQuickTextureFactorytextureFactory
QQuickPixmapReplyreply
QQuickPixmapDataprevUnreferenced
QQuickPixmapData ** prevUnreferencedPtr
QQuickPixmapDatanextUnreferenced

Detailed Description

The private storage for QQuickPixmap.

Definition at line 308 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 311 of file qquickpixmapcache.cpp.

References QQuickPixmapData(), frame, frameCount, fromSpecialDevice, inCache, nextUnreferenced, prevUnreferenced, prevUnreferencedPtr, 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 )
inline

Definition at line 324 of file qquickpixmapcache.cpp.

References QQuickPixmapData(), frame, frameCount, fromSpecialDevice, inCache, nextUnreferenced, prevUnreferenced, prevUnreferencedPtr, 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 )
inline

Definition at line 337 of file qquickpixmapcache.cpp.

References QQuickPixmapData(), frame, frameCount, fromSpecialDevice, inCache, nextUnreferenced, prevUnreferenced, prevUnreferencedPtr, 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 351 of file qquickpixmapcache.cpp.

References QQuickPixmapData(), frame, frameCount, fromSpecialDevice, inCache, nextUnreferenced, prevUnreferenced, prevUnreferencedPtr, 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 364 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 311 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 )
inline

Definition at line 324 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 )
inline

Definition at line 337 of file qquickpixmapcache.cpp.

◆ QQuickPixmapData() [8/8]

QQuickPixmapData::QQuickPixmapData ( QQuickTextureFactory * texture)
inline

Definition at line 351 of file qquickpixmapcache.cpp.

◆ ~QQuickPixmapData() [2/2]

QQuickPixmapData::~QQuickPixmapData ( )
inline

Definition at line 364 of file qquickpixmapcache.cpp.

Member Function Documentation

◆ addref() [1/2]

void QQuickPixmapData::addref ( )

Definition at line 1473 of file qquickpixmapcache.cpp.

◆ 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 1526 of file qquickpixmapcache.cpp.

References inCache.

◆ addToCache() [2/2]

void QQuickPixmapData::addToCache ( )

◆ cost() [1/2]

int QQuickPixmapData::cost ( ) const

Definition at line 1466 of file qquickpixmapcache.cpp.

◆ cost() [2/2]

int QQuickPixmapData::cost ( ) const

◆ release() [1/2]

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

Definition at line 1481 of file qquickpixmapcache.cpp.

References QQuickPixmapReader::cancel(), QQuickPixmapReply::data, inCache, 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 1545 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 389 of file qquickpixmapcache.cpp.

◆ errorString

QString QQuickPixmapData::errorString

Definition at line 384 of file qquickpixmapcache.cpp.

◆ frame

int QQuickPixmapData::frame

◆ frameCount

int QQuickPixmapData::frameCount

◆ fromSpecialDevice

bool QQuickPixmapData::fromSpecialDevice

◆ implicitSize

QSize QQuickPixmapData::implicitSize

Definition at line 385 of file qquickpixmapcache.cpp.

◆ inCache

bool QQuickPixmapData::inCache

◆ nextUnreferenced

QQuickPixmapData * QQuickPixmapData::nextUnreferenced

◆ pixmapStatus

QQuickPixmap::Status QQuickPixmapData::pixmapStatus

Definition at line 382 of file qquickpixmapcache.cpp.

◆ prevUnreferenced

QQuickPixmapData * QQuickPixmapData::prevUnreferenced

◆ prevUnreferencedPtr

QQuickPixmapData ** QQuickPixmapData::prevUnreferencedPtr

◆ providerOptions

QQuickImageProviderOptions QQuickPixmapData::providerOptions

Definition at line 388 of file qquickpixmapcache.cpp.

◆ refCount

uint QQuickPixmapData::refCount

Definition at line 375 of file qquickpixmapcache.cpp.

◆ reply

◆ requestRegion

QRect QQuickPixmapData::requestRegion

Definition at line 386 of file qquickpixmapcache.cpp.

◆ requestSize

QSize QQuickPixmapData::requestSize

Definition at line 387 of file qquickpixmapcache.cpp.

◆ specialDevice

QPointer< QIODevice > QQuickPixmapData::specialDevice

Definition at line 392 of file qquickpixmapcache.cpp.

◆ targetColorSpace

QColorSpace QQuickPixmapData::targetColorSpace

Definition at line 390 of file qquickpixmapcache.cpp.

◆ textureFactory

QQuickTextureFactory * QQuickPixmapData::textureFactory

Definition at line 395 of file qquickpixmapcache.cpp.

◆ url

QUrl QQuickPixmapData::url

Definition at line 383 of file qquickpixmapcache.cpp.


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