diff options
author | markt <markt> | 2007-01-21 18:43:22 (GMT) |
---|---|---|
committer | markt <markt> | 2007-01-21 18:43:22 (GMT) |
commit | feb56381d704d61255ca5b0f0ae60e3f4f5f9986 (patch) | |
tree | a0f7e1279e1c29b58af5a9eb9368c3e1c4f63202 /src/FbTk/Menu.hh | |
parent | 5503545d8f3228dee6db0c7a1d9de18c77a92ca4 (diff) | |
download | fluxbox_pavel-feb56381d704d61255ca5b0f0ae60e3f4f5f9986.zip fluxbox_pavel-feb56381d704d61255ca5b0f0ae60e3f4f5f9986.tar.bz2 |
various changes to menu behavior
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; |