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 "QskGlobal.h"
|
|
|
|
#include "QskNamespace.h"
|
|
|
|
|
2018-07-19 14:10:48 +02:00
|
|
|
#include <qsgnode.h>
|
|
|
|
#include <qrect.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
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
QskTextNode();
|
|
|
|
virtual ~QskTextNode();
|
|
|
|
|
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 );
|
|
|
|
|
2017-07-21 18:21:34 +02:00
|
|
|
private:
|
|
|
|
uint m_hash;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|