diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-03-20 18:39:42 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-03-20 18:39:42 -0400 |
commit | 3d0becd1b4b00d2cb4246987203161f1b2867d5b (patch) | |
tree | edb6670140c428eebea1dedceb977a26a547ad05 /sigencore | |
parent | fbb4c072ef3837554392eff16387b4ac2d5d88b5 (diff) | |
download | sigen-3d0becd1b4b00d2cb4246987203161f1b2867d5b.tar.gz sigen-3d0becd1b4b00d2cb4246987203161f1b2867d5b.tar.xz sigen-3d0becd1b4b00d2cb4246987203161f1b2867d5b.zip |
Added Canvas interface
Diffstat (limited to 'sigencore')
-rw-r--r-- | sigencore/CMakeLists.txt | 1 | ||||
-rw-r--r-- | sigencore/Canvas.h | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/sigencore/CMakeLists.txt b/sigencore/CMakeLists.txt index ea66bdb9..e4dce53d 100644 --- a/sigencore/CMakeLists.txt +++ b/sigencore/CMakeLists.txt @@ -2,6 +2,7 @@ project(sigencore) set(sigencore_HEADERS Arena.h + Canvas.h Client.h Containment.h Creature.h diff --git a/sigencore/Canvas.h b/sigencore/Canvas.h new file mode 100644 index 00000000..2b11eae7 --- /dev/null +++ b/sigencore/Canvas.h @@ -0,0 +1,44 @@ +class QString; +#include <QObject> +class QString; +/* + * Copyright 2009 Ben Boeckel <MathStuf@gmail.com> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef SIGENCORE_CANVAS +#define SIGENCORE_CANVAS + +// Sigscript includes +#include <sigscript/Config.h> + +namespace Sigencore +{ +class Canvas : public Sigscript::Config +{ + Q_OBJECT + + public: + Canvas(Sigscript::Config* parent); + + Q_SCRIPTABLE virtual void runScript(const QString& name, const QVariantList& parameters) = 0; + Q_SCRIPTABLE virtual void addSprite(const QString& name, const int x, const int y) = 0; + Q_SCRIPTABLE virtual void transform(const QString& transform, const QString& object) = 0; + + virtual QWidget* widget() = 0; +}; +} + +#endif |