aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FbMenu.hh17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/FbMenu.hh b/src/FbMenu.hh
index c9d3771..e91002b 100644
--- a/src/FbMenu.hh
+++ b/src/FbMenu.hh
@@ -1,6 +1,6 @@
1// FbMenu.hh for Fluxbox Window Manager 1// FbMenu.hh for Fluxbox Window Manager
2// Copyright (c) 2003 Henrik Kinnunen (fluxgen at users.sourceforge.net) 2// Copyright (c) 2003 Henrik Kinnunen (fluxgen at users.sourceforge.net)
3// 3// and Simon Bowden (rathnor at users.sourceforge.net)
4// Permission is hereby granted, free of charge, to any person obtaining a 4// Permission is hereby granted, free of charge, to any person obtaining a
5// copy of this software and associated documentation files (the "Software"), 5// copy of this software and associated documentation files (the "Software"),
6// to deal in the Software without restriction, including without limitation 6// to deal in the Software without restriction, including without limitation
@@ -19,23 +19,30 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbMenu.hh,v 1.1 2003/02/18 15:06:25 rathnor Exp $ 22// $Id: FbMenu.hh,v 1.2 2003/07/10 11:25:13 fluxgen Exp $
23 23
24#ifndef FBMENU_HH 24#ifndef FBMENU_HH
25#define FBMENU_HH 25#define FBMENU_HH
26 26
27#include "Menu.hh" 27#include "Menu.hh"
28#include "XLayerItem.hh" 28#include "XLayerItem.hh"
29#include <memory>
29 30
30/// a layered menu 31class MenuTheme;
32class Shape;
33/// a layered and shaped menu
31class FbMenu:public FbTk::Menu { 34class FbMenu:public FbTk::Menu {
32public: 35public:
33 FbMenu(FbTk::MenuTheme &tm, int screen_num, FbTk::ImageControl &imgctrl, 36 FbMenu(MenuTheme &tm, int screen_num, FbTk::ImageControl &imgctrl,
34 FbTk::XLayer &layer):FbTk::Menu(tm, screen_num, imgctrl), m_layeritem(fbwindow(), layer) { } 37 FbTk::XLayer &layer);
38 ~FbMenu();
39 void clearWindow();
35 void raise() { m_layeritem.raise(); } 40 void raise() { m_layeritem.raise(); }
36 void lower() { m_layeritem.lower(); } 41 void lower() { m_layeritem.lower(); }
42 void reconfigure();
37private: 43private:
38 FbTk::XLayerItem m_layeritem; 44 FbTk::XLayerItem m_layeritem;
45 std::auto_ptr<Shape> m_shape;
39}; 46};
40 47
41#endif // FBMENU_HH 48#endif // FBMENU_HH