qskinny/src/nodes/QskBoxRenderer.h

53 lines
1.6 KiB
C
Raw Normal View History

/******************************************************************************
* 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"
class QskBoxBorderMetrics;
class QskBoxBorderColors;
2022-12-09 11:50:31 +01:00
class QskBoxShapeMetrics;
class QskGradient;
class QSGGeometry;
2022-12-09 11:50:31 +01:00
class QRectF;
namespace QskBox
{
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&,
const QskBoxShapeMetrics&, const QskBoxBorderMetrics&, QSGGeometry& );
2023-01-11 12:51:16 +01:00
QSK_EXPORT void renderFillGeometry( const QRectF&,
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-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&,
const QskBoxShapeMetrics&, const QskBoxBorderMetrics&,
const QskBoxBorderColors&, const QskGradient&, QSGGeometry& );
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
}
#endif