#include <QskSkinlet.h>
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.
|
Q_INVOKABLE | QskSkinlet (QskSkin *=nullptr) |
|
QskSkin * | skin () 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 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) |
|
|
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 |
|
◆ QskSkinlet()
QskSkinlet::QskSkinlet |
( |
QskSkin * |
skin = nullptr | ) |
|
◆ ~QskSkinlet()
QskSkinlet::~QskSkinlet |
( |
| ) |
|
|
virtual |
◆ appendNodeRoles()
void QskSkinlet::appendNodeRoles |
( |
const QVector< quint8 > & |
nodeRoles | ) |
|
|
protected |
◆ hintWithoutConstraint()
QSizeF QskSkinlet::hintWithoutConstraint |
( |
const QSizeF & |
hint, |
|
|
const QSizeF & |
constraint |
|
) |
| const |
|
protected |
◆ isOwnedBySkinnable()
bool QskSkinlet::isOwnedBySkinnable |
( |
| ) |
const |
◆ nodeRoles()
const QVector< quint8 > & QskSkinlet::nodeRoles |
( |
| ) |
const |
◆ replaceChildNode()
void QskSkinlet::replaceChildNode |
( |
quint8 |
nodeRole, |
|
|
QSGNode * |
parentNode, |
|
|
QSGNode * |
oldNode, |
|
|
QSGNode * |
newNode |
|
) |
| const |
|
protected |
◆ sampleAt()
◆ sampleCount()
◆ sampleIndexAt()
◆ sampleRect()
◆ sampleStates()
◆ setNodeRoles()
void QskSkinlet::setNodeRoles |
( |
const QVector< quint8 > & |
nodeRoles | ) |
|
|
protected |
◆ setOwnedBySkinnable()
void QskSkinlet::setOwnedBySkinnable |
( |
bool |
on | ) |
|
◆ sizeHint()
QSizeF QskSkinlet::sizeHint |
( |
const QskSkinnable * |
, |
|
|
Qt::SizeHint |
, |
|
|
const QSizeF & |
|
|
) |
| const |
|
inlinevirtual |
◆ skin()
QskSkin * QskSkinlet::skin |
( |
| ) |
const |
◆ subControlRect()
◆ updateArcNode() [1/7]
◆ updateArcNode() [2/7]
◆ 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 |
◆ updateArcNode() [4/7]
QSGNode * QskSkinlet::updateArcNode |
( |
const QskSkinnable * |
skinnable, |
|
|
QSGNode * |
node, |
|
|
const QRectF & |
rect, |
|
|
qreal |
startAngle, |
|
|
qreal |
spanAngle, |
|
|
QskAspect::Subcontrol |
subControl |
|
) |
| |
|
static |
◆ updateArcNode() [5/7]
◆ updateArcNode() [6/7]
◆ updateArcNode() [7/7]
◆ updateBackgroundNode()
QSGNode * QskSkinlet::updateBackgroundNode |
( |
const QskControl * |
control, |
|
|
QSGNode * |
node |
|
) |
| const |
|
protectedvirtual |
◆ updateBoxClipNode() [1/2]
◆ updateBoxClipNode() [2/2]
◆ updateBoxNode() [1/5]
QSGNode * QskSkinlet::updateBoxNode |
( |
const QskSkinnable * |
skinnable, |
|
|
QSGNode * |
node, |
|
|
const QRectF & |
rect, |
|
|
const QskBoxHints & |
hints |
|
) |
| |
|
static |
◆ updateBoxNode() [2/5]
◆ updateBoxNode() [3/5]
◆ updateBoxNode() [4/5]
◆ updateBoxNode() [5/5]
◆ updateDebugNode()
QSGNode * QskSkinlet::updateDebugNode |
( |
const QskControl * |
control, |
|
|
QSGNode * |
node |
|
) |
| const |
|
protectedvirtual |
◆ 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 |
◆ 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 |
◆ updateGraphicNode() [3/3]
◆ updateInterpolatedBoxNode()
QSGNode * QskSkinlet::updateInterpolatedBoxNode |
( |
const QskSkinnable * |
skinnable, |
|
|
QSGNode * |
node, |
|
|
const QRectF & |
rect, |
|
|
QskAspect |
aspect1, |
|
|
QskAspect |
aspect2, |
|
|
qreal |
ratio |
|
) |
| |
|
static |
◆ updateLineNode()
◆ updateLinesNode()
◆ updateNode()
void QskSkinlet::updateNode |
( |
QskSkinnable * |
skinnable, |
|
|
QSGNode * |
parent |
|
) |
| const |
|
virtual |
◆ updateSampleNode()
◆ updateSeriesNode()
◆ updateSubNode()
QSGNode * QskSkinlet::updateSubNode |
( |
const QskSkinnable * |
, |
|
|
quint8 |
nodeRole, |
|
|
QSGNode * |
|
|
) |
| const |
|
inlineprotectedvirtual |
◆ updateSymbolNode()
◆ 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 |
◆ updateTextNode() [2/3]
QSGNode * QskSkinlet::updateTextNode |
( |
const QskSkinnable * |
skinnable, |
|
|
QSGNode * |
node, |
|
|
const QRectF & |
rect, |
|
|
Qt::Alignment |
alignment, |
|
|
const QString & |
text, |
|
|
QskAspect::Subcontrol |
subControl |
|
) |
| |
|
static |
◆ updateTextNode() [3/3]