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

#include <QskSkinlet.h>

Detailed Description

Describes the rendering interface of a QskControl. Change the skinlet to change the appearance of the control using the low-level scene graph API.

See also
QskSkinnable::effectiveSkinlet(), QskSkinnable::setSkinlet(), QskSkin::declareSkinlet(), QskSkin::skinlet()

Definition at line 33 of file QskSkinlet.h.

Inherited by QskBoxSkinlet, QskCheckBoxSkinlet, QskComboBoxSkinlet, QskFocusIndicatorSkinlet, QskGraphicLabelSkinlet, QskPageIndicatorSkinlet, QskPopupSkinlet, QskProgressIndicatorSkinlet, QskPushButtonSkinlet, QskRadioBoxSkinlet, QskScrollViewSkinlet, QskSegmentedBarSkinlet, QskSeparatorSkinlet, QskSliderSkinlet, QskSpinBoxSkinlet, QskStatusIndicatorSkinlet, QskSubWindowAreaSkinlet, QskSwitchButtonSkinlet, QskTabButtonSkinlet, QskTabViewSkinlet, QskTextInputSkinlet, and QskTextLabelSkinlet.

Public Member Functions

Q_INVOKABLE QskSkinlet (QskSkin *=nullptr)
 
QskSkinskin () const
 
virtual void updateNode (QskSkinnable *, QSGNode *parent) const
 
virtual QSizeF sizeHint (const QskSkinnable *, Qt::SizeHint, const QSizeF &) const
 
virtual QRectF subControlRect (const QskSkinnable *, const QRectF &, QskAspect::Subcontrol) const
 
virtual QRectF sampleRect (const QskSkinnable *, const QRectF &, QskAspect::Subcontrol, int index) const
 
virtual int sampleIndexAt (const QskSkinnable *, const QRectF &, QskAspect::Subcontrol, const QPointF &) const
 
virtual int sampleCount (const QskSkinnable *, QskAspect::Subcontrol) const
 
virtual QskAspect::States sampleStates (const QskSkinnable *, QskAspect::Subcontrol, int index) const
 
virtual QVariant sampleAt (const QskSkinnable *, QskAspect::Subcontrol, int index) const
 
const QVector< quint8 > & nodeRoles () const
 
void setOwnedBySkinnable (bool on)
 
bool isOwnedBySkinnable () const
 

Static Public Member Functions

static QSGNode * updateBoxNode (const QskSkinnable *, QSGNode *, const QRectF &, QskAspect::Subcontrol)
 
static QSGNode * updateBoxNode (const QskSkinnable *, QSGNode *, const QRectF &, const QskGradient &, QskAspect::Subcontrol)
 
static QSGNode * updateBoxNode (const QskSkinnable *, QSGNode *, const QRectF &, const QskBoxShapeMetrics &, const QskBoxBorderMetrics &, const QskBoxBorderColors &, const QskGradient &)
 
static QSGNode * updateBoxNode (const QskSkinnable *, QSGNode *, const QRectF &, const QskBoxHints &)
 
static QSGNode * updateInterpolatedBoxNode (const QskSkinnable *, QSGNode *, const QRectF &, QskAspect aspect1, QskAspect aspect2, qreal ratio)
 
static QSGNode * updateArcNode (const QskSkinnable *, QSGNode *, const QRectF &, QskAspect::Subcontrol)
 
static QSGNode * updateArcNode (const QskSkinnable *, QSGNode *, const QRectF &, const QskGradient &, QskAspect::Subcontrol)
 
static QSGNode * updateArcNode (const QskSkinnable *, QSGNode *, const QRectF &, qreal borderWidth, const QColor &borderColor, const QskGradient &, const QskArcMetrics &)
 
static QSGNode * updateArcNode (const QskSkinnable *, QSGNode *, const QRectF &, qreal startAngle, qreal spanAngle, QskAspect::Subcontrol)
 
static QSGNode * updateArcNode (const QskSkinnable *, QSGNode *, const QRectF &, const QskGradient &, qreal startAngle, qreal spanAngle, QskAspect::Subcontrol)
 
