Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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

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

Detailed Description

Represents an edge (anchor) in the internal graph.

Definition at line 78 of file qgraphicsanchorlayout_p.h.

Member Enumeration Documentation

◆ Dependency

Enumerator
Independent 
Master 
Slave 

Definition at line 87 of file qgraphicsanchorlayout_p.h.

◆ Type

Enumerator
Normal 
Sequential 
Parallel 

Definition at line 81 of file qgraphicsanchorlayout_p.h.

Constructor & Destructor Documentation

◆ AnchorData()

QtGraphicsAnchorLayout::AnchorData::AnchorData ( )
inline

Definition at line 93 of file qgraphicsanchorlayout_p.h.

References AnchorData(), from, item, and to.

Referenced by AnchorData(), QtGraphicsAnchorLayout::ParallelAnchorData::ParallelAnchorData(), and QtGraphicsAnchorLayout::SequentialAnchorData::SequentialAnchorData().

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

◆ ~AnchorData()

AnchorData::~AnchorData ( )
virtual

Definition at line 131 of file qgraphicsanchorlayout_p.cpp.

Member Function Documentation

◆ refreshSizeHints()

void AnchorData::refreshSizeHints ( const QLayoutStyleInfo * styleInfo = nullptr)

◆ updateChildrenSizes()

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

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

Definition at line 104 of file qgraphicsanchorlayout_p.h.

Referenced by QtGraphicsAnchorLayout::ParallelAnchorData::updateChildrenSizes().

Here is the caller graph for this function:

Member Data Documentation

◆ dependency

uint QtGraphicsAnchorLayout::AnchorData::dependency

Definition at line 148 of file qgraphicsanchorlayout_p.h.

◆ from

◆ graphicsAnchor

QGraphicsAnchor* QtGraphicsAnchorLayout::AnchorData::graphicsAnchor

Definition at line 142 of file qgraphicsanchorlayout_p.h.

◆ isCenterAnchor

uint QtGraphicsAnchorLayout::AnchorData::isCenterAnchor

Definition at line 146 of file qgraphicsanchorlayout_p.h.

◆ isLayoutAnchor

uint QtGraphicsAnchorLayout::AnchorData::isLayoutAnchor

Definition at line 145 of file qgraphicsanchorlayout_p.h.

◆ isVertical

uint QtGraphicsAnchorLayout::AnchorData::isVertical

Definition at line 147 of file qgraphicsanchorlayout_p.h.

◆ item

QGraphicsLayoutItem* QtGraphicsAnchorLayout::AnchorData::item

Definition at line 141 of file qgraphicsanchorlayout_p.h.

Referenced by AnchorData(), and refreshSizeHints().

◆ maxPrefSize

qreal QtGraphicsAnchorLayout::AnchorData::maxPrefSize

Definition at line 128 of file qgraphicsanchorlayout_p.h.

◆ maxSize

qreal QtGraphicsAnchorLayout::AnchorData::maxSize

Definition at line 125 of file qgraphicsanchorlayout_p.h.

◆ minPrefSize

qreal QtGraphicsAnchorLayout::AnchorData::minPrefSize

Definition at line 127 of file qgraphicsanchorlayout_p.h.

◆ minSize

qreal QtGraphicsAnchorLayout::AnchorData::minSize

Definition at line 123 of file qgraphicsanchorlayout_p.h.

◆ prefSize

qreal QtGraphicsAnchorLayout::AnchorData::prefSize

Definition at line 124 of file qgraphicsanchorlayout_p.h.

◆ sizeAtMaximum

qreal QtGraphicsAnchorLayout::AnchorData::sizeAtMaximum

Definition at line 136 of file qgraphicsanchorlayout_p.h.

◆ sizeAtMinimum

qreal QtGraphicsAnchorLayout::AnchorData::sizeAtMinimum

Definition at line 134 of file qgraphicsanchorlayout_p.h.

◆ sizeAtPreferred

qreal QtGraphicsAnchorLayout::AnchorData::sizeAtPreferred

Definition at line 135 of file qgraphicsanchorlayout_p.h.

◆ to

◆ type

uint QtGraphicsAnchorLayout::AnchorData::type

Definition at line 144 of file qgraphicsanchorlayout_p.h.


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