blob: 5ff7cc4c09ddd4689086494a89932355e337686f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef NINEPATCHNODE_H
#define NINEPATCHNODE_H
#include <private/qsgadaptationlayer_p.h>
class NinePatchNode : public QSGNinePatchNode
{
public:
NinePatchNode();
virtual void setTexture(QSGTexture *texture);
virtual void setBounds(const QRectF &bounds);
virtual void setDevicePixelRatio(qreal ratio);
virtual void setPadding(int left, int top, int right, int bottom);
virtual void update();
void paint(QPainter *painter);
private:
QPixmap m_pixmap;
QRectF m_bounds;
};
#endif // NINEPATCHNODE_H
|