static QSGNode * updateLineNode (const QskSkinnable *, QSGNode *, const QLineF &, QskAspect::Subcontrol)
 
static QSGNode * updateLinesNode (const QskSkinnable *, QSGNode *, const QVector< QLineF > &, QskAspect::Subcontrol)
 
static QSGNode * updateTextNode (const QskSkinnable *, QSGNode *, const QRectF &, Qt::Alignment, const QString &, QskAspect::Subcontrol)
 
static QSGNode * updateTextNode (const QskSkinnable *, QSGNode *, const QRectF &, Qt::Alignment, const QString &, const QFont &, const QskTextOptions &, const QskTextColors &, Qsk::TextStyle)
 
static QSGNode * updateGraphicNode (const QskSkinnable *, QSGNode *, const QskGraphic &, const QskColorFilter &, const QRectF &, Qt::Alignment, Qt::Orientations mirrored=Qt::Orientations())
 
static QSGNode * updateGraphicNode (const QskSkinnable *, QSGNode *, const QskGraphic &, const QskColorFilter &, const QRectF &, Qt::Orientations mirrored=Qt::Orientations())
 
static QSGNode * updateBoxClipNode (const QskSkinnable *, QSGNode *, const QRectF &, QskAspect::Subcontrol)
 

Protected Member Functions

void setNodeRoles (const QVector< quint8 > &)
 
void appendNodeRoles (const QVector< quint8 > &)
 
virtual QSGNode * updateSubNode (const QskSkinnable *, quint8 nodeRole, QSGNode *) const
 
virtual QSGNode * updateBackgroundNode (const QskControl *, QSGNode *) const
 
virtual QSGNode * updateDebugNode (const QskControl *, QSGNode *node) const
 
QSGNode * updateBoxNode (const QskSkinnable *, QSGNode *, QskAspect::Subcontrol) const
 
QSGNode * updateArcNode (const QskSkinnable *, QSGNode *, QskAspect::Subcontrol) const
 
QSGNode * updateArcNode (const QskSkinnable *, QSGNode *, qreal startAngle, qreal spanAngle, QskAspect::Subcontrol) const
 
QSGNode * updateBoxClipNode (const QskSkinnable *, QSGNode *, QskAspect::Subcontrol) const
 
QSGNode * updateTextNode (const QskSkinnable *, QSGNode *, const QString &, QskAspect::Subcontrol) const
 
QSGNode * updateSymbolNode (const QskSkinnable *, QSGNode *, QskAspect::Subcontrol) const
 
QSGNode * updateGraphicNode (const QskSkinnable *, QSGNode *, const QskGraphic &, QskAspect::Subcontrol, Qt::Orientations mirrored=Qt::Orientations()) const
 
QSGNode * updateSeriesNode (const QskSkinnable *, QskAspect::Subcontrol, QSGNode *) const
 
virtual QSGNode * updateSampleNode (const QskSkinnable *, QskAspect::Subcontrol, int index, QSGNode *) const
 
void replaceChildNode (quint8 nodeRole, QSGNode *parentNode, QSGNode *oldNode, QSGNode *newNode) const
 
QSizeF hintWithoutConstraint (const QSizeF &hint, const QSizeF &constraint) const
 

Constructor & Destructor Documentation

◆ QskSkinlet()

QskSkinlet::QskSkinlet ( QskSkin skin = nullptr)

Definition at line 298 of file QskSkinlet.cpp.

◆ ~QskSkinlet()

QskSkinlet::~QskSkinlet ( )
virtual

Definition at line 303 of file QskSkinlet.cpp.

Member Function Documentation

◆ appendNodeRoles()

void QskSkinlet::appendNodeRoles ( const QVector< quint8 > &  nodeRoles)
protected

Definition at line 327 of file QskSkinlet.cpp.

◆ hintWithoutConstraint()

QSizeF QskSkinlet::hintWithoutConstraint ( const QSizeF &  hint,
const QSizeF &  constraint 
) const
protected

Definition at line 845 of file QskSkinlet.cpp.

◆ isOwnedBySkinnable()

