summaryrefslogtreecommitdiffstats
path: root/src/imports/particles/ellipseextruder.h
blob: 034af0bc36b72e45860e0a4b6bfc507b425e6283 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef ELLIPSEEXTRUDER_H
#define ELLIPSEEXTRUDER_H
#include "particleextruder.h"

QT_BEGIN_HEADER

QT_BEGIN_NAMESPACE

QT_MODULE(Declarative)


class EllipseExtruder : public ParticleExtruder
{
    Q_OBJECT
    Q_PROPERTY(bool fill READ fill WRITE setFill NOTIFY fillChanged)
public:
    explicit EllipseExtruder(QObject *parent = 0);
    virtual QPointF extrude(const QRectF &);

    bool fill() const
    {
        return m_fill;
    }

signals:

    void fillChanged(bool arg);

public slots:

    void setFill(bool arg)
    {
        if (m_fill != arg) {
            m_fill = arg;
            emit fillChanged(arg);
        }
    }
private:
    bool m_fill;
};

QT_END_NAMESPACE
QT_END_HEADER
#endif // ELLIPSEEXTRUDER_H