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::ParallelAnchorData Struct Reference

#include <qgraphicsanchorlayout_p.h>

+ Inheritance diagram for QtGraphicsAnchorLayout::ParallelAnchorData:
+ Collaboration diagram for QtGraphicsAnchorLayout::ParallelAnchorData:

Public Member Functions

 ParallelAnchorData (AnchorData *first, AnchorData *second)
 
virtual void updateChildrenSizes () override
 
bool calculateSizeHints ()
 
bool secondForward () const
 
- Public Member Functions inherited from QtGraphicsAnchorLayout::AnchorData
 AnchorData ()
 
virtual ~AnchorData ()
 
void refreshSizeHints (const QLayoutStyleInfo *styleInfo=nullptr)
 
- Public Member Functions inherited from QSimplexVariable
 QSimplexVariable ()
 

Public Attributes

AnchorDatafirstEdge
 
AnchorDatasecondEdge
 
QList< QSimplexConstraint * > m_firstConstraints
 
QList< QSimplexConstraint * > m_secondConstraints
 
- Public Attributes inherited from QtGraphicsAnchorLayout::AnchorData
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
 

Additional Inherited Members

- Public Types inherited from QtGraphicsAnchorLayout::AnchorData
enum  Type { Normal = 0 , Sequential , Parallel }
 
enum  Dependency { Independent = 0 , Master , Slave }
 

Detailed Description

Definition at line 175 of file qgraphicsanchorlayout_p.h.

Constructor & Destructor Documentation

◆ ParallelAnchorData()

QtGraphicsAnchorLayout::ParallelAnchorData::ParallelAnchorData ( AnchorData * first,
AnchorData * second )
inline

Definition at line 177 of file qgraphicsanchorlayout_p.h.

References QtGraphicsAnchorLayout::AnchorData::from, QString::fromLatin1(), QtGraphicsAnchorLayout::AnchorData::isVertical, QtGraphicsAnchorLayout::AnchorData::Parallel, Q_ASSERT, and QtGraphicsAnchorLayout::AnchorData::to.

+ Here is the call graph for this function:

Member Function Documentation

◆ calculateSizeHints()

◆ secondForward()

bool QtGraphicsAnchorLayout::ParallelAnchorData::secondForward ( ) const
inline

Definition at line 199 of file qgraphicsanchorlayout_p.h.

References firstEdge, QtGraphicsAnchorLayout::AnchorData::from, and secondEdge.

Referenced by calculateSizeHints(), and updateChildrenSizes().

+ Here is the caller graph for this function:

◆ updateChildrenSizes()

void ParallelAnchorData::updateChildrenSizes ( )
overridevirtual

Reimplemented from QtGraphicsAnchorLayout::AnchorData.

Definition at line 234 of file qgraphicsanchorlayout_p.cpp.

References firstEdge, secondEdge, secondForward(), QtGraphicsAnchorLayout::AnchorData::sizeAtMaximum, QtGraphicsAnchorLayout::AnchorData::sizeAtMinimum, QtGraphicsAnchorLayout::AnchorData::sizeAtPreferred, and QtGraphicsAnchorLayout::AnchorData::updateChildrenSizes().

+ Here is the call graph for this function:

Member Data Documentation

◆ firstEdge

AnchorData* QtGraphicsAnchorLayout::ParallelAnchorData::firstEdge

◆ m_firstConstraints

QList<QSimplexConstraint *> QtGraphicsAnchorLayout::ParallelAnchorData::m_firstConstraints

Definition at line 209 of file qgraphicsanchorlayout_p.h.

◆ m_secondConstraints

QList<QSimplexConstraint *> QtGraphicsAnchorLayout::ParallelAnchorData::m_secondConstraints

Definition at line 210 of file qgraphicsanchorlayout_p.h.

◆ secondEdge

AnchorData* QtGraphicsAnchorLayout::ParallelAnchorData::secondEdge

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