Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQuickPixmapData Class Reference
+ Collaboration diagram for QQuickPixmapData:

Public Member Functions

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

Public Attributes

uint refCount
 
int frameCount
 
int frame
 
bool inCache:1
 
QQuickPixmap::Status pixmapStatus
 
QUrl url
 
QString errorString
 
QSize implicitSize
 
QRect requestRegion
 
QSize requestSize
 
QQuickImageProviderOptions providerOptions
 
QQuickImageProviderOptions::AutoTransform appliedTransform
 
QColorSpace targetColorSpace
 
QIODevicespecialDevice = nullptr
 
QQuickTextureFactorytextureFactory
 
QIntrusiveList< QQuickPixmap, &QQuickPixmap::dataListNode > declarativePixmaps
 
QQuickPixmapReplyreply
 
QQuickPixmapDataprevUnreferenced
 
QQuickPixmapData ** prevUnreferencedPtr
 
QQuickPixmapDatanextUnreferenced
 

Detailed Description

Definition at line 282 of file qquickpixmapcache.cpp.

Constructor & Destructor Documentation

◆ QQuickPixmapData() [1/4]

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

Definition at line 285 of file qquickpixmapcache.cpp.

References declarativePixmaps, QIntrusiveList< N, member >::insert(), and pixmap.

+ Here is the call graph for this function:

◆ QQuickPixmapData() [2/4]

