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;
|
2020-11-01 15:44:15 +01:00
|
|
|
class QQuickWindow;
|
2017-07-21 18:21:34 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
2020-11-01 15:44:15 +01:00
|
|
|
void setGraphic( QQuickWindow*,
|
|
|
|
const QskGraphic&, const QskColorFilter&,
|
|
|
|
QskTextureRenderer::RenderMode, const QRectF&,
|
|
|
|
Qt::Orientations mirrored = Qt::Orientations() );
|
2017-07-21 18:21:34 +02:00
|
|
|
|
2018-08-03 08:15:28 +02:00
|
|
|
private:
|
2020-11-01 15:44:15 +01:00
|
|
|
void setTexture( QQuickWindow*,
|
|
|
|
const QRectF&, uint id, Qt::Orientations ) = delete;
|
2017-07-21 18:21:34 +02:00
|
|
|
|
2022-03-25 10:28:06 +01:00
|
|
|
QskHashValue m_hash;
|
2017-07-21 18:21:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|