diff options
Diffstat (limited to 'src/FbTk/Menu.hh')
-rw-r--r-- | src/FbTk/Menu.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/FbTk/Menu.hh b/src/FbTk/Menu.hh index 28eb70a..94a1e6f 100644 --- a/src/FbTk/Menu.hh +++ b/src/FbTk/Menu.hh | |||
@@ -160,6 +160,7 @@ public: | |||
160 | bool isItemSelectable(unsigned int index) const; | 160 | bool isItemSelectable(unsigned int index) const; |
161 | inline const MenuTheme &theme() const { return m_theme; } | 161 | inline const MenuTheme &theme() const { return m_theme; } |
162 | inline unsigned char alpha() const { return theme().alpha(); } | 162 | inline unsigned char alpha() const { return theme().alpha(); } |
163 | inline static Menu *shownMenu() { return shown; } | ||
163 | inline static Menu *focused() { return s_focused; } | 164 | inline static Menu *focused() { return s_focused; } |
164 | /// @return menuitem at index | 165 | /// @return menuitem at index |
165 | inline const MenuItem *find(unsigned int index) const { return menuitems[index]; } | 166 | inline const MenuItem *find(unsigned int index) const { return menuitems[index]; } |
@@ -235,6 +236,7 @@ private: | |||
235 | int m_active_index; ///< current highlighted index | 236 | int m_active_index; ///< current highlighted index |
236 | 237 | ||
237 | Drawable m_root_pm; | 238 | Drawable m_root_pm; |
239 | static Menu *shown; ///< used for determining if there's a menu open at all | ||
238 | static Menu *s_focused; ///< holds current input focused menu, so one can determine if a menu is focused | 240 | static Menu *s_focused; ///< holds current input focused menu, so one can determine if a menu is focused |
239 | bool m_need_update; | 241 | bool m_need_update; |
240 | Timer m_submenu_timer; | 242 | Timer m_submenu_timer; |