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_GRAPHIC_NODE_H
|
|
|
|
#define QSK_GRAPHIC_NODE_H
|
|
|
|
|
2018-10-04 16:15:42 +02:00
|
|
|
#include "QskTextureRenderer.h"
|
2018-08-03 08:15:28 +02:00
|
|
|
#include "QskTextureNode.h"
|
2017-07-21 18:21:34 +02:00
|
|
|
|
|
|
|
class QskGraphic;
|
|
|
|
class QskColorFilter;
|
|
|
|
|
|
|
|
class QSK_EXPORT QskGraphicNode : public QskTextureNode
|
|
|
|
{
|
2018-08-03 08:15:28 +02:00
|
|
|
public:
|
2017-07-21 18:21:34 +02:00
|
|
|
QskGraphicNode();
|
2018-07-31 17:32:25 +02:00
|
|
|
~QskGraphicNode() override;
|
2017-07-21 18:21:34 +02:00
|
|
|
|
|
|
|
void setGraphic( const QskGraphic&, const QskColorFilter&,
|
2019-04-10 19:39:06 +02:00
|
|
|
QskTextureRenderer::RenderMode, const QRectF& );
|
2017-07-21 18:21:34 +02:00
|
|
|
|
2018-08-03 08:15:28 +02:00
|
|
|
private:
|
2017-07-21 18:21:34 +02:00
|
|
|
void setTextureId( int ) = delete;
|
2018-08-03 08:15:28 +02:00
|
|
|
void setRect( const QRectF& ) = delete;
|
2017-07-21 18:21:34 +02:00
|
|
|
|
|
|
|
uint m_hash;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|