qskinny/src/nodes/QskArcRenderer.h

57 lines
1.7 KiB
C
Raw Normal View History

2024-09-11 08:24:22 +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
- using shaders setting the colors
*/
2024-09-23 14:04:09 +00:00
QSK_EXPORT void setBorderLines( const QRectF&,
2024-09-11 08:24:22 +00:00
const QskArcMetrics&, bool radial, qreal borderWidth, QSGGeometry& );
2024-09-23 14:04:09 +00:00
QSK_EXPORT void setFillLines( const QRectF&,
2024-09-11 08:24:22 +00:00
const QskArcMetrics&, bool radial, qreal borderWidth, QSGGeometry& );
/*
Filling the geometry with color information:
see QSGGeometry::defaultAttributes_ColoredPoint2D()
2024-09-23 14:04:09 +00:00
Usually used in combination with QSGVertexColorMaterial
2024-09-11 08:24:22 +00:00
*/
QSK_EXPORT bool isGradientSupported(
const QRectF&, const QskArcMetrics&, const QskGradient& );
2024-09-23 14:04:09 +00:00
QSK_EXPORT void setColoredBorderLines( const QRectF&,
const QskArcMetrics&, bool radial, qreal borderWidth,
const QColor& borderColor, QSGGeometry& );
2024-09-11 08:24:22 +00:00
2024-09-23 14:04:09 +00:00
QSK_EXPORT void setColoredFillLines( const QRectF&,
const QskArcMetrics&, bool radial, qreal borderWidth,
2024-09-11 08:24:22 +00:00
const QskGradient&, QSGGeometry& );
2024-09-23 14:04:09 +00:00
QSK_EXPORT void setColoredBorderAndFillLines( const QRectF&,
const QskArcMetrics&, bool radial, qreal borderWidth,
const QColor& borderColor, const QskGradient&, QSGGeometry& );
2024-09-11 08:24:22 +00:00
}
#endif