summaryrefslogtreecommitdiff
path: root/src/FbMenu.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbMenu.hh')
-rw-r--r--src/FbMenu.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/FbMenu.hh b/src/FbMenu.hh
index 9114192..b9c4654 100644
--- a/src/FbMenu.hh
+++ b/src/FbMenu.hh
@@ -25,6 +25,8 @@
25#include "FbTk/Menu.hh" 25#include "FbTk/Menu.hh"
26#include "FbTk/XLayerItem.hh" 26#include "FbTk/XLayerItem.hh"
27 27
28class FluxboxWindow;
29
28namespace FbTk { 30namespace FbTk {
29class MenuTheme; 31class MenuTheme;
30} 32}
@@ -37,9 +39,17 @@ public:
37 virtual ~FbMenu() { } 39 virtual ~FbMenu() { }
38 void raise() { m_layeritem.raise(); } 40 void raise() { m_layeritem.raise(); }
39 void lower() { m_layeritem.lower(); } 41 void lower() { m_layeritem.lower(); }
42 void show();
43 void buttonPressEvent(XButtonEvent &be);
40 void buttonReleaseEvent(XButtonEvent &be); 44 void buttonReleaseEvent(XButtonEvent &be);
45 void keyPressEvent(XKeyEvent &ke);
46
47 static void setWindow(FluxboxWindow *win) { s_window = win; }
48 static FluxboxWindow *window() { return s_window; }
49
41private: 50private:
42 FbTk::XLayerItem m_layeritem; 51 FbTk::XLayerItem m_layeritem;
52 static FluxboxWindow *s_window;
43}; 53};
44 54
45#endif // FBMENU_HH 55#endif // FBMENU_HH