qskinny/src/nodes/QskBoxNode.h

35 lines
736 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_NODE_H
#define QSK_BOX_NODE_H
#include "QskGlobal.h"
class QskBoxOptions;
class QRectF;
2017-07-21 18:21:34 +02:00
#include <QSGNode>
2017-07-21 18:21:34 +02:00
class QSK_EXPORT QskBoxNode : public QSGGeometryNode
{
public:
QskBoxNode();
virtual ~QskBoxNode();
void setBoxData( const QRectF& rect, const QskBoxOptions& );
2017-07-21 18:21:34 +02:00
private:
void setMonochrome( bool on );
2017-07-21 18:21:34 +02:00
uint m_metricsHash;
uint m_colorsHash;
QRectF m_rect;
QSGGeometry m_geometry;
2017-07-21 18:21:34 +02:00
};
#endif