summaryrefslogtreecommitdiffstats
path: root/softwarecontext/ninepatchnode.h
blob: 454aadb180ffc8371d03b4a41ccb4e6b130b224c (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(qreal left, qreal top, qreal right, qreal bottom);
    virtual void update();

    void paint(QPainter *painter);

private:
    QPixmap m_pixmap;
    QRectF m_bounds;
};

#endif // NINEPATCHNODE_H