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

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

#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, QskTextAreaSkinlet, QskTextFieldSkinlet, 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 * updateTextNode (const QskSkinnable *, QSGNode *, const QRectF &, Qt::Alignment, const QskTextOptions &, const QString &, QskAspect::Subcontrol)
 
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 296 of file QskSkinlet.cpp.

◆ ~QskSkinlet()

QskSkinlet::~QskSkinlet ( )
virtual

Definition at line 301 of file QskSkinlet.cpp.

Member Function Documentation

◆ appendNodeRoles()

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

Definition at line 325 of file QskSkinlet.cpp.

◆ hintWithoutConstraint()

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

Definition at line 854 of file QskSkinlet.cpp.

◆ isOwnedBySkinnable()

bool QskSkinlet::isOwnedBySkinnable ( ) const

Definition at line 315 of file QskSkinlet.cpp.

◆ nodeRoles()

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

Definition at line 330 of file QskSkinlet.cpp.

◆ replaceChildNode()

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

Definition at line 427 of file QskSkinlet.cpp.

◆ sampleAt()

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

Definition at line 847 of file QskSkinlet.cpp.

◆ sampleCount()

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

Definition at line 220 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 769 of file QskSkinlet.cpp.

◆ sampleRect()

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

Definition at line 213 of file QskSkinlet.h.

◆ sampleStates()

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

Definition at line 840 of file QskSkinlet.cpp.

◆ setNodeRoles()

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

Definition at line 320 of file QskSkinlet.cpp.

◆ setOwnedBySkinnable()

void QskSkinlet::setOwnedBySkinnable ( bool  on)

Definition at line 310 of file QskSkinlet.cpp.

◆ sizeHint()

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

Definition at line 207 of file QskSkinlet.h.

◆ skin()

QskSkin * QskSkinlet::skin ( ) const

Definition at line 305 of file QskSkinlet.cpp.

◆ subControlRect()

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

Definition at line 195 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 585 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 540 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 557 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 576 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 533 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 566 of file QskSkinlet.cpp.

◆ updateArcNode() [7/7]

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

Definition at line 526 of file QskSkinlet.cpp.

◆ updateBackgroundNode()

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

Definition at line 373 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 639 of file QskSkinlet.cpp.

◆ updateBoxClipNode() [2/2]

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

Definition at line 632 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 479 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 469 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 448 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 441 of file QskSkinlet.cpp.

◆ updateBoxNode() [5/5]

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

Definition at line 434 of file QskSkinlet.cpp.

◆ updateDebugNode()

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

Definition at line 390 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 743 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 758 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 728 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 487 of file QskSkinlet.cpp.

◆ updateLineNode()

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

Definition at line 604 of file QskSkinlet.cpp.

◆ updateLinesNode()

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

Definition at line 618 of file QskSkinlet.cpp.

◆ updateNode()

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

Definition at line 335 of file QskSkinlet.cpp.

◆ updateSampleNode()

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

Definition at line 833 of file QskSkinlet.cpp.

◆ updateSeriesNode()

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

Definition at line 786 of file QskSkinlet.cpp.

◆ updateSubNode()

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

Definition at line 201 of file QskSkinlet.h.

◆ updateSymbolNode()

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

Definition at line 720 of file QskSkinlet.cpp.

◆ updateTextNode() [1/4]

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

Definition at line 686 of file QskSkinlet.cpp.

◆ updateTextNode() [2/4]

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 666 of file QskSkinlet.cpp.

◆ updateTextNode() [3/4]

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

Definition at line 675 of file QskSkinlet.cpp.

◆ updateTextNode() [4/4]

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

Definition at line 709 of file QskSkinlet.cpp.