qskinny/src/controls/QskTextLabelSkinlet.h
2018-08-03 08:30:23 +02:00

35 lines
861 B
C++

/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#ifndef QSK_TEXT_LABEL_SKINLET_H
#define QSK_TEXT_LABEL_SKINLET_H
#include "QskSkinlet.h"
class QSK_EXPORT QskTextLabelSkinlet : public QskSkinlet
{
Q_GADGET
using Inherited = QskSkinlet;
public:
enum NodeRole
{
TextRole
};
Q_INVOKABLE QskTextLabelSkinlet( QskSkin* = nullptr );
~QskTextLabelSkinlet() override;
QRectF subControlRect( const QskSkinnable*,
QskAspect::Subcontrol ) const override;
protected:
QSGNode* updateSubNode( const QskSkinnable*,
quint8 nodeRole, QSGNode* ) const override;
};
#endif