2017-10-17 17:29:02 +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_BOX_RENDERER_H
|
|
|
|
#define QSK_BOX_RENDERER_H
|
|
|
|
|
2023-01-04 16:15:22 +01:00
|
|
|
#include "QskGlobal.h"
|
2017-10-17 17:29:02 +02:00
|
|
|
|
|
|
|
class QskBoxBorderMetrics;
|
|
|
|
class QskBoxBorderColors;
|
2022-12-09 11:50:31 +01:00
|
|
|
class QskBoxShapeMetrics;
|
2017-10-17 17:29:02 +02:00
|
|
|
class QskGradient;
|
|
|
|
|
|
|
|
class QSGGeometry;
|
2022-12-09 11:50:31 +01:00
|
|
|
class QRectF;
|
2017-10-17 17:29:02 +02:00
|
|
|
|
2023-02-08 17:58:09 +01:00
|
|
|
namespace QskBox
|
2017-10-17 17:29:02 +02:00
|
|
|
{
|
2023-01-11 12:51:16 +01:00
|
|
|
/*
|
|
|
|
Filling the geometry without any color information:
|
|
|
|
see QSGGeometry::defaultAttributes_Point2D()
|
|
|
|
|
|
|
|
- clip nodes
|
|
|
|
- using shaders setting the color information
|
|
|
|
*/
|
|
|
|
|
|
|
|
QSK_EXPORT void renderBorderGeometry( const QRectF&,
|
2017-10-17 17:29:02 +02:00
|
|
|
const QskBoxShapeMetrics&, const QskBoxBorderMetrics&, QSGGeometry& );
|
|
|
|
|
2023-01-11 12:51:16 +01:00
|
|
|
QSK_EXPORT void renderFillGeometry( const QRectF&,
|
2017-10-17 17:29:02 +02:00
|
|
|
const QskBoxShapeMetrics&, const QskBoxBorderMetrics&, QSGGeometry& );
|
|
|
|
|
2023-01-11 12:51:16 +01:00
|
|
|
QSK_EXPORT void renderFillGeometry( const QRectF&,
|
|
|
|
const QskBoxShapeMetrics&, QSGGeometry& );
|
|
|
|
|
|
|
|
/*
|
|
|
|
Filling the geometry usually with color information:
|
|
|
|
see QSGGeometry::defaultAttributes_ColoredPoint2D()
|
2023-02-08 17:58:09 +01:00
|
|
|
*/
|
2023-01-11 12:51:16 +01:00
|
|
|
QSK_EXPORT bool isGradientSupported( const QskBoxShapeMetrics&, const QskGradient& );
|
|
|
|
|
2023-01-04 16:15:22 +01:00
|
|
|
QSK_EXPORT void renderBox( const QRectF&,
|
2017-10-17 17:29:02 +02:00
|
|
|
const QskBoxShapeMetrics&, const QskBoxBorderMetrics&,
|
2022-11-13 17:22:09 +01:00
|
|
|
const QskBoxBorderColors&, const QskGradient&, QSGGeometry& );
|
2017-10-17 17:29:02 +02:00
|
|
|
|
2023-01-11 12:51:16 +01:00
|
|
|
QSK_EXPORT void renderBox( const QRectF&,
|
|
|
|
const QskBoxShapeMetrics&, const QskGradient&, QSGGeometry& );
|
2023-01-04 16:15:22 +01:00
|
|
|
}
|
2017-10-17 17:29:02 +02:00
|
|
|
|
|
|
|
#endif
|