bool QskSkinlet::isOwnedBySkinnable ( ) const

Definition at line 317 of file QskSkinlet.cpp.

◆ nodeRoles()

const QVector< quint8 > & QskSkinlet::nodeRoles ( ) const

Definition at line 332 of file QskSkinlet.cpp.

◆ replaceChildNode()

void QskSkinlet::replaceChildNode ( quint8  nodeRole,
QSGNode *  parentNode,
QSGNode *  oldNode,
QSGNode *  newNode 
) const
protected

Definition at line 429 of file QskSkinlet.cpp.

◆ sampleAt()

QVariant QskSkinlet::sampleAt ( const QskSkinnable ,
QskAspect::Subcontrol  ,
int  index 
) const
virtual

Definition at line 838 of file QskSkinlet.cpp.

◆ sampleCount()

int QskSkinlet::sampleCount ( const QskSkinnable ,
QskAspect::Subcontrol   
) const
inlinevirtual

Definition at line 216 of file QskSkinlet.h.

◆ sampleIndexAt()

int QskSkinlet::sampleIndexAt ( const QskSkinnable skinnable,
const QRectF &  rect,
QskAspect::Subcontrol  subControl,
const QPointF &  pos 
) const
virtual

Definition at line 760 of file QskSkinlet.cpp.

◆ sampleRect()

QRectF QskSkinlet::sampleRect ( const QskSkinnable ,
const QRectF &  ,
QskAspect::Subcontrol  ,
int  index 
) const
inlinevirtual

Definition at line 209 of file QskSkinlet.h.

◆ sampleStates()

QskAspect::States QskSkinlet::sampleStates ( const QskSkinnable skinnable,
QskAspect::Subcontrol  ,
int  index 
) const
virtual

Definition at line 831 of file QskSkinlet.cpp.

◆ setNodeRoles()

void QskSkinlet::setNodeRoles ( const QVector< quint8 > &  nodeRoles)
protected

Definition at line 322 of file QskSkinlet.cpp.

◆ setOwnedBySkinnable()

void QskSkinlet::setOwnedBySkinnable ( bool  on)

Definition at line 312 of file QskSkinlet.cpp.

◆ sizeHint()

QSizeF QskSkinlet::sizeHint ( const QskSkinnable ,
Qt::SizeHint  ,
const QSizeF &   
) const
inlinevirtual

Definition at line 203 of file QskSkinlet.h.

◆ skin()

QskSkin * QskSkinlet::skin ( ) const

Definition at line 307 of file QskSkinlet.cpp.

◆ subControlRect()

QRectF QskSkinlet::subControlRect ( const QskSkinnable ,
const QRectF &  ,
QskAspect::Subcontrol   
) const
inlinevirtual

Definition at line 191 of file QskSkinlet.h.

◆ updateArcNode() [1/7]

QSGNode * QskSkinlet::updateArcNode ( const QskSkinnable skinnable,
QSGNode *  node,
const QRectF &  rect,
const QskGradient fillGradient,
qreal  startAngle,
qreal  spanAngle,
QskAspect::Subcontrol  subControl 
)
static

Definition at line 587 of file QskSkinlet.cpp.

◆ updateArcNode() [2/7]

QSGNode * QskSkinlet::updateArcNode ( const QskSkinnable skinnable,
QSGNode *  node,
const QRectF &  rect,
const QskGradient fillGradient,
QskAspect::Subcontrol  subControl 
)
static

Definition at line 542 of file QskSkinlet.cpp.

◆ updateArcNode() [3/7]

QSGNode * QskSkinlet::updateArcNode ( const QskSkinnable skinnable,
QSGNode *  node,
const QRectF &  rect,
qreal  borderWidth,
const QColor &  borderColor,
const QskGradient fillGradient,
const QskArcMetrics metrics 
)
static

Definition at line 559 of file QskSkinlet.cpp.

◆ updateArcNode() [4/7]

QSGNode * QskSkinlet::updateArcNode ( const QskSkinnable skinnable,
QSGNode *  node,
const QRectF &  rect,
qreal  startAngle,
qreal  spanAngle,
QskAspect::Subcontrol  subControl 
)
static

