Mercurial > fife-parpg
diff 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 |
line wrap: on
line diff
--- a/engine/core/gui/guimanager.i Sun Oct 12 20:30:09 2008 +0000 +++ b/engine/core/gui/guimanager.i Tue Oct 14 07:41:48 2008 +0000 @@ -27,25 +27,23 @@ namespace gcn { class Widget; - class ActionEvent; - class ActionListener { - public: - virtual void action(const ActionEvent& actionEvent) = 0; - }; } namespace FIFE { class Console; %feature("notabstract") GUIManager; - class GUIManager: public gcn::ActionListener { + class GUIManager { public: Console* getConsole(); void add(gcn::Widget* widget); void remove(gcn::Widget* widget); GuiFont* createFont(const std::string& path, unsigned int size, const std::string& glyphs); void releaseFont(GuiFont* font); + + KeyEvent translateKeyEvent(const gcn::KeyEvent& evt); + MouseEvent translateMouseEvent(const gcn::MouseEvent& evt); private: - GUIManager(IWidgetListener* widgetListener); + GUIManager(); }; }