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 <qgridlayoutengine_p.h>
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< QGridLayoutBox > | boxes |
MultiCellMap | multiCellMap |
QList< int > | stretches |
QList< qreal > | spacings |
bool | hasIgnoreFlag |
Definition at line 201 of file qgridlayoutengine_p.h.
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().
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().
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.
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().
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().
QList<QGridLayoutBox> QGridLayoutRowData::boxes |
Definition at line 217 of file qgridlayoutengine_p.h.
Referenced by calculateGeometries(), distributeMultiCells(), reset(), stealBox(), and totalBox().
bool QGridLayoutRowData::hasIgnoreFlag |
Definition at line 221 of file qgridlayoutengine_p.h.
Referenced by calculateGeometries(), and reset().
QBitArray QGridLayoutRowData::ignore |
Definition at line 216 of file qgridlayoutengine_p.h.
Referenced by calculateGeometries(), reset(), stealBox(), and totalBox().
MultiCellMap QGridLayoutRowData::multiCellMap |
Definition at line 218 of file qgridlayoutengine_p.h.
Referenced by distributeMultiCells(), and reset().
Definition at line 220 of file qgridlayoutengine_p.h.
Referenced by reset(), stealBox(), and totalBox().
QList<int> QGridLayoutRowData::stretches |
Definition at line 219 of file qgridlayoutengine_p.h.
Referenced by calculateGeometries(), distributeMultiCells(), reset(), and totalBox().