2017-07-21 18:21:34 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
|
|
* This file may be used under the terms of the QSkinny License, Version 1.0
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2017-10-17 17:29:02 +02:00
|
|
|
#ifndef QSK_BOX_CLIP_NODE_H
|
|
|
|
#define QSK_BOX_CLIP_NODE_H
|
2017-07-21 18:21:34 +02:00
|
|
|
|
|
|
|
#include "QskGlobal.h"
|
2018-07-19 14:10:48 +02:00
|
|
|
#include <qsgnode.h>
|
2017-07-21 18:21:34 +02:00
|
|
|
|
2017-10-17 17:29:02 +02:00
|
|
|
class QskBoxShapeMetrics;
|
|
|
|
class QskBoxBorderMetrics;
|
|
|
|
|
|
|
|
class QSK_EXPORT QskBoxClipNode : public QSGClipNode
|
2017-07-21 18:21:34 +02:00
|
|
|
{
|
2018-08-03 08:15:28 +02:00
|
|
|
public:
|
2017-10-17 17:29:02 +02:00
|
|
|
QskBoxClipNode();
|
2018-07-31 17:32:25 +02:00
|
|
|
~QskBoxClipNode() override;
|
2017-07-21 18:21:34 +02:00
|
|
|
|
2017-10-17 17:29:02 +02:00
|
|
|
void setBox( const QRectF&,
|
|
|
|
const QskBoxShapeMetrics&, const QskBoxBorderMetrics& );
|
2017-07-21 18:21:34 +02:00
|
|
|
|
2018-08-03 08:15:28 +02:00
|
|
|
private:
|
2022-03-25 10:28:06 +01:00
|
|
|
QskHashValue m_hash;
|
2017-10-17 17:29:02 +02:00
|
|
|
QRectF m_rect;
|
2017-07-21 18:21:34 +02:00
|
|
|
|
|
|
|
QSGGeometry m_geometry;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|