2023-08-08 13:06:09 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QskSkinlet.h>
|
|
|
|
|
2023-08-08 13:17:57 +00:00
|
|
|
class RadialTickmarksSkinlet : public QskSkinlet
|
2023-08-08 13:06:09 +00:00
|
|
|
{
|
|
|
|
Q_GADGET
|
|
|
|
public:
|
|
|
|
enum NodeRole
|
|
|
|
{
|
|
|
|
Lines,
|
|
|
|
RoleCount
|
|
|
|
};
|
|
|
|
|
2023-08-08 13:17:57 +00:00
|
|
|
Q_INVOKABLE RadialTickmarksSkinlet( QskSkin* skin = nullptr );
|
2023-08-08 13:06:09 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
Q_REQUIRED_RESULT QRectF subControlRect( const QskSkinnable* skinnable, const QRectF& contentsRect, QskAspect::Subcontrol subControl) const override;
|
|
|
|
Q_REQUIRED_RESULT QSGNode* updateSubNode( const QskSkinnable* skinnable, quint8 nodeRole, QSGNode* node) const override;
|
|
|
|
};
|