QskSkinlet

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>

Inherited by QskBoxSkinlet, QskFocusIndicatorSkinlet, QskGraphicLabelSkinlet, QskPageIndicatorSkinlet, QskPopupSkinlet, QskProgressBarSkinlet, QskPushButtonSkinlet, QskScrollViewSkinlet, QskSeparatorSkinlet, QskSliderSkinlet, QskStatusIndicatorSkinlet, QskSubWindowAreaSkinlet, QskSwitchButtonSkinlet, QskTabButtonSkinlet, QskTabViewSkinlet, QskTextInputSkinlet, QskTextLabelSkinlet

Public Functions

  Name
Q_INVOKABLE QskSkinlet(QskSkin * skin =nullptr)
virtual ~QskSkinlet()
QskSkin * skin() const
virtual void updateNode(QskSkinnable * skinnable, QSGNode * parent) const
virtual QRectF subControlRect(const QskSkinnable * , const QRectF & , QskAspect::Subcontrol ) const
virtual QSizeF sizeHint(const QskSkinnable * , Qt::SizeHint , const QSizeF & ) const
const QVector< quint8 > & nodeRoles() const
void setOwnedBySkinnable(bool on)
bool isOwnedBySkinnable() const
QSGNode * updateBoxNode(const QskSkinnable * skinnable, QSGNode * node, const QRectF & rect, QskAspect::Subcontrol subControl)
QSGNode * updateBoxNode(const QskSkinnable * skinnable, QSGNode * node, const QRectF & rect, const QskGradient & fillGradient, QskAspect::Subcontrol subControl)
QSGNode * updateArcNode(const QskSkinnable * skinnable, QSGNode * node, const QRectF & rect, QskAspect::Subcontrol subControl)
QSGNode * updateArcNode(const QskSkinnable * skinnable, QSGNode * node, const QRectF & rect, const QskGradient & fillGradient, QskAspect::Subcontrol subControl)
QSGNode * updateArcNode(const QskSkinnable * skinnable, QSGNode * node, const QRectF & rect, const QskGradient & fillGradient, const QskArcMetrics & arcMetrics, QskAspect::Subcontrol subControl)
QSGNode * updateArcNode(const QskSkinnable * skinnable, QSGNode * node, const QRectF & rect, qreal startAngle, qreal spanAngle, QskAspect::Subcontrol subControl)
QSGNode * updateArcNode(const QskSkinnable * skinnable, QSGNode * node, const QRectF & rect, const QskGradient & fillGradient, qreal startAngle, qreal spanAngle, QskAspect::Subcontrol subControl)
QSGNode * updateTextNode(const QskSkinnable * skinnable, QSGNode * node, const QRectF & rect, Qt::Alignment alignment, const QString & text, const QskTextOptions & textOptions, QskAspect::Subcontrol subControl)
QSGNode * updateGraphicNode(const QskSkinnable * skinnable, QSGNode * node, const QskGraphic & graphic, const QskColorFilter & colorFilter, const QRectF & rect, Qt::Alignment alignment, Qt::Orientations mirrored =Qt::Orientations())
QSGNode * updateGraphicNode(const QskSkinnable * skinnable, QSGNode * node, const QskGraphic & graphic, const QskColorFilter & colorFilter, const QRectF & rect, Qt::Orientations mirrored =Qt::Orientations())
QSGNode * updateBoxClipNode(const QskSkinnable * skinnable, QSGNode * node, const QRectF & rect, QskAspect::Subcontrol subControl)

Protected Functions

  Name
