qskinny/src/nodes/QskTextNode.h

36 lines
852 B
C
Raw Normal View History

2017-07-21 18:21:34 +02:00
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#ifndef QSK_TEXT_NODE_H
#define QSK_TEXT_NODE_H
#include "QskNamespace.h"
2018-07-19 14:10:48 +02:00
#include <qrect.h>
2018-08-03 08:15:28 +02:00
#include <qsgnode.h>
2017-07-21 18:21:34 +02:00
class QskTextOptions;
2017-10-20 20:26:39 +02:00
class QskTextColors;
2017-07-21 18:21:34 +02:00
class QString;
2017-10-20 20:26:39 +02:00
class QFont;
class QQuickItem;
2017-07-21 18:21:34 +02:00
class QSK_EXPORT QskTextNode : public QSGTransformNode
{
2018-08-03 08:15:28 +02:00
public:
2017-07-21 18:21:34 +02:00
QskTextNode();
2018-07-31 17:32:25 +02:00
~QskTextNode() override;
2017-07-21 18:21:34 +02:00
2017-10-20 20:26:39 +02:00
void setTextData( const QQuickItem* item,
const QString& text, const QRectF&, const QFont&,
const QskTextOptions&, const QskTextColors&,
Qt::Alignment, Qsk::TextStyle );
2018-08-03 08:15:28 +02:00
private:
QskHashValue m_hash;
2017-07-21 18:21:34 +02:00
};
#endif