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
QGridLayoutRowData Class Reference

#include <qgridlayoutengine_p.h>

+ Collaboration diagram for QGridLayoutRowData:

Public Member Functions

void reset (int count)
 
void distributeMultiCells (const QGridLayoutRowInfo &rowInfo, bool snapToPixelGrid)
 
void calculateGeometries (int start, int end, qreal targetSize, qreal *positions, qreal *sizes, qreal *descents, const QGridLayoutBox &totalBox, const QGridLayoutRowInfo &rowInfo, bool snapToPixelGrid)
 
QGridLayoutBox totalBox (int start, int end) const
 
void stealBox (int start, int end, int which, qreal *positions, qreal *sizes)
 

Public Attributes

QBitArray ignore
 
QList< QGridLayoutBoxboxes
 
MultiCellMap multiCellMap
 
QList< int > stretches
 
QList< qrealspacings
 
bool hasIgnoreFlag
 

Detailed Description

Definition at line 201 of file qgridlayoutengine_p.h.

Member Function Documentation

◆ calculateGeometries()

void QGridLayoutRowData::calculateGeometries ( int start,
int end,
qreal targetSize,
qreal * positions,
qreal * sizes,
qreal * descents,
const QGridLayoutBox & totalBox,
const QGridLayoutRowInfo & rowInfo,
bool snapToPixelGrid )

Definition at line 172 of file qgridlayoutengine.cpp.

References QList< T >::at(), boxes, fixedDescent(), growthFactorBelowPreferredSize(), hasIgnoreFlag, i, ignore, LAYOUTITEMSIZE_MAX, MaximumSize, MinimumSize, positions, PreferredSize, Q_ASSERT, QGridLayoutBox::q_maximumSize, QGridLayoutBox::q_minimumSize, QGridLayoutBox::q_preferredSize, qMax(), qMin(), stealBox(), stretches, QBitArray::testBit(), and totalBox().

Referenced by distributeMultiCells(), and QGridLayoutEngine::sizeHint().

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

◆ distributeMultiCells()

void QGridLayoutRowData::distributeMultiCells ( const QGridLayoutRowInfo & rowInfo,
bool snapToPixelGrid )

Definition at line 129 of file qgridlayoutengine.cpp.

References boxes, calculateGeometries(), QMap< Key, T >::clear(), compare(), QMap< Key, T >::constBegin(), QMap< Key, T >::constEnd(), i, j, multiCellMap, NSizes, qMax(), stretches, and totalBox().

+ Here is the call graph for this function:

◆ reset()

void QGridLayoutRowData::reset ( int count)

Definition at line 119 of file qgridlayoutengine.cpp.

References boxes, QMap< Key, T >::clear(), QBitArray::fill(), QList< T >::fill(), hasIgnoreFlag, ignore, multiCellMap, spacings, and stretches.

+ Here is the call graph for this function:

◆ stealBox()

void QGridLayoutRowData::stealBox ( int start,
int end,
int which,
qreal * positions,
qreal * sizes )

Definition at line 435 of file qgridlayoutengine.cpp.

References QList< T >::at(), boxes, i, ignore, positions, QGridLayoutBox::q_sizes(), spacings, and QBitArray::testBit().

Referenced by calculateGeometries().

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

◆ totalBox()

QGridLayoutBox QGridLayoutRowData::totalBox ( int start,
int end ) const

Definition at line 419 of file qgridlayoutengine.cpp.

References QList< T >::at(), boxes, i, ignore, spacings, stretches, and QBitArray::testBit().

Referenced by calculateGeometries(), and distributeMultiCells().

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

Member Data Documentation

◆ boxes

QList<QGridLayoutBox> QGridLayoutRowData::boxes

◆ hasIgnoreFlag

bool QGridLayoutRowData::hasIgnoreFlag

Definition at line 221 of file qgridlayoutengine_p.h.

Referenced by calculateGeometries(), and reset().

◆ ignore

QBitArray QGridLayoutRowData::ignore

Definition at line 216 of file qgridlayoutengine_p.h.

Referenced by calculateGeometries(), reset(), stealBox(), and totalBox().

◆ multiCellMap

MultiCellMap QGridLayoutRowData::multiCellMap

Definition at line 218 of file qgridlayoutengine_p.h.

Referenced by distributeMultiCells(), and reset().

◆ spacings

QList<qreal> QGridLayoutRowData::spacings

Definition at line 220 of file qgridlayoutengine_p.h.

Referenced by reset(), stealBox(), and totalBox().

◆ stretches

QList<int> QGridLayoutRowData::stretches

Definition at line 219 of file qgridlayoutengine_p.h.

Referenced by calculateGeometries(), distributeMultiCells(), reset(), and totalBox().


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