QtBase
v6.3.1
|
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 | |
Key & | operator= (Key &&other) noexcept |
~Key () | |
bool | operator== (const Key &key) const |
bool | operator!= (const Key &key) const |
Key & | operator= (const Key &other) |
void | swap (Key &other) noexcept |
bool | isValid () const noexcept |
Friends | |
class | QPMCache |
class | QPixmapCache |
The QPixmapCache::Key class can be used for efficient access to the QPixmapCache. \inmodule QtGui.
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.
QPixmapCache::Key::Key | ( | ) |
Constructs an empty Key object.
Definition at line 129 of file qpixmapcache.cpp.
|
inlinenoexcept |
QPixmapCache::Key::~Key | ( | ) |
Destroys the key.
Definition at line 147 of file qpixmapcache.cpp.
|
noexcept |
Returns true
if there is a cached pixmap associated with this key. Otherwise, if pixmap was flushed, the key is no longer valid.
Definition at line 192 of file qpixmapcache.cpp.
|
inline |
QPixmapCache::Key & QPixmapCache::Key::operator= | ( | const Key & | other | ) |
|
inlinenoexcept |
Definition at line 159 of file qpixmapcache.cpp.
|
friend |
Definition at line 72 of file qpixmapcache.h.
|
friend |
Definition at line 71 of file qpixmapcache.h.