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_TEXTURE_NODE_H
|
|
|
|
#define QSK_TEXTURE_NODE_H
|
|
|
|
|
|
|
|
#include "QskGlobal.h"
|
|
|
|
|
2018-07-19 14:10:48 +02:00
|
|
|
#include <qnamespace.h>
|
2018-08-03 08:15:28 +02:00
|
|
|
#include <qsgnode.h>
|
2017-07-21 18:21:34 +02:00
|
|
|
|
|
|
|
class QskTextureNodePrivate;
|
|
|
|
|
|
|
|
class QSK_EXPORT QskTextureNode : public QSGGeometryNode
|
|
|
|
{
|
2018-08-03 08:15:28 +02:00
|
|
|
public:
|
2017-07-21 18:21:34 +02:00
|
|
|
QskTextureNode();
|
2018-07-31 17:32:25 +02:00
|
|
|
~QskTextureNode() override;
|
2017-07-21 18:21:34 +02:00
|
|
|
|
2020-10-26 18:06:06 +01:00
|
|
|
bool isNull() const;
|
|
|
|
|
2018-08-03 08:15:28 +02:00
|
|
|
void setRect( const QRectF& );
|
2017-07-21 18:21:34 +02:00
|
|
|
QRectF rect() const;
|
|
|
|
|
2017-12-07 17:04:05 +01:00
|
|
|
void setTextureId( uint id );
|
|
|
|
uint textureId() const;
|
2017-07-21 18:21:34 +02:00
|
|
|
|
|
|
|
void setMirrored( Qt::Orientations );
|
|
|
|
Qt::Orientations mirrored() const;
|
|
|
|
|
2018-08-03 08:15:28 +02:00
|
|
|
private:
|
2017-07-21 18:21:34 +02:00
|
|
|
Q_DECLARE_PRIVATE( QskTextureNode )
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|