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

Detailed Description

Definition at line 23 of file QskSubcontrolLayoutEngine.h.

Inheritance diagram for QskSubcontrolLayoutEngine:

Classes

class  GraphicElement
 
class  LayoutElement
 
class  TextElement
 

Public Member Functions

 QskSubcontrolLayoutEngine (Qt::Orientation)
 
Qt::Orientation orientation () const
 
bool setOrientation (Qt::Orientation)
 
void setSpacing (qreal)
 
qreal spacing () const
 
void addElement (LayoutElement *)
 
LayoutElementelementAt (int) const
 
LayoutElementelement (QskAspect::Subcontrol) const
 
int count () const override final
 
void setGraphicTextElements (const QskSkinnable *, QskAspect::Subcontrol, const QString &text, QskAspect::Subcontrol, const QSizeF &graphicSize)
 
GraphicElementappendGraphicElement (const QskSkinnable *, QskAspect::Subcontrol, const QSizeF &)
 
TextElementappendTextElement (const QskSkinnable *, QskAspect::Subcontrol, const QString &)
 
void setFixedContent (QskAspect::Subcontrol, Qt::Orientation, Qt::Alignment)
 
QRectF subControlRect (QskAspect::Subcontrol) 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

◆ QskSubcontrolLayoutEngine()

QskSubcontrolLayoutEngine::QskSubcontrolLayoutEngine ( Qt::Orientation  orientation)
explicit

Definition at line 298 of file QskSubcontrolLayoutEngine.cpp.

◆ ~QskSubcontrolLayoutEngine()

QskSubcontrolLayoutEngine::~QskSubcontrolLayoutEngine ( )
override

Definition at line 304 of file QskSubcontrolLayoutEngine.cpp.

Member Function Documentation

◆ addElement()

void QskSubcontrolLayoutEngine::addElement ( LayoutElement element)

Definition at line 490 of file QskSubcontrolLayoutEngine.cpp.

◆ appendGraphicElement()

QskSubcontrolLayoutEngine::GraphicElement * QskSubcontrolLayoutEngine::appendGraphicElement ( const QskSkinnable skinnable,
QskAspect::Subcontrol  graphicSubcontrol,
const QSizeF &  graphicSize 
)

Definition at line 399 of file QskSubcontrolLayoutEngine.cpp.

◆ appendTextElement()

QskSubcontrolLayoutEngine::TextElement * QskSubcontrolLayoutEngine::appendTextElement ( const QskSkinnable skinnable,
QskAspect::Subcontrol  textSubcontrol,
const QString &  text 
)

Definition at line 419 of file QskSubcontrolLayoutEngine.cpp.

◆ count()

int QskSubcontrolLayoutEngine::count ( ) const
finaloverridevirtual

Implements QskLayoutEngine2D.

Definition at line 526 of file QskSubcontrolLayoutEngine.cpp.

◆ effectiveCount()

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

Implements QskLayoutEngine2D.

Definition at line 547 of file QskSubcontrolLayoutEngine.cpp.

◆ element()

QskSubcontrolLayoutEngine::LayoutElement * QskSubcontrolLayoutEngine::element ( QskAspect::Subcontrol  subControl) const

Definition at line 503 of file QskSubcontrolLayoutEngine.cpp.

◆ elementAt()

QskSubcontrolLayoutEngine::LayoutElement * QskSubcontrolLayoutEngine::elementAt ( int  index) const

Definition at line 495 of file QskSubcontrolLayoutEngine.cpp.

◆ invalidateElementCache()

void QskSubcontrolLayoutEngine::invalidateElementCache ( )
overrideprivatevirtual

Implements QskLayoutEngine2D.

Definition at line 565 of file QskSubcontrolLayoutEngine.cpp.

◆ layoutItems()

void QskSubcontrolLayoutEngine::layoutItems ( )
overrideprivatevirtual

Implements QskLayoutEngine2D.

Definition at line 531 of file QskSubcontrolLayoutEngine.cpp.

◆ orientation()

Qt::Orientation QskSubcontrolLayoutEngine::orientation ( ) const

Definition at line 322 of file QskSubcontrolLayoutEngine.cpp.

◆ setFixedContent()

void QskSubcontrolLayoutEngine::setFixedContent ( QskAspect::Subcontrol  subcontrol,
Qt::Orientation  orientation,
Qt::Alignment  alignment 
)

Definition at line 439 of file QskSubcontrolLayoutEngine.cpp.

◆ setGraphicTextElements()

void QskSubcontrolLayoutEngine::setGraphicTextElements ( const QskSkinnable skinnable,
QskAspect::Subcontrol  textSubcontrol,
const QString &  text,
QskAspect::Subcontrol  graphicSubControl,
const QSizeF &  graphicSize 
)

Definition at line 337 of file QskSubcontrolLayoutEngine.cpp.

◆ setOrientation()

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

Definition at line 309 of file QskSubcontrolLayoutEngine.cpp.

◆ setSpacing()

void QskSubcontrolLayoutEngine::setSpacing ( qreal  spacing)

Definition at line 327 of file QskSubcontrolLayoutEngine.cpp.

◆ setupChain()

void QskSubcontrolLayoutEngine::setupChain ( Qt::Orientation  orientation,
const QskLayoutChain::Segments &  constraints,
QskLayoutChain chain 
) const
overrideprivatevirtual

Implements QskLayoutEngine2D.

Definition at line 569 of file QskSubcontrolLayoutEngine.cpp.

◆ sizePolicyAt()

QskSizePolicy QskSubcontrolLayoutEngine::sizePolicyAt ( int  index) const
overrideprivatevirtual

Implements QskLayoutEngine2D.

Definition at line 515 of file QskSubcontrolLayoutEngine.cpp.

◆ spacing()

qreal QskSubcontrolLayoutEngine::spacing ( ) const

Definition at line 332 of file QskSubcontrolLayoutEngine.cpp.

◆ subControlRect()

QRectF QskSubcontrolLayoutEngine::subControlRect ( QskAspect::Subcontrol  subControl) const

Definition at line 557 of file QskSubcontrolLayoutEngine.cpp.