2017-07-21 16:21:34 +00: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 12:10:48 +00:00
|
|
|
#include <qrect.h>
|
2018-08-03 06:15:28 +00:00
|
|
|
#include <qsgnode.h>
|
2017-07-21 16:21:34 +00:00
|
|
|
|
|
|
|
class QskTextOptions;
|
2017-10-20 18:26:39 +00:00
|
|
|
class QskTextColors;
|
2017-07-21 16:21:34 +00:00
|
|
|
class QString;
|
2017-10-20 18:26:39 +00:00
|
|
|
class QFont;
|
|
|
|
class QQuickItem;
|
2017-07-21 16:21:34 +00:00
|
|
|
|
|
|
|
class QSK_EXPORT QskTextNode : public QSGTransformNode
|
|
|
|
{
|
2018-08-03 06:15:28 +00:00
|
|
|
public:
|
2017-07-21 16:21:34 +00:00
|
|
|
QskTextNode();
|
2018-07-31 15:32:25 +00:00
|
|
|
~QskTextNode() override;
|
2017-07-21 16:21:34 +00:00
|
|
|
|
2017-10-20 18:26:39 +00:00
|
|
|
void setTextData( const QQuickItem* item,
|
|
|
|
const QString& text, const QRectF&, const QFont&,
|
|
|
|
const QskTextOptions&, const QskTextColors&,
|
|
|
|
Qt::Alignment, Qsk::TextStyle );
|
|
|
|
|
2018-08-03 06:15:28 +00:00
|
|
|
private:
|
2022-03-25 09:28:06 +00:00
|
|
|
QskHashValue m_hash;
|
2017-07-21 16:21:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|