summaryrefslogtreecommitdiff
path: root/src/gui/mw_button.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-15 14:36:01 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-15 14:36:01 +0000
commita4fa7ae6f3f0966b6fe45c65b1a0fe78f59994ed (patch)
tree7576a27b5f135164fcbe9d1ad957f9cefc5575dc /src/gui/mw_button.h
parent21c6ab4d1f7f5cecd5c1720c6949b4bfe28132ad (diff)
downloadmana-client-a4fa7ae6f3f0966b6fe45c65b1a0fe78f59994ed.tar.gz
mana-client-a4fa7ae6f3f0966b6fe45c65b1a0fe78f59994ed.tar.bz2
mana-client-a4fa7ae6f3f0966b6fe45c65b1a0fe78f59994ed.tar.xz
mana-client-a4fa7ae6f3f0966b6fe45c65b1a0fe78f59994ed.zip
Good old Aqua buttons back but now using Guichan
Diffstat (limited to 'src/gui/mw_button.h')
-rw-r--r--src/gui/mw_button.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/gui/mw_button.h b/src/gui/mw_button.h
new file mode 100644
index 00000000..1d63c2b3
--- /dev/null
+++ b/src/gui/mw_button.h
@@ -0,0 +1,50 @@
+/*
+ * The Mana World
+ * Copyright 2004 The Mana World Development Team
+ *
+ * This file is part of The Mana World.
+ *
+ * The Mana World 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 2 of the License, or
+ * any later version.
+ *
+ * The Mana World 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 The Mana World; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef _TMW_WIDGETS_H
+#define _TMW_WIDGETS_H
+
+#include "gui.h"
+
+class MWButton : public gcn::Button {
+ public:
+ MWButton(const std::string& caption);
+
+ // Inherited from Widget
+
+ void draw(gcn::Graphics* graphics);
+ void lostFocus();
+
+ // Inherited from MouseListener
+
+ void mousePress(int x, int y, int button);
+ void mouseRelease(int x, int y, int button);
+
+ // Inherited from KeyListener
+
+ void keyPress(const gcn::Key& key);
+ void keyRelease(const gcn::Key& key);
+
+ private:
+ bool mouseDown, keyDown;
+};
+
+#endif