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