qskinny/src/nodes/QskBoxClipNode.h

32 lines
752 B
C
Raw Normal View History

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
*****************************************************************************/
#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
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:
QskBoxClipNode();
2018-07-31 17:32:25 +02:00
~QskBoxClipNode() override;
2017-07-21 18:21:34 +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:
QskHashValue m_hash;
QRectF m_rect;
2017-07-21 18:21:34 +02:00
QSGGeometry m_geometry;
};
#endif