Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qgraphicsitem_p.h File Reference
#include <QtWidgets/private/qtwidgetsglobal_p.h>
#include "qgraphicsitem.h"
#include "qset.h"
#include "qpixmapcache.h"
#include <private/qgraphicsview_p.h>
#include "qgraphicstransform.h"
#include <private/qgraphicstransform_p.h>
#include <QtCore/qpoint.h>
+ Include dependency graph for qgraphicsitem_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QGraphicsItemCache
 
struct  QGraphicsItemCache::DeviceData
 
class  QGraphicsItemPrivate
 
struct  QGraphicsItemPrivate::ExtraStruct
 
struct  QGraphicsItemPrivate::TransformData
 
struct  QGraphicsItemPaintInfo
 

Functions

 QT_REQUIRE_CONFIG (graphicsview)
 
 Q_DECLARE_TYPEINFO (QGraphicsItemPrivate::ExtraStruct, Q_RELOCATABLE_TYPE)
 
bool qt_closestItemFirst (const QGraphicsItem *item1, const QGraphicsItem *item2)
 Returns true if item1 is on top of item2.
 
bool qt_closestItemLast (const QGraphicsItem *item1, const QGraphicsItem *item2)
 Returns true if item2 is on top of item1.
 
bool qt_closestLeaf (const QGraphicsItem *item1, const QGraphicsItem *item2)
 
bool qt_notclosestLeaf (const QGraphicsItem *item1, const QGraphicsItem *item2)
 

Function Documentation

◆ Q_DECLARE_TYPEINFO()

Q_DECLARE_TYPEINFO ( QGraphicsItemPrivate::ExtraStruct  ,
Q_RELOCATABLE_TYPE   
)

◆ qt_closestItemFirst()

bool qt_closestItemFirst ( const QGraphicsItem item1,
const QGraphicsItem item2 
)
inline

Returns true if item1 is on top of item2.

The items don't need to be siblings.

Definition at line 560 of file qgraphicsitem_p.h.

Referenced by QGraphicsScenePrivate::gestureEventHandler(), qt_closestItemLast(), and QGraphicsSceneBspTreeIndexPrivate::sortItems().

+ Here is the caller graph for this function:

◆ qt_closestItemLast()

bool qt_closestItemLast ( const QGraphicsItem item1,
const QGraphicsItem item2 
)
inline

Returns true if item2 is on top of item1.

The items don't need to be siblings.

Definition at line 614 of file qgraphicsitem_p.h.

References qt_closestItemFirst().

Referenced by QGraphicsSceneBspTreeIndexPrivate::sortItems().

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

◆ qt_closestLeaf()

bool qt_closestLeaf ( const QGraphicsItem item1,
const QGraphicsItem item2 
)
inline

Definition at line 622 of file qgraphicsitem_p.h.

Referenced by QGraphicsSceneBspTreeIndexPrivate::_q_updateSortCache(), QGraphicsSceneBspTreeIndexPrivate::climbTree(), qt_notclosestLeaf(), and QGraphicsSceneBspTreeIndexPrivate::sortItems().

+ Here is the caller graph for this function:

◆ qt_notclosestLeaf()

bool qt_notclosestLeaf ( const QGraphicsItem item1,
const QGraphicsItem item2 
)
inline

Definition at line 639 of file qgraphicsitem_p.h.

References qt_closestLeaf().

Referenced by QGraphicsItemPrivate::ensureSortedChildren(), QGraphicsScenePrivate::ensureSortedTopLevelItems(), and QGraphicsSceneBspTreeIndexPrivate::sortItems().

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

◆ QT_REQUIRE_CONFIG()

QT_REQUIRE_CONFIG ( graphicsview  )