QtBase  v6.3.1
Public Member Functions | Friends | List of all members
QPixmapCache::Key Class Reference

The QPixmapCache::Key class can be used for efficient access to the QPixmapCache. \inmodule QtGui. More...

#include <qpixmapcache.h>

Public Member Functions

 Key ()
 
 Key (const Key &other)
 
 Key (Key &&other) noexcept
 
Keyoperator= (Key &&other) noexcept
 
 ~Key ()
 
bool operator== (const Key &key) const
 
bool operator!= (const Key &key) const
 
Keyoperator= (const Key &other)
 
void swap (Key &other) noexcept
 
bool isValid () const noexcept
 

Friends

class QPMCache
 
class QPixmapCache
 

Detailed Description

The QPixmapCache::Key class can be used for efficient access to the QPixmapCache. \inmodule QtGui.

Since
4.6

Use QPixmapCache::insert() to receive an instance of Key generated by the pixmap cache. You can store the key in your own objects for a very efficient one-to-one object-to-pixmap mapping.

Definition at line 53 of file qpixmapcache.h.

Constructor & Destructor Documentation

◆ Key() [1/3]

QPixmapCache::Key::Key ( )

Constructs an empty Key object.

Definition at line 129 of file qpixmapcache.cpp.

◆ Key() [2/3]

QPixmapCache::Key::Key ( const Key other)

Definition at line 137 of file qpixmapcache.cpp.

Here is the call graph for this function:

◆ Key() [3/3]

QPixmapCache::Key::Key ( Key &&  other)
inlinenoexcept

Definition at line 58 of file qpixmapcache.h.

Here is the call graph for this function:

◆ ~Key()

QPixmapCache::Key::~Key ( )

Destroys the key.

Definition at line 147 of file qpixmapcache.cpp.

Member Function Documentation

◆ isValid()

bool QPixmapCache::Key::isValid ( ) const
noexcept

Returns true if there is a cached pixmap associated with this key. Otherwise, if pixmap was flushed, the key is no longer valid.

Since
5.7

Definition at line 192 of file qpixmapcache.cpp.

◆ operator!=()

bool QPixmapCache::Key::operator!= ( const Key key) const
inline

Definition at line 62 of file qpixmapcache.h.

Here is the call graph for this function:

◆ operator=() [1/2]

QPixmapCache::Key & QPixmapCache::Key::operator= ( const Key other)

Definition at line 200 of file qpixmapcache.cpp.

Here is the call graph for this function:

◆ operator=() [2/2]

QPixmapCache::Key & QPixmapCache::Key::operator= ( Key &&  other)
inlinenoexcept

Definition at line 59 of file qpixmapcache.h.

Here is the call graph for this function:

◆ operator==()

bool QPixmapCache::Key::operator== ( const Key key) const

Definition at line 159 of file qpixmapcache.cpp.

◆ swap()

void QPixmapCache::Key::swap ( Key other)
inlinenoexcept

Definition at line 66 of file qpixmapcache.h.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ QPixmapCache

friend class QPixmapCache
friend

Definition at line 72 of file qpixmapcache.h.

◆ QPMCache

friend class QPMCache
friend

Definition at line 71 of file qpixmapcache.h.


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