QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskGridLayoutEngine Class Reference

Detailed Description

Definition at line 19 of file QskGridLayoutEngine.h.

Inheritance diagram for QskGridLayoutEngine:

Public Member Functions

int count () const override final
 
bool setStretchFactor (int pos, int stretch, Qt::Orientation)
 
int stretchFactor (int pos, Qt::Orientation) const
 
bool setRowSizeHint (int row, Qt::SizeHint, qreal height)
 
qreal rowSizeHint (int row, Qt::SizeHint) const
 
bool setColumnSizeHint (int column, Qt::SizeHint, qreal width)
 
qreal columnSizeHint (int column, Qt::SizeHint) const
 
int insertItem (QQuickItem *, const QRect &grid)
 
int insertSpacer (const QSizeF &, const QRect &grid)
 
bool removeAt (int index)
 
bool clear ()
 
QQuickItem * itemAt (int index) const
 
QSizeF spacerAt (int index) const
 
QQuickItem * itemAt (int row, int column) const
 
int indexAt (int row, int column) const
 
int indexOf (const QQuickItem *) const
 
bool setGridAt (int index, const QRect &)
 
QRect gridAt (int index) const
 
QRect effectiveGridAt (int index) const
 
void transpose ()
 
- Public Member Functions inherited from QskLayoutEngine2D
int rowCount () const
 
int columnCount () const
 
bool setVisualDirection (Qt::LayoutDirection)
 
Qt::LayoutDirection visualDirection () const
 
bool setDefaultAlignment (Qt::Alignment)
 
Qt::Alignment defaultAlignment () const
 
bool setExtraSpacingAt (Qt::Edges edges)
 
Qt::Edges extraSpacingAt () const
 
bool setSpacing (qreal spacing, Qt::Orientations)
 
qreal spacing (Qt::Orientation) const
 
qreal defaultSpacing (Qt::Orientation) const
 
void invalidate ()
 
qreal widthForHeight (qreal height) const
 
qreal heightForWidth (qreal width) const
 
QSizeF sizeHint (Qt::SizeHint, const QSizeF &constraint) const
 
void setGeometries (const QRectF &)
 

Additional Inherited Members

- Protected Types inherited from QskLayoutEngine2D
enum  { ElementCache = 1 << 0 , LayoutCache = 1 << 1 }
 
- Protected Member Functions inherited from QskLayoutEngine2D
QRectF geometryAt (const QskLayoutElement *, const QRect &grid) const
 
void invalidate (int what)
 

Constructor & Destructor Documentation

◆ QskGridLayoutEngine()

QskGridLayoutEngine::QskGridLayoutEngine ( )

Definition at line 389 of file QskGridLayoutEngine.cpp.

◆ ~QskGridLayoutEngine()

QskGridLayoutEngine::~QskGridLayoutEngine ( )
override

Definition at line 394 of file QskGridLayoutEngine.cpp.

Member Function Documentation

◆ clear()

bool QskGridLayoutEngine::clear ( )

Definition at line 521 of file QskGridLayoutEngine.cpp.

◆ columnSizeHint()

qreal QskGridLayoutEngine::columnSizeHint ( int  column,
Qt::SizeHint  which 
) const

Definition at line 469 of file QskGridLayoutEngine.cpp.

◆ count()

int QskGridLayoutEngine::count ( ) const
finaloverridevirtual

Implements QskLayoutEngine2D.

Definition at line 398 of file QskGridLayoutEngine.cpp.

◆ effectiveCount()

int QskGridLayoutEngine::effectiveCount ( Qt::Orientation  orientation) const
overrideprivatevirtual

Implements QskLayoutEngine2D.

Definition at line 659 of file QskGridLayoutEngine.cpp.

◆ effectiveGridAt()

QRect QskGridLayoutEngine::effectiveGridAt ( int  index) const

Definition at line 617 of file QskGridLayoutEngine.cpp.

◆ gridAt()

QRect QskGridLayoutEngine::gridAt ( int  index) const

