diff options
author | fluxgen <fluxgen> | 2003-12-12 18:18:49 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-12-12 18:18:49 (GMT) |
commit | bf75608df0025d49ea0f52326a402825fcc55d06 (patch) | |
tree | 9a47943a7618768bebdfbcd930c066a20ef65794 /src/FbTk/Menu.hh | |
parent | 624fd1e1215812057ef4d1322cafe587717a3bf8 (diff) | |
download | fluxbox-bf75608df0025d49ea0f52326a402825fcc55d06.zip fluxbox-bf75608df0025d49ea0f52326a402825fcc55d06.tar.bz2 |
menu delay and mode
Diffstat (limited to 'src/FbTk/Menu.hh')
-rw-r--r-- | src/FbTk/Menu.hh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/FbTk/Menu.hh b/src/FbTk/Menu.hh index 9a3f425..ec75477 100644 --- a/src/FbTk/Menu.hh +++ b/src/FbTk/Menu.hh | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Menu.hh,v 1.25 2003/12/10 23:08:06 fluxgen Exp $ | 25 | // $Id: Menu.hh,v 1.26 2003/12/12 18:18:49 fluxgen Exp $ |
26 | 26 | ||
27 | #ifndef FBTK_MENU_HH | 27 | #ifndef FBTK_MENU_HH |
28 | #define FBTK_MENU_HH | 28 | #define FBTK_MENU_HH |
@@ -39,6 +39,7 @@ | |||
39 | #include "Observer.hh" | 39 | #include "Observer.hh" |
40 | #include "FbPixmap.hh" | 40 | #include "FbPixmap.hh" |
41 | #include "MenuTheme.hh" | 41 | #include "MenuTheme.hh" |
42 | #include "Timer.hh" | ||
42 | 43 | ||
43 | namespace FbTk { | 44 | namespace FbTk { |
44 | 45 | ||
@@ -174,6 +175,11 @@ protected: | |||
174 | inline const Menu *parent() const { return m_parent; } | 175 | inline const Menu *parent() const { return m_parent; } |
175 | 176 | ||
176 | private: | 177 | private: |
178 | void openSubmenu(); | ||
179 | void closeMenu(); | ||
180 | void startHide(); | ||
181 | void stopHide(); | ||
182 | |||
177 | void renderTransFrame(); | 183 | void renderTransFrame(); |
178 | 184 | ||
179 | typedef std::vector<MenuItem *> Menuitems; | 185 | typedef std::vector<MenuItem *> Menuitems; |
@@ -215,6 +221,8 @@ private: | |||
215 | static Menu *s_focused; ///< holds current input focused menu, so one can determine if a menu is focused | 221 | static Menu *s_focused; ///< holds current input focused menu, so one can determine if a menu is focused |
216 | FbPixmap m_frame_pm; | 222 | FbPixmap m_frame_pm; |
217 | bool m_need_update; | 223 | bool m_need_update; |
224 | Timer m_submenu_timer; | ||
225 | Timer m_hide_timer; | ||
218 | }; | 226 | }; |
219 | 227 | ||
220 | }; // end namespace FbTk | 228 | }; // end namespace FbTk |