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

Detailed Description

Definition at line 19 of file QskLinearLayoutEngine.h.

Inheritance diagram for QskLinearLayoutEngine:

Public Member Functions

 QskLinearLayoutEngine (Qt::Orientation, uint dimension)
 
Qt::Orientation orientation () const
 
bool setOrientation (Qt::Orientation)
 
bool setDimension (uint dimension)
 
uint dimension () const
 
int count () const override final
 
int insertItem (QQuickItem *, int index)
 
int addItem (QQuickItem *)
 
int insertSpacerAt (int index, qreal spacing)
 
int addSpacer (qreal spacing)
 
bool removeAt (int index)
 
bool clear ()
 
int indexOf (const QQuickItem *) const
 
QQuickItem * itemAt (int index) const
 
qreal spacerAt (int index) const
 
bool setStretchFactorAt (int index, int stretchFactor)
 
int stretchFactorAt (int index) const
 
- 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

◆ QskLinearLayoutEngine()

QskLinearLayoutEngine::QskLinearLayoutEngine ( Qt::Orientation  orientation,
uint  dimension 
)

Definition at line 190 of file QskLinearLayoutEngine.cpp.

◆ ~QskLinearLayoutEngine()

QskLinearLayoutEngine::~QskLinearLayoutEngine ( )
override

Definition at line 196 of file QskLinearLayoutEngine.cpp.

Member Function Documentation

◆ addItem()

int QskLinearLayoutEngine::addItem ( QQuickItem *  item)
inline

Definition at line 68 of file QskLinearLayoutEngine.h.

◆ addSpacer()

int QskLinearLayoutEngine::addSpacer ( qreal  spacing)
inline

Definition at line 73 of file QskLinearLayoutEngine.h.

◆ clear()

bool QskLinearLayoutEngine::clear ( )

Definition at line 331 of file QskLinearLayoutEngine.cpp.

◆ count()

int QskLinearLayoutEngine::count ( ) const
finaloverridevirtual

Implements QskLayoutEngine2D.

Definition at line 239 of file QskLinearLayoutEngine.cpp.

◆ dimension()

uint QskLinearLayoutEngine::dimension ( ) const

Definition at line 234 of file QskLinearLayoutEngine.cpp.

◆ effectiveCount()

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

Implements QskLayoutEngine2D.

Definition at line 425 of file QskLinearLayoutEngine.cpp.

◆ indexOf()

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

Definition at line 347 of file QskLinearLayoutEngine.cpp.

◆ insertItem()

int QskLinearLayoutEngine::insertItem ( QQuickItem *  item,
int  index 
)

Definition at line 271 of file QskLinearLayoutEngine.cpp.

◆ insertSpacerAt()

int QskLinearLayoutEngine::insertSpacerAt ( int  index,
qreal  spacing 
)

Definition at line 289 of file QskLinearLayoutEngine.cpp.

◆ invalidateElementCache()

void QskLinearLayoutEngine::invalidateElementCache ( )
overrideprivatevirtual

Implements QskLayoutEngine2D.

Definition at line 459 of file QskLinearLayoutEngine.cpp.

◆ itemAt()

QQuickItem * QskLinearLayoutEngine::itemAt ( int  index) const

Definition at line 366 of file QskLinearLayoutEngine.cpp.

◆ layoutItems()

void QskLinearLayoutEngine::layoutItems ( )
overrideprivatevirtual

Implements QskLayoutEngine2D.

Definition at line 382 of file QskLinearLayoutEngine.cpp.

◆ orientation()

Qt::Orientation QskLinearLayoutEngine::orientation ( ) const

Definition at line 213 of file QskLinearLayoutEngine.cpp.

◆ removeAt()

bool QskLinearLayoutEngine::removeAt ( int  index)

Definition at line 309 of file QskLinearLayoutEngine.cpp.

◆ setDimension()

bool QskLinearLayoutEngine::setDimension ( uint  dimension)

Definition at line 218 of file QskLinearLayoutEngine.cpp.

◆ setOrientation()

bool QskLinearLayoutEngine::setOrientation ( Qt::Orientation  orientation)

Definition at line 200 of file QskLinearLayoutEngine.cpp.

◆ setStretchFactorAt()

bool QskLinearLayoutEngine::setStretchFactorAt ( int  index,
int  stretchFactor 
)

Definition at line 244 of file QskLinearLayoutEngine.cpp.

◆ setupChain()

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

Implements QskLayoutEngine2D.

Definition at line 464 of file QskLinearLayoutEngine.cpp.

◆ sizePolicyAt()

QskSizePolicy QskLinearLayoutEngine::sizePolicyAt ( int  index) const
finaloverrideprivatevirtual

Implements QskLayoutEngine2D.

Definition at line 342 of file QskLinearLayoutEngine.cpp.

◆ spacerAt()

qreal QskLinearLayoutEngine::spacerAt ( int  index) const

Definition at line 374 of file QskLinearLayoutEngine.cpp.

◆ stretchFactorAt()

int QskLinearLayoutEngine::stretchFactorAt ( int  index) const

Definition at line 263 of file QskLinearLayoutEngine.cpp.