QQuickPixmapData::QQuickPixmapData ( QQuickPixmap pixmap,
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 299 of file qquickpixmapcache.cpp.

References declarativePixmaps, QIntrusiveList< N, member >::insert(), and pixmap.

+ Here is the call graph for this function:

◆ QQuickPixmapData() [3/4]

QQuickPixmapData::QQuickPixmapData ( QQuickPixmap pixmap,
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 313 of file qquickpixmapcache.cpp.

References declarativePixmaps, QIntrusiveList< N, member >::insert(), and pixmap.

+ Here is the call graph for this function:

◆ QQuickPixmapData() [4/4]

QQuickPixmapData::QQuickPixmapData ( QQuickPixmap pixmap,
QQuickTextureFactory texture 
)
inline

Definition at line 328 of file qquickpixmapcache.cpp.

References declarativePixmaps, implicitSize, QIntrusiveList< N, member >::insert(), pixmap, and requestSize.

+ Here is the call graph for this function:

◆ ~QQuickPixmapData()

QQuickPixmapData::~QQuickPixmapData ( )
inline

Definition at line 342 of file qquickpixmapcache.cpp.

References declarativePixmaps, QIntrusiveList< N, member >::first(), QIntrusiveList< N, member >::isEmpty(), QIntrusiveList< N, member >::remove(), and textureFactory.

+ Here is the call graph for this function:

Member Function Documentation

◆ addref()

void QQuickPixmapData::addref ( )

Definition at line 1393 of file qquickpixmapcache.cpp.

References PIXMAP_PROFILE, prevUnreferencedPtr, refCount, and url.

Referenced by QQuickPixmap::load(), QQuickPixmap::loadImageFromDevice(), and QQuickPixmap::setPixmap().

+ Here is the caller graph for this function:

◆ addToCache()

void QQuickPixmapData::addToCache ( )

Definition at line 1435 of file qquickpixmapcache.cpp.

References frame, inCache, PIXMAP_PROFILE, providerOptions, requestRegion, requestSize, and url.

Referenced by QQuickPixmap::QQuickPixmap(), QQuickPixmap::load(), and QQuickPixmap::loadImageFromDevice().

+ Here is the caller graph for this function:

◆ cost()

int QQuickPixmapData::cost ( ) const

Definition at line 1386 of file qquickpixmapcache.cpp.

References QQuickTextureFactory::textureByteCount(), and textureFactory.

+ Here is the call graph for this function:

◆ release()

void QQuickPixmapData::release ( QQuickPixmapStore store = nullptr)

Definition at line 1401 of file qquickpixmapcache.cpp.

References QQuickPixmapReply::data, QQuickPixmapReply::engineForReader, QQuickPixmapReader::existingInstance(), inCache, QMutex::lock(), PIXMAP_PROFILE, pixmapStatus, Q_ASSERT, QQuickPixmapReader::readerMutex, QQuickPixmap::Ready, refCount, removeFromCache(), reply, QMutex::unlock(), QQuickPixmapStore::unreferencePixmap(), and url.

Referenced by QQuickPixmap::~QQuickPixmap(), QQuickPixmap::clear(), QQuickPixmap::clear(), and QQuickPixmap::load().

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

◆ removeFromCache()

void QQuickPixmapData::removeFromCache ( QQuickPixmapStore store = nullptr)

Definition at line 1446 of file qquickpixmapcache.cpp.

References frame, inCache, QQuickPixmapStore::m_cache, PIXMAP_PROFILE, providerOptions, QHash< Key, T >::remove(), requestRegion, requestSize, QHash< Key, T >::size(), and url.

Referenced by release().

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

Member Data Documentation

◆ appliedTransform

QQuickImageProviderOptions::AutoTransform QQuickPixmapData::appliedTransform

Definition at line 371 of file qquickpixmapcache.cpp.

Referenced by QQuickPixmap::autoTransform().

◆ declarativePixmaps

◆ errorString

QString QQuickPixmapData::errorString

Definition at line 366 of file qquickpixmapcache.cpp.

Referenced by QQuickPixmap::error().

◆ frame

int QQuickPixmapData::frame

Definition at line 360 of file qquickpixmapcache.cpp.

Referenced by addToCache(), and removeFromCache().

◆ frameCount

int QQuickPixmapData::frameCount

Definition at line 359 of file qquickpixmapcache.cpp.

Referenced by QQuickPixmap::frameCount().

◆ implicitSize

QSize QQuickPixmapData::implicitSize

Definition at line 367 of file qquickpixmapcache.cpp.

Referenced by QQuickPixmapData(), and QQuickPixmap::implicitSize().

◆ inCache

bool QQuickPixmapData::inCache

Definition at line 362 of file qquickpixmapcache.cpp.

Referenced by addToCache(), release(), and removeFromCache().

◆ nextUnreferenced

QQuickPixmapData* QQuickPixmapData::nextUnreferenced

◆ pixmapStatus

QQuickPixmap::Status QQuickPixmapData::pixmapStatus

Definition at line 364 of file qquickpixmapcache.cpp.

Referenced by release(), and QQuickPixmap::status().

◆ prevUnreferenced

QQuickPixmapData* QQuickPixmapData::prevUnreferenced

◆ prevUnreferencedPtr

QQuickPixmapData** QQuickPixmapData::prevUnreferencedPtr

◆ providerOptions

QQuickImageProviderOptions QQuickPixmapData::providerOptions

Definition at line 370 of file qquickpixmapcache.cpp.

Referenced by addToCache(), and removeFromCache().

◆ refCount

uint QQuickPixmapData::refCount

Definition at line 358 of file qquickpixmapcache.cpp.

Referenced by addref(), and release().

◆ reply

◆ requestRegion

QRect QQuickPixmapData::requestRegion

Definition at line 368 of file qquickpixmapcache.cpp.

Referenced by addToCache(), removeFromCache(), and QQuickPixmap::requestRegion().

◆ requestSize

QSize QQuickPixmapData::requestSize

◆ specialDevice

QIODevice* QQuickPixmapData::specialDevice = nullptr

Definition at line 374 of file qquickpixmapcache.cpp.

Referenced by QQuickPixmap::loadImageFromDevice().

◆ targetColorSpace

QColorSpace QQuickPixmapData::targetColorSpace

Definition at line 372 of file qquickpixmapcache.cpp.

◆ textureFactory

◆ url

QUrl QQuickPixmapData::url

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