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
QtGraphicsAnchorLayout::AnchorData Struct Reference

#include <qgraphicsanchorlayout_p.h>

+ Inheritance diagram for QtGraphicsAnchorLayout::AnchorData:
+ Collaboration diagram for QtGraphicsAnchorLayout::AnchorData:

Public Types

enum  Type { Normal = 0 , Sequential , Parallel }
 
enum  Dependency { Independent = 0 , Master , Slave }
 

Public Member Functions

 AnchorData ()
 
virtual ~AnchorData ()
 
virtual void updateChildrenSizes ()
 
void refreshSizeHints (const QLayoutStyleInfo *styleInfo=nullptr)
 
- Public Member Functions inherited from QSimplexVariable
 QSimplexVariable ()
 

Public Attributes

AnchorVertexfrom
 
AnchorVertexto
 
qreal minSize
 
qreal prefSize
 
qreal maxSize
 
qreal minPrefSize
 
qreal maxPrefSize
 
qreal sizeAtMinimum
 
qreal sizeAtPreferred
 
qreal sizeAtMaximum
 
QGraphicsLayoutItemitem
 
QGraphicsAnchorgraphicsAnchor
 
uint type: 2
 
uint isLayoutAnchor: 1
 
uint isCenterAnchor: 1
 
uint isVertical: 1
 
uint dependency: 2
 
- Public Attributes inherited from QSimplexVariable
qreal result
 
int index
 

Detailed Description

Represents an edge (anchor) in the internal graph.

Definition at line 77 of file qgraphicsanchorlayout_p.h.

Member Enumeration Documentation

◆ Dependency

Enumerator
Independent 
Master 
Slave 

Definition at line 84 of file qgraphicsanchorlayout_p.h.

◆ Type

Enumerator
Normal 
Sequential 
Parallel 

Definition at line 78 of file qgraphicsanchorlayout_p.h.

Constructor & Destructor Documentation

◆ AnchorData()

QtGraphicsAnchorLayout::AnchorData::AnchorData ( )
inline

Definition at line 90 of file qgraphicsanchorlayout_p.h.

◆ ~AnchorData()

AnchorData::~AnchorData ( )
virtual

Definition at line 130 of file qgraphicsanchorlayout_p.cpp.

References QGraphicsAnchorPrivate::get(), and graphicsAnchor.

+ Here is the call graph for this function:

Member Function Documentation

◆ refreshSizeHints()

◆ updateChildrenSizes()

virtual void QtGraphicsAnchorLayout::AnchorData::updateChildrenSizes ( )
inlinevirtual

Reimplemented in QtGraphicsAnchorLayout::SequentialAnchorData, and QtGraphicsAnchorLayout::ParallelAnchorData.

Definition at line 101 of file qgraphicsanchorlayout_p.h.

Referenced by QGraphicsAnchorLayoutPrivate::updateAnchorSizes(), and QtGraphicsAnchorLayout::ParallelAnchorData::updateChildrenSizes().

+ Here is the caller graph for this function:

Member Data Documentation

◆ dependency

uint QtGraphicsAnchorLayout::AnchorData::dependency

Definition at line 145 of file qgraphicsanchorlayout_p.h.

◆ from

◆ graphicsAnchor

QGraphicsAnchor* QtGraphicsAnchorLayout::AnchorData::graphicsAnchor

Definition at line 139 of file qgraphicsanchorlayout_p.h.

Referenced by ~AnchorData(), and refreshSizeHints().

◆ isCenterAnchor

uint QtGraphicsAnchorLayout::AnchorData::isCenterAnchor

◆ isLayoutAnchor

uint QtGraphicsAnchorLayout::AnchorData::isLayoutAnchor

◆ isVertical

◆ item

QGraphicsLayoutItem* QtGraphicsAnchorLayout::AnchorData::item

Definition at line 138 of file qgraphicsanchorlayout_p.h.

Referenced by refreshSizeHints().

◆ maxPrefSize

◆ maxSize

◆ minPrefSize

◆ minSize

◆ prefSize

◆ sizeAtMaximum

◆ sizeAtMinimum

◆ sizeAtPreferred

◆ to

◆ type

uint QtGraphicsAnchorLayout::AnchorData::type

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