diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-14 01:18:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-15 22:26:03 +0300 |
commit | 62a466e53cbb49c5338f8ea7f96b46e00d3b0bc4 (patch) | |
tree | 9d69e63c1d2263aadd49afa551c23aff8ec51c2b /src/gui/gui.h | |
parent | 1d290d6a54c2ea6e689446551a8d16025a179177 (diff) | |
download | manaplus-62a466e53cbb49c5338f8ea7f96b46e00d3b0bc4.tar.gz manaplus-62a466e53cbb49c5338f8ea7f96b46e00d3b0bc4.tar.bz2 manaplus-62a466e53cbb49c5338f8ea7f96b46e00d3b0bc4.tar.xz manaplus-62a466e53cbb49c5338f8ea7f96b46e00d3b0bc4.zip |
Add popup list. Replace listbox in dropdown to popup list.
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r-- | src/gui/gui.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h index db373193a..04b6ddba3 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -142,6 +142,10 @@ class Gui final : public gcn::Gui void getAbsolutePosition(gcn::Widget *widget, int &x, int &y); + void addGlobalFocusListener(gcn::FocusListener* focusListener); + + void removeGlobalFocusListener(gcn::FocusListener* focusListener); + protected: void handleMouseMoved(const gcn::MouseInput &mouseInput); @@ -163,6 +167,9 @@ class Gui final : public gcn::Gui float mMouseCursorAlpha; int mMouseInactivityTimer; int mCursorType; + + typedef std::list<FocusListener*> FocusListenerList; + FocusListenerList mFocusListeners; }; extern Gui *gui; /**< The GUI system */ |