qskinny/src/nodes/QskPlainTextRenderer.h

43 lines
1.2 KiB
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_PLAIN_TEXT_RENDERER_H
#define QSK_PLAIN_TEXT_RENDERER_H
#include "QskNamespace.h"
2018-07-19 14:10:48 +02:00
#include <qnamespace.h>
2017-07-21 18:21:34 +02:00
2017-10-20 20:26:39 +02:00
class QskTextColors;
2017-10-23 07:46:46 +02:00
class QskTextOptions;
2017-10-20 20:26:39 +02:00
2017-10-23 07:46:46 +02:00
class QString;
class QFont;
class QRectF;
class QSizeF;
2017-07-21 18:21:34 +02:00
class QQuickItem;
class QColor;
2017-10-20 20:26:39 +02:00
class QSGTransformNode;
2017-10-23 07:46:46 +02:00
class QSGNode;
2017-07-21 18:21:34 +02:00
2017-10-23 07:46:46 +02:00
namespace QskPlainTextRenderer
2017-07-21 18:21:34 +02:00
{
2018-08-03 08:15:28 +02:00
QSK_EXPORT void updateNode(
const QString&, const QFont&, const QskTextOptions&,
2017-10-23 07:46:46 +02:00
Qsk::TextStyle, const QskTextColors&, Qt::Alignment, const QRectF&,
2017-10-20 20:26:39 +02:00
const QQuickItem*, QSGTransformNode* );
2017-07-21 18:21:34 +02:00
2018-08-03 08:15:28 +02:00
QSK_EXPORT void updateNodeColor(
QSGNode* parentNode, const QColor& textColor,
Qsk::TextStyle, const QColor& styleColor );
2017-07-21 18:21:34 +02:00
2018-08-03 08:15:28 +02:00
QSK_EXPORT QSizeF textSize( const QString&,
const QFont&, const QskTextOptions& );
QSK_EXPORT QRectF textRect( const QString&,
const QFont&, const QskTextOptions&, const QSizeF& );
2017-10-23 07:46:46 +02:00
}
2017-07-21 18:21:34 +02:00
#endif