qskinny/src/nodes/QskPlainTextRenderer.h

40 lines
1.1 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 "QskGlobal.h"
#include "QskNamespace.h"
2017-10-23 07:46:46 +02:00
#include <Qt>
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
{
2017-10-23 07:46:46 +02:00
QSK_EXPORT void updateNode( const QString&, const QFont&, const QskTextOptions&,
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
2017-10-23 07:46:46 +02:00
QSK_EXPORT void updateNodeColor( QSGNode* parentNode,
2017-07-21 18:21:34 +02:00
const QColor& textColor, Qsk::TextStyle, const QColor& styleColor );
2017-10-23 07:46:46 +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-07-21 18:21:34 +02:00
#endif