2
* This file is part of unity-2d
4
* Copyright 2012 Canonical Ltd.
7
* - Ugo Riboni <ugo.riboni@canonical.com>
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; version 3.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
22
#ifndef INPUTSHAPEMASK_H
23
#define INPUTSHAPEMASK_H
30
class InputShapeMask : public QObject
33
Q_PROPERTY(QString source READ source WRITE setSource NOTIFY sourceChanged)
34
Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
35
Q_PROPERTY(QPoint position READ position WRITE setPosition NOTIFY positionChanged)
36
Q_PROPERTY(QBitmap shape READ shape NOTIFY shapeChanged)
37
Q_PROPERTY(bool enabled READ enabled WRITE setEnabled NOTIFY enabledChanged)
40
explicit InputShapeMask(QObject *parent = 0);
42
QString source() const;
44
QPoint position() const;
46
QBitmap shape() const;
48
void setSource(const QString& source);
49
void setColor(const QColor& color);
50
void setPosition(const QPoint& position);
51
void setEnabled(bool enabled);
54
void sourceChanged(const QString& source);
55
void colorChanged(const QColor& color);
56
void enabledChanged();
58
void positionChanged();
71
#endif // INPUTSHAPEMASK_H