QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskArcRenderer.h
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#ifndef QSK_ARC_RENDERER_H
7#define QSK_ARC_RENDERER_H
8
9#include "QskGlobal.h"
10
11class QskArcMetrics;
12class QskGradient;
13
14class QSGGeometry;
15class QRectF;
16class QColor;
17
18namespace QskArcRenderer
19{
20 /*
21 Filling the geometry without any color information:
22 see QSGGeometry::defaultAttributes_Point2D()
23
24 - clip nodes
25 - using shaders setting the colors
26 */
27
28 QSK_EXPORT void setBorderLines( const QRectF&,
29 const QskArcMetrics&, bool radial, qreal borderWidth, QSGGeometry& );
30
31 QSK_EXPORT void setFillLines( const QRectF&,
32 const QskArcMetrics&, bool radial, qreal borderWidth, QSGGeometry& );
33
34 /*
35 Filling the geometry with color information:
36 see QSGGeometry::defaultAttributes_ColoredPoint2D()
37
38 Usually used in combination with QSGVertexColorMaterial
39 */
40 QSK_EXPORT bool isGradientSupported(
41 const QRectF&, const QskArcMetrics&, const QskGradient& );
42
43 QSK_EXPORT void setColoredBorderLines( const QRectF&,
44 const QskArcMetrics&, bool radial, qreal borderWidth,
45 const QColor& borderColor, QSGGeometry& );
46
47 QSK_EXPORT void setColoredFillLines( const QRectF&,
48 const QskArcMetrics&, bool radial, qreal borderWidth,
49 const QskGradient&, QSGGeometry& );
50
51 QSK_EXPORT void setColoredBorderAndFillLines( const QRectF&,
52 const QskArcMetrics&, bool radial, qreal borderWidth,
53 const QColor& borderColor, const QskGradient&, QSGGeometry& );
54}
55
56#endif