summaryrefslogtreecommitdiff
path: root/src/gui/gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r--src/gui/gui.h7
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 */