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>.
|
#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) |
Public Member Functions inherited from QSimplexVariable | |
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 |
Public Attributes inherited from QSimplexVariable | |
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::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.
AnchorVertex* QtGraphicsAnchorLayout::AnchorData::from |
Definition at line 111 of file qgraphicsanchorlayout_p.h.
Referenced by QtGraphicsAnchorLayout::ParallelAnchorData::ParallelAnchorData(), QtGraphicsAnchorLayout::SequentialAnchorData::calculateSizeHints(), createSequence(), QGraphicsAnchorLayoutPrivate::findPaths(), QGraphicsAnchorLayoutPrivate::interpolateEdge(), refreshSizeHints(), QGraphicsAnchorLayoutPrivate::restoreSimplifiedAnchor(), 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(), and refreshSizeHints().
uint QtGraphicsAnchorLayout::AnchorData::isLayoutAnchor |
Definition at line 142 of file qgraphicsanchorlayout_p.h.
Referenced by QtGraphicsAnchorLayout::ParallelAnchorData::calculateSizeHints(), and refreshSizeHints().
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 refreshSizeHints().
qreal QtGraphicsAnchorLayout::AnchorData::maxPrefSize |
qreal QtGraphicsAnchorLayout::AnchorData::maxSize |
qreal QtGraphicsAnchorLayout::AnchorData::minPrefSize |
qreal QtGraphicsAnchorLayout::AnchorData::minSize |
qreal QtGraphicsAnchorLayout::AnchorData::prefSize |
qreal QtGraphicsAnchorLayout::AnchorData::sizeAtMaximum |
Definition at line 133 of file qgraphicsanchorlayout_p.h.
Referenced by QtGraphicsAnchorLayout::SequentialAnchorData::calculateSizeHints(), QtGraphicsAnchorLayout::ParallelAnchorData::calculateSizeHints(), 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 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 QtGraphicsAnchorLayout::SequentialAnchorData::calculateSizeHints(), QtGraphicsAnchorLayout::ParallelAnchorData::calculateSizeHints(), QGraphicsAnchorLayoutPrivate::interpolateEdge(), refreshSizeHints(), 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(), createSequence(), QGraphicsAnchorLayoutPrivate::interpolateEdge(), refreshSizeHints(), and QGraphicsAnchorLayoutPrivate::restoreSimplifiedAnchor().
uint QtGraphicsAnchorLayout::AnchorData::type |
Definition at line 141 of file qgraphicsanchorlayout_p.h.
Referenced by QGraphicsAnchorLayoutPrivate::restoreSimplifiedAnchor(), and QGraphicsAnchorLayoutPrivate::restoreSimplifiedGraph().