QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskPlainTextRenderer.h
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#ifndef QSK_PLAIN_TEXT_RENDERER_H
7#define QSK_PLAIN_TEXT_RENDERER_H
8
9#include "QskNamespace.h"
10#include <qnamespace.h>
11
12class QskTextColors;
13class QskTextOptions;
14
15class QString;
16class QFont;
17class QRectF;
18class QSizeF;
19class QQuickItem;
20class QColor;
21class QSGTransformNode;
22class QSGNode;
23
24namespace QskPlainTextRenderer
25{
26 QSK_EXPORT void updateNode(
27 const QString&, const QFont&, const QskTextOptions&,
28 Qsk::TextStyle, const QskTextColors&, Qt::Alignment, const QRectF&,
29 const QQuickItem*, QSGTransformNode* );
30
31 QSK_EXPORT void updateNodeColor(
32 QSGNode* parentNode, const QColor& textColor,
33 Qsk::TextStyle, const QColor& styleColor );
34
35 QSK_EXPORT QSizeF textSize( const QString&,
36 const QFont&, const QskTextOptions& );
37
38 QSK_EXPORT QRectF textRect( const QString&,
39 const QFont&, const QskTextOptions&, const QSizeF& );
40}
41
42#endif