Definition at line 578 of file QskSkinlet.cpp.

◆ updateArcNode() [5/7]

QSGNode * QskSkinlet::updateArcNode ( const QskSkinnable skinnable,
QSGNode *  node,
const QRectF &  rect,
QskAspect::Subcontrol  subControl 
)
static

Definition at line 535 of file QskSkinlet.cpp.

◆ updateArcNode() [6/7]

QSGNode * QskSkinlet::updateArcNode ( const QskSkinnable skinnable,
QSGNode *  node,
qreal  startAngle,
qreal  spanAngle,
QskAspect::Subcontrol  subControl 
) const
protected

Definition at line 568 of file QskSkinlet.cpp.

◆ updateArcNode() [7/7]

QSGNode * QskSkinlet::updateArcNode ( const QskSkinnable skinnable,
QSGNode *  node,
QskAspect::Subcontrol  subControl 
) const
protected

Definition at line 528 of file QskSkinlet.cpp.

◆ updateBackgroundNode()

QSGNode * QskSkinlet::updateBackgroundNode ( const QskControl control,
QSGNode *  node 
) const
protectedvirtual

Definition at line 375 of file QskSkinlet.cpp.

◆ updateBoxClipNode() [1/2]

QSGNode * QskSkinlet::updateBoxClipNode ( const QskSkinnable skinnable,
QSGNode *  node,
const QRectF &  rect,
QskAspect::Subcontrol  subControl 
)
static

Definition at line 641 of file QskSkinlet.cpp.

◆ updateBoxClipNode() [2/2]

QSGNode * QskSkinlet::updateBoxClipNode ( const QskSkinnable skinnable,
QSGNode *  node,
QskAspect::Subcontrol  subControl 
) const
protected

Definition at line 634 of file QskSkinlet.cpp.

◆ updateBoxNode() [1/5]

QSGNode * QskSkinlet::updateBoxNode ( const QskSkinnable skinnable,
QSGNode *  node,
const QRectF &  rect,
const QskBoxHints hints 
)
static

Definition at line 481 of file QskSkinlet.cpp.

◆ updateBoxNode() [2/5]

QSGNode * QskSkinlet::updateBoxNode ( const QskSkinnable skinnable,
QSGNode *  node,
const QRectF &  rect,
const QskBoxShapeMetrics shape,
const QskBoxBorderMetrics borderMetrics,
const QskBoxBorderColors borderColors,
const QskGradient fillGradient 
)
static

Definition at line 471 of file QskSkinlet.cpp.

◆ updateBoxNode() [3/5]

QSGNode * QskSkinlet::updateBoxNode ( const QskSkinnable skinnable,
QSGNode *  node,
const QRectF &  rect,
const QskGradient fillGradient,
QskAspect::Subcontrol  subControl 
)
static

Definition at line 450 of file QskSkinlet.cpp.

◆ updateBoxNode() [4/5]

QSGNode * QskSkinlet::updateBoxNode ( const QskSkinnable skinnable,
QSGNode *  node,
const QRectF &  rect,
QskAspect::Subcontrol  subControl 
)
static

Definition at line 443 of file QskSkinlet.cpp.

◆ updateBoxNode() [5/5]

QSGNode * QskSkinlet::updateBoxNode ( const QskSkinnable skinnable,
QSGNode *  node,
QskAspect::Subcontrol  subControl 
) const
protected

Definition at line 436 of file QskSkinlet.cpp.

◆ updateDebugNode()

QSGNode * QskSkinlet::updateDebugNode ( const QskControl control,
QSGNode *  node 
) const
protectedvirtual

Definition at line 392 of file QskSkinlet.cpp.

◆ updateGraphicNode() [1/3]

QSGNode * QskSkinlet::updateGraphicNode ( const QskSkinnable skinnable,
QSGNode *  node,
const QskGraphic graphic,
const QskColorFilter colorFilter,
const QRectF &  rect,
Qt::Alignment  alignment,
Qt::Orientations  mirrored = Qt::Orientations() 
)
static

Definition at line 734 of file QskSkinlet.cpp.

