2024-04-24 09:25:06 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* QSkinny - Copyright (C) The authors
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef QSK_ARC_RENDERER_H
|
|
|
|
#define QSK_ARC_RENDERER_H
|
|
|
|
|
|
|
|
#include "QskGlobal.h"
|
|
|
|
|
|
|
|
class QskArcMetrics;
|
|
|
|
class QskGradient;
|
|
|
|
|
|
|
|
class QSGGeometry;
|
|
|
|
class QRectF;
|
|
|
|
class QColor;
|
|
|
|
|
|
|
|
namespace QskArcRenderer
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
Filling the geometry without any color information:
|
|
|
|
see QSGGeometry::defaultAttributes_Point2D()
|
|
|
|
|
|
|
|
- clip nodes
|
2024-06-03 13:36:15 +00:00
|
|
|
- using shaders setting the colors
|
2024-04-24 09:25:06 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
QSK_EXPORT void renderBorderGeometry( const QRectF&,
|
2024-06-12 10:10:57 +00:00
|
|
|
const QskArcMetrics&, bool radial, qreal borderWidth, QSGGeometry& );
|
2024-04-24 09:25:06 +00:00
|
|
|
|
|
|
|
QSK_EXPORT void renderFillGeometry( const QRectF&,
|
2024-06-12 10:10:57 +00:00
|
|
|
const QskArcMetrics&, bool radial, qreal borderWidth, QSGGeometry& );
|
2024-04-24 09:25:06 +00:00
|
|
|
|
|
|
|
/*
|
2024-06-03 13:36:15 +00:00
|
|
|
Filling the geometry with color information:
|
2024-04-24 09:25:06 +00:00
|
|
|
see QSGGeometry::defaultAttributes_ColoredPoint2D()
|
|
|
|
*/
|
2024-06-03 13:36:15 +00:00
|
|
|
QSK_EXPORT bool isGradientSupported( const QskGradient& );
|
2024-04-24 09:25:06 +00:00
|
|
|
|
2024-07-24 13:00:05 +00:00
|
|
|
QSK_EXPORT void renderArc( const QRectF&, const QskArcMetrics&, bool radial,
|
|
|
|
qreal borderWidth, const QskGradient&, const QColor& borderColor, QSGGeometry& );
|
2024-06-03 16:23:43 +00:00
|
|
|
|
2024-07-24 13:00:05 +00:00
|
|
|
QSK_EXPORT void renderArc( const QRectF&, const QskArcMetrics&, bool radial,
|
|
|
|
const QskGradient&, QSGGeometry& );
|
2024-04-24 09:25:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|