![]() |
Qt 6.x
The Qt SDK
|
#include <qgraphicsanchorlayout_p.h>
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) |
![]() | |
QSimplexVariable () | |
Public Attributes | |
AnchorVertex * | from |
AnchorVertex * | to |
qreal | minSize |
qreal | prefSize |
qreal | maxSize |
qreal | minPrefSize |
qreal | maxPrefSize |
qreal | sizeAtMinimum |
qreal | sizeAtPreferred |
qreal | sizeAtMaximum |
QGraphicsLayoutItem * | item |
QGraphicsAnchor * | graphicsAnchor |
uint | type: 2 |
uint | isLayoutAnchor: 1 |
uint | isCenterAnchor: 1 |
uint | isVertical: 1 |
uint | dependency: 2 |
![]() | |
qreal | result |
int | index |
Represents an edge (anchor) in the internal graph.
Definition at line 77 of file qgraphicsanchorlayout_p.h.
Enumerator | |
---|---|
Independent | |
Master | |
Slave |
Definition at line 84 of file qgraphicsanchorlayout_p.h.
Enumerator | |
---|---|
Normal | |
Sequential | |
Parallel |
Definition at line 78 of file qgraphicsanchorlayout_p.h.
|
inline |
Definition at line 90 of file qgraphicsanchorlayout_p.h.
|
virtual |
Definition at line 130 of file qgraphicsanchorlayout_p.cpp.
References QGraphicsAnchorPrivate::data, QGraphicsAnchorPrivate::get(), and graphicsAnchor.
void AnchorData::refreshSizeHints | ( | const QLayoutStyleInfo * | styleInfo = nullptr | ) |
Definition at line 142 of file qgraphicsanchorlayout_p.cpp.
References applySizePolicy(), QSizePolicy::controlType(), QLayoutStyleInfo::defaultSpacing(), QGraphicsAnchorLayoutPrivate::edgeOrientation(), QGraphicsLayoutItem::effectiveSizeHint(), from, QGraphicsAnchorPrivate::get(), graphicsAnchor, QGraphicsAnchorPrivate::hasSize, QSizeF::height(), QSizePolicy::horizontalPolicy(), isCenterAnchor, isLayoutAnchor, isVertical, item, QtGraphicsAnchorLayout::AnchorVertex::m_edge, QtGraphicsAnchorLayout::AnchorVertex::m_item, Qt::MaximumSize, maxPrefSize, maxSize, Qt::MinimumSize, minPrefSize, minSize, QLayoutStyleInfo::perItemSpacing(), policy, Qt::PreferredSize, QGraphicsAnchorPrivate::preferredSize, prefSize, Q_ASSERT, QWIDGETSIZE_MAX, sizeAtMaximum, sizeAtMinimum, sizeAtPreferred, QGraphicsAnchorPrivate::sizePolicy, QGraphicsLayoutItem::sizePolicy(), to, QSizePolicy::verticalPolicy(), and QSizeF::width().
Referenced by QGraphicsAnchorLayoutPrivate::refreshAllSizeHints().
|
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().
uint QtGraphicsAnchorLayout::AnchorData::dependency |
Definition at line 145 of file qgraphicsanchorlayout_p.h.
Referenced by QGraphicsAnchorLayoutPrivate::constraintsFromSizeHints().
AnchorVertex* QtGraphicsAnchorLayout::AnchorData::from |
Definition at line 111 of file qgraphicsanchorlayout_p.h.
Referenced by QtGraphicsAnchorLayout::ParallelAnchorData::ParallelAnchorData(), QGraphicsAnchorLayoutPrivate::addAnchorMaybeParallel(), QtGraphicsAnchorLayout::SequentialAnchorData::calculateSizeHints(), QGraphicsAnchorLayoutPrivate::constraintsFromSizeHints(), createSequence(), QGraphicsAnchorLayoutPrivate::findPaths(), QGraphicsAnchorLayoutPrivate::interpolateEdge(), refreshSizeHints(), QGraphicsAnchorLayoutPrivate::replaceVertex(), QGraphicsAnchorLayoutPrivate::restoreSimplifiedAnchor(), QGraphicsAnchorLayoutPrivate::restoreVertices(), QtGraphicsAnchorLayout::ParallelAnchorData::secondForward(), and QtGraphicsAnchorLayout::SequentialAnchorData::updateChildrenSizes().
QGraphicsAnchor* QtGraphicsAnchorLayout::AnchorData::graphicsAnchor |
Definition at line 139 of file qgraphicsanchorlayout_p.h.
Referenced by ~AnchorData(), and refreshSizeHints().
uint QtGraphicsAnchorLayout::AnchorData::isCenterAnchor |
Definition at line 143 of file qgraphicsanchorlayout_p.h.
Referenced by QGraphicsAnchorLayoutPrivate::addAnchorMaybeParallel(), refreshSizeHints(), QGraphicsAnchorLayoutPrivate::restoreSimplifiedConstraints(), and QGraphicsAnchorLayoutPrivate::simplifyGraphIteration().
uint QtGraphicsAnchorLayout::AnchorData::isLayoutAnchor |
Definition at line 142 of file qgraphicsanchorlayout_p.h.
Referenced by QtGraphicsAnchorLayout::ParallelAnchorData::calculateSizeHints(), refreshSizeHints(), and QGraphicsAnchorLayoutPrivate::solvePreferred().
uint QtGraphicsAnchorLayout::AnchorData::isVertical |
Definition at line 144 of file qgraphicsanchorlayout_p.h.
Referenced by QtGraphicsAnchorLayout::ParallelAnchorData::ParallelAnchorData(), QtGraphicsAnchorLayout::SequentialAnchorData::SequentialAnchorData(), QGraphicsAnchorLayoutPrivate::addAnchorMaybeParallel(), QGraphicsAnchorLayoutPrivate::interpolateEdge(), refreshSizeHints(), and QGraphicsAnchorLayoutPrivate::restoreSimplifiedAnchor().
QGraphicsLayoutItem* QtGraphicsAnchorLayout::AnchorData::item |
Definition at line 138 of file qgraphicsanchorlayout_p.h.
Referenced by QGraphicsAnchorLayoutPrivate::identifyNonFloatItems_helper(), and refreshSizeHints().
qreal QtGraphicsAnchorLayout::AnchorData::maxPrefSize |
Definition at line 125 of file qgraphicsanchorlayout_p.h.
Referenced by QtGraphicsAnchorLayout::SequentialAnchorData::calculateSizeHints(), QtGraphicsAnchorLayout::ParallelAnchorData::calculateSizeHints(), refreshSizeHints(), QGraphicsAnchorLayoutPrivate::solvePreferred(), and QtGraphicsAnchorLayout::SequentialAnchorData::updateChildrenSizes().
qreal QtGraphicsAnchorLayout::AnchorData::maxSize |
Definition at line 122 of file qgraphicsanchorlayout_p.h.
Referenced by QtGraphicsAnchorLayout::SequentialAnchorData::calculateSizeHints(), QtGraphicsAnchorLayout::ParallelAnchorData::calculateSizeHints(), QGraphicsAnchorLayoutPrivate::calculateTrunk(), QGraphicsAnchorLayoutPrivate::constraintsFromSizeHints(), refreshSizeHints(), QGraphicsAnchorLayoutPrivate::solvePreferred(), and QtGraphicsAnchorLayout::SequentialAnchorData::updateChildrenSizes().
qreal QtGraphicsAnchorLayout::AnchorData::minPrefSize |
Definition at line 124 of file qgraphicsanchorlayout_p.h.
Referenced by QtGraphicsAnchorLayout::SequentialAnchorData::calculateSizeHints(), QtGraphicsAnchorLayout::ParallelAnchorData::calculateSizeHints(), refreshSizeHints(), QGraphicsAnchorLayoutPrivate::solvePreferred(), and QtGraphicsAnchorLayout::SequentialAnchorData::updateChildrenSizes().
qreal QtGraphicsAnchorLayout::AnchorData::minSize |
Definition at line 120 of file qgraphicsanchorlayout_p.h.
Referenced by QtGraphicsAnchorLayout::SequentialAnchorData::calculateSizeHints(), QtGraphicsAnchorLayout::ParallelAnchorData::calculateSizeHints(), QGraphicsAnchorLayoutPrivate::calculateTrunk(), QGraphicsAnchorLayoutPrivate::constraintsFromSizeHints(), refreshSizeHints(), QGraphicsAnchorLayoutPrivate::solvePreferred(), and QtGraphicsAnchorLayout::SequentialAnchorData::updateChildrenSizes().
qreal QtGraphicsAnchorLayout::AnchorData::prefSize |
Definition at line 121 of file qgraphicsanchorlayout_p.h.
Referenced by QtGraphicsAnchorLayout::SequentialAnchorData::calculateSizeHints(), QtGraphicsAnchorLayout::ParallelAnchorData::calculateSizeHints(), QGraphicsAnchorLayoutPrivate::calculateTrunk(), refreshSizeHints(), QGraphicsAnchorLayoutPrivate::solvePreferred(), and QtGraphicsAnchorLayout::SequentialAnchorData::updateChildrenSizes().
qreal QtGraphicsAnchorLayout::AnchorData::sizeAtMaximum |
Definition at line 133 of file qgraphicsanchorlayout_p.h.
Referenced by QGraphicsAnchorLayoutPrivate::calculateNonTrunk(), QtGraphicsAnchorLayout::SequentialAnchorData::calculateSizeHints(), QtGraphicsAnchorLayout::ParallelAnchorData::calculateSizeHints(), QGraphicsAnchorLayoutPrivate::calculateTrunk(), QGraphicsAnchorLayoutPrivate::interpolateEdge(), refreshSizeHints(), QGraphicsAnchorLayoutPrivate::solveMinMax(), QtGraphicsAnchorLayout::SequentialAnchorData::updateChildrenSizes(), and QtGraphicsAnchorLayout::ParallelAnchorData::updateChildrenSizes().
qreal QtGraphicsAnchorLayout::AnchorData::sizeAtMinimum |
Definition at line 131 of file qgraphicsanchorlayout_p.h.
Referenced by QGraphicsAnchorLayoutPrivate::calculateNonTrunk(), QtGraphicsAnchorLayout::SequentialAnchorData::calculateSizeHints(), QtGraphicsAnchorLayout::ParallelAnchorData::calculateSizeHints(), QGraphicsAnchorLayoutPrivate::calculateTrunk(), QGraphicsAnchorLayoutPrivate::interpolateEdge(), refreshSizeHints(), QGraphicsAnchorLayoutPrivate::solveMinMax(), QtGraphicsAnchorLayout::SequentialAnchorData::updateChildrenSizes(), and QtGraphicsAnchorLayout::ParallelAnchorData::updateChildrenSizes().
qreal QtGraphicsAnchorLayout::AnchorData::sizeAtPreferred |
Definition at line 132 of file qgraphicsanchorlayout_p.h.
Referenced by QGraphicsAnchorLayoutPrivate::calculateNonTrunk(), QtGraphicsAnchorLayout::SequentialAnchorData::calculateSizeHints(), QtGraphicsAnchorLayout::ParallelAnchorData::calculateSizeHints(), QGraphicsAnchorLayoutPrivate::calculateTrunk(), QGraphicsAnchorLayoutPrivate::interpolateEdge(), refreshSizeHints(), QGraphicsAnchorLayoutPrivate::solvePreferred(), QtGraphicsAnchorLayout::SequentialAnchorData::updateChildrenSizes(), and QtGraphicsAnchorLayout::ParallelAnchorData::updateChildrenSizes().
AnchorVertex* QtGraphicsAnchorLayout::AnchorData::to |
Definition at line 112 of file qgraphicsanchorlayout_p.h.
Referenced by QtGraphicsAnchorLayout::ParallelAnchorData::ParallelAnchorData(), QGraphicsAnchorLayoutPrivate::addAnchorMaybeParallel(), QtGraphicsAnchorLayout::SequentialAnchorData::calculateSizeHints(), createSequence(), QGraphicsAnchorLayoutPrivate::interpolateEdge(), refreshSizeHints(), QGraphicsAnchorLayoutPrivate::replaceVertex(), QGraphicsAnchorLayoutPrivate::restoreSimplifiedAnchor(), and QGraphicsAnchorLayoutPrivate::restoreVertices().
uint QtGraphicsAnchorLayout::AnchorData::type |
Definition at line 141 of file qgraphicsanchorlayout_p.h.
Referenced by QGraphicsAnchorLayoutPrivate::identifyNonFloatItems_helper(), QGraphicsAnchorLayoutPrivate::restoreSimplifiedAnchor(), and QGraphicsAnchorLayoutPrivate::restoreSimplifiedGraph().