Definition at line 609 of file QskGridLayoutEngine.cpp.

◆ indexAt()

int QskGridLayoutEngine::indexAt ( int  row,
int  column 
) const

Definition at line 533 of file QskGridLayoutEngine.cpp.

◆ indexOf()

int QskGridLayoutEngine::indexOf ( const QQuickItem *  item) const

Definition at line 561 of file QskGridLayoutEngine.cpp.

◆ insertItem()

int QskGridLayoutEngine::insertItem ( QQuickItem *  item,
const QRect &  grid 
)

Definition at line 475 of file QskGridLayoutEngine.cpp.

◆ insertSpacer()

int QskGridLayoutEngine::insertSpacer ( const QSizeF &  spacing,
const QRect &  grid 
)

Definition at line 481 of file QskGridLayoutEngine.cpp.

◆ invalidateElementCache()

void QskGridLayoutEngine::invalidateElementCache ( )
overrideprivatevirtual

Implements QskLayoutEngine2D.

Definition at line 625 of file QskGridLayoutEngine.cpp.

◆ itemAt() [1/2]

QQuickItem * QskGridLayoutEngine::itemAt ( int  index) const

Definition at line 548 of file QskGridLayoutEngine.cpp.

◆ itemAt() [2/2]

QQuickItem * QskGridLayoutEngine::itemAt ( int  row,
int  column 
) const

Definition at line 588 of file QskGridLayoutEngine.cpp.

◆ layoutItems()

void QskGridLayoutEngine::layoutItems ( )
overrideprivatevirtual

Implements QskLayoutEngine2D.

Definition at line 629 of file QskGridLayoutEngine.cpp.

◆ removeAt()

bool QskGridLayoutEngine::removeAt ( int  index)

Definition at line 486 of file QskGridLayoutEngine.cpp.

◆ rowSizeHint()

qreal QskGridLayoutEngine::rowSizeHint ( int  row,
Qt::SizeHint  which 
) const

Definition at line 450 of file QskGridLayoutEngine.cpp.

◆ setColumnSizeHint()

bool QskGridLayoutEngine::setColumnSizeHint ( int  column,
Qt::SizeHint  which,
qreal  width 
)

Definition at line 456 of file QskGridLayoutEngine.cpp.

◆ setGridAt()

bool QskGridLayoutEngine::setGridAt ( int  index,
const QRect &  grid 
)

Definition at line 593 of file QskGridLayoutEngine.cpp.

◆ setRowSizeHint()

bool QskGridLayoutEngine::setRowSizeHint ( int  row,
Qt::SizeHint  which,
qreal  height 
)

Definition at line 437 of file QskGridLayoutEngine.cpp.

◆ setStretchFactor()

bool QskGridLayoutEngine::setStretchFactor ( int  pos,
int  stretch,
Qt::Orientation  orientation 
)

Definition at line 403 of file QskGridLayoutEngine.cpp.

◆ setupChain()

void QskGridLayoutEngine::setupChain ( Qt::Orientation  orientation,
const QskLayoutChain::Segments &  constraints,
QskLayoutChain chain 
) const
finaloverrideprivatevirtual

Implements QskLayoutEngine2D.

Definition at line 666 of file QskGridLayoutEngine.cpp.

◆ sizePolicyAt()

QskSizePolicy QskGridLayoutEngine::sizePolicyAt ( int  index) const
finaloverrideprivatevirtual

Implements QskLayoutEngine2D.

Definition at line 556 of file QskGridLayoutEngine.cpp.

◆ spacerAt()

QSizeF QskGridLayoutEngine::spacerAt ( int  index) const

Definition at line 580 of file QskGridLayoutEngine.cpp.

◆ stretchFactor()

int QskGridLayoutEngine::stretchFactor ( int  pos,
Qt::Orientation  orientation 
) const

Definition at line 430 of file QskGridLayoutEngine.cpp.

◆ transpose()

void QskGridLayoutEngine::transpose ( )

Definition at line 648 of file QskGridLayoutEngine.cpp.