void setNodeRoles(const QVector< quint8 > & nodeRoles)
void appendNodeRoles(const QVector< quint8 > & nodeRoles)
virtual QSGNode * updateSubNode(const QskSkinnable * , quint8 nodeRole, QSGNode * ) const
virtual QSGNode * updateBackgroundNode(const QskControl * control, QSGNode * node) const
virtual QSGNode * updateDebugNode(const QskControl * control, QSGNode * node) const
QSGNode * updateBoxNode(const QskSkinnable * skinnable, QSGNode * node, QskAspect::Subcontrol subControl) const
QSGNode * updateArcNode(const QskSkinnable * skinnable, QSGNode * node, QskAspect::Subcontrol subControl) const
QSGNode * updateArcNode(const QskSkinnable * skinnable, QSGNode * node, qreal startAngle, qreal spanAngle, QskAspect::Subcontrol subControl) const
QSGNode * updateBoxClipNode(const QskSkinnable * skinnable, QSGNode * node, QskAspect::Subcontrol subControl) const
QSGNode * updateTextNode(const QskSkinnable * skinnable, QSGNode * node, const QString & text, const QskTextOptions & textOptions, QskAspect::Subcontrol subControl) const
QSGNode * updateGraphicNode(const QskSkinnable * skinnable, QSGNode * node, const QskGraphic & graphic, QskAspect::Subcontrol subcontrol, Qt::Orientations mirrored =Qt::Orientations()) const
void replaceChildNode(quint8 nodeRole, QSGNode * parentNode, QSGNode * oldNode, QSGNode * newNode) const
QSizeF hintWithoutConstraint(const QSizeF & hint, const QSizeF & constraint) const

Detailed Description

class QskSkinlet;

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: QskSkinnable::effectiveSkinlet(), QskSkinnable::setSkinlet(), QskSkin::declareSkinlet(), QskSkin::skinlet()

Public Functions Documentation

function QskSkinlet

Q_INVOKABLE QskSkinlet(
    QskSkin * skin =nullptr
)

function ~QskSkinlet

virtual ~QskSkinlet()

function skin

QskSkin * skin() const

function updateNode

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

function subControlRect

inline virtual QRectF subControlRect(
    const QskSkinnable * ,
    const QRectF & ,
    QskAspect::Subcontrol 
) const

function sizeHint

inline virtual QSizeF sizeHint(
    const QskSkinnable * ,
    Qt::SizeHint ,
    const QSizeF & 
) const

function nodeRoles

const QVector< quint8 > & nodeRoles() const

function setOwnedBySkinnable

void setOwnedBySkinnable(
    bool on
)

function isOwnedBySkinnable

bool isOwnedBySkinnable() const

function updateBoxNode

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

function updateBoxNode

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

function updateArcNode

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

function updateArcNode

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

function updateArcNode

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

function updateArcNode

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

function updateArcNode

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

function updateTextNode

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

function updateGraphicNode

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

function updateGraphicNode

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

function updateBoxClipNode

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

Protected Functions Documentation

function setNodeRoles

void setNodeRoles(
    const QVector< quint8 > & nodeRoles
)

function appendNodeRoles

void appendNodeRoles(
    const QVector< quint8 > & nodeRoles
)

function updateSubNode

inline virtual QSGNode * updateSubNode(
    const QskSkinnable * ,
    quint8 nodeRole,
    QSGNode * 
) const

function updateBackgroundNode

virtual QSGNode * updateBackgroundNode(
    const QskControl * control,
    QSGNode * node
) const

function updateDebugNode

virtual QSGNode * updateDebugNode(
    const QskControl * control,
    QSGNode * node
) const

function updateBoxNode

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

function updateArcNode

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

function updateArcNode

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

function updateBoxClipNode

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

function updateTextNode

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

function updateGraphicNode

QSGNode * updateGraphicNode(
    const QskSkinnable * skinnable,
    QSGNode * node,
    const QskGraphic & graphic,
    QskAspect::Subcontrol subcontrol,
    Qt::Orientations mirrored =Qt::Orientations()
) const

function replaceChildNode

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

function hintWithoutConstraint

QSizeF hintWithoutConstraint(
    const QSizeF & hint,
    const QSizeF & constraint
) const

Updated on 28 July 2023 at 14:02:28 CEST