Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QGraphicsItemCache Class Reference

#include <qgraphicsitem_p.h>

+ Collaboration diagram for QGraphicsItemCache:

Classes

struct  DeviceData
 

Public Member Functions

 QGraphicsItemCache ()
 
void purge ()
 

Public Attributes

QRect boundingRect
 
QSize fixedSize
 
QPixmapCache::Key key
 
QHash< QPaintDevice *, DeviceDatadeviceData
 
QList< QRectFexposed
 
bool allExposed
 

Detailed Description

Definition at line 34 of file qgraphicsitem_p.h.

Constructor & Destructor Documentation

◆ QGraphicsItemCache()

QGraphicsItemCache::QGraphicsItemCache ( )
inline

Definition at line 37 of file qgraphicsitem_p.h.

Member Function Documentation

◆ purge()

void QGraphicsItemCache::purge ( )

Empty all cached pixmaps from the pixmap cache.

Definition at line 1482 of file qgraphicsitem.cpp.

References allExposed, QList< T >::clear(), deviceData, exposed, and QPixmapCache::remove().

Referenced by QGraphicsItemPrivate::removeExtraItemCache(), and QGraphicsItemPrivate::setVisibleHelper().

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

Member Data Documentation

◆ allExposed

bool QGraphicsItemCache::allExposed

Definition at line 55 of file qgraphicsitem_p.h.

Referenced by QGraphicsScenePrivate::drawItemHelper(), and purge().

◆ boundingRect

QRect QGraphicsItemCache::boundingRect

Definition at line 40 of file qgraphicsitem_p.h.

Referenced by QGraphicsScenePrivate::drawItemHelper().

◆ deviceData

QHash<QPaintDevice *, DeviceData> QGraphicsItemCache::deviceData

Definition at line 51 of file qgraphicsitem_p.h.

Referenced by QGraphicsScenePrivate::drawItemHelper(), and purge().

◆ exposed

QList<QRectF> QGraphicsItemCache::exposed

Definition at line 54 of file qgraphicsitem_p.h.

Referenced by QGraphicsScenePrivate::drawItemHelper(), and purge().

◆ fixedSize

QSize QGraphicsItemCache::fixedSize

Definition at line 41 of file qgraphicsitem_p.h.

Referenced by QGraphicsScenePrivate::drawItemHelper().

◆ key

QPixmapCache::Key QGraphicsItemCache::key

Definition at line 42 of file qgraphicsitem_p.h.

Referenced by QGraphicsScenePrivate::drawItemHelper().


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