comparison engine/core/gui/guimanager.i @ 157:bb9902910067

input_rework merged! Bad features: * Broken DND for zero-projekt. * Design short-comings.
author phoku@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 14 Oct 2008 07:41:48 +0000
parents 90005975cdbb
children 64738befdf3b
comparison
equal deleted inserted replaced
156:376b8afc9a18 157:bb9902910067
25 #include "gui/guimanager.h" 25 #include "gui/guimanager.h"
26 %} 26 %}
27 27
28 namespace gcn { 28 namespace gcn {
29 class Widget; 29 class Widget;
30 class ActionEvent;
31 class ActionListener {
32 public:
33 virtual void action(const ActionEvent& actionEvent) = 0;
34 };
35 } 30 }
36 namespace FIFE { 31 namespace FIFE {
37 class Console; 32 class Console;
38 33
39 %feature("notabstract") GUIManager; 34 %feature("notabstract") GUIManager;
40 class GUIManager: public gcn::ActionListener { 35 class GUIManager {
41 public: 36 public:
42 Console* getConsole(); 37 Console* getConsole();
43 void add(gcn::Widget* widget); 38 void add(gcn::Widget* widget);
44 void remove(gcn::Widget* widget); 39 void remove(gcn::Widget* widget);
45 GuiFont* createFont(const std::string& path, unsigned int size, const std::string& glyphs); 40 GuiFont* createFont(const std::string& path, unsigned int size, const std::string& glyphs);
46 void releaseFont(GuiFont* font); 41 void releaseFont(GuiFont* font);
42
43 KeyEvent translateKeyEvent(const gcn::KeyEvent& evt);
44 MouseEvent translateMouseEvent(const gcn::MouseEvent& evt);
47 45
48 private: 46 private:
49 GUIManager(IWidgetListener* widgetListener); 47 GUIManager();
50 }; 48 };
51 } 49 }