◆ updateGraphicNode() [2/3]

QSGNode * QskSkinlet::updateGraphicNode ( const QskSkinnable skinnable,
QSGNode *  node,
const QskGraphic graphic,
const QskColorFilter colorFilter,
const QRectF &  rect,
Qt::Orientations  mirrored = Qt::Orientations() 
)
static

Definition at line 749 of file QskSkinlet.cpp.

◆ updateGraphicNode() [3/3]

QSGNode * QskSkinlet::updateGraphicNode ( const QskSkinnable skinnable,
QSGNode *  node,
const QskGraphic graphic,
QskAspect::Subcontrol  subControl,
Qt::Orientations  mirrored = Qt::Orientations() 
) const
protected

Definition at line 721 of file QskSkinlet.cpp.

◆ updateInterpolatedBoxNode()

QSGNode * QskSkinlet::updateInterpolatedBoxNode ( const QskSkinnable skinnable,
QSGNode *  node,
const QRectF &  rect,
QskAspect  aspect1,
QskAspect  aspect2,
qreal  ratio 
)
static

Definition at line 489 of file QskSkinlet.cpp.

◆ updateLineNode()

QSGNode * QskSkinlet::updateLineNode ( const QskSkinnable skinnable,
QSGNode *  node,
const QLineF &  line,
QskAspect::Subcontrol  subControl 
)
static

Definition at line 606 of file QskSkinlet.cpp.

◆ updateLinesNode()

QSGNode * QskSkinlet::updateLinesNode ( const QskSkinnable skinnable,
QSGNode *  node,
const QVector< QLineF > &  lines,
QskAspect::Subcontrol  subControl 
)
static

Definition at line 620 of file QskSkinlet.cpp.

◆ updateNode()

void QskSkinlet::updateNode ( QskSkinnable skinnable,
QSGNode *  parent 
) const
virtual

Definition at line 337 of file QskSkinlet.cpp.

◆ updateSampleNode()

QSGNode * QskSkinlet::updateSampleNode ( const QskSkinnable ,
QskAspect::Subcontrol  ,
int  index,
QSGNode *   
) const
protectedvirtual

Definition at line 824 of file QskSkinlet.cpp.

◆ updateSeriesNode()

QSGNode * QskSkinlet::updateSeriesNode ( const QskSkinnable skinnable,
QskAspect::Subcontrol  subControl,
QSGNode *  rootNode 
) const
protected

Definition at line 777 of file QskSkinlet.cpp.

◆ updateSubNode()

QSGNode * QskSkinlet::updateSubNode ( const QskSkinnable ,
quint8  nodeRole,
QSGNode *   
) const
inlineprotectedvirtual

Definition at line 197 of file QskSkinlet.h.

◆ updateSymbolNode()

QSGNode * QskSkinlet::updateSymbolNode ( const QskSkinnable skinnable,
QSGNode *  node,
QskAspect::Subcontrol  subControl 
) const
protected

Definition at line 713 of file QskSkinlet.cpp.

◆ updateTextNode() [1/3]

QSGNode * QskSkinlet::updateTextNode ( const QskSkinnable skinnable,
QSGNode *  node,
const QRectF &  rect,
Qt::Alignment  alignment,
const QString &  text,
const QFont &  font,
const QskTextOptions textOptions,
const QskTextColors textColors,
Qsk::TextStyle  textStyle 
)
static

Definition at line 669 of file QskSkinlet.cpp.

◆ updateTextNode() [2/3]

QSGNode * QskSkinlet::updateTextNode ( const QskSkinnable skinnable,
QSGNode *  node,
const QRectF &  rect,
Qt::Alignment  alignment,
const QString &  text,
QskAspect::Subcontrol  subControl 
)
static

Definition at line 678 of file QskSkinlet.cpp.

◆ updateTextNode() [3/3]

QSGNode * QskSkinlet::updateTextNode ( const QskSkinnable skinnable,
QSGNode *  node,
const QString &  text,
QskAspect::Subcontrol  subControl 
) const
protected

Definition at line 702 of file QskSkinlet.cpp.