diff options
author | fluxgen <fluxgen> | 2003-07-10 11:25:13 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-07-10 11:25:13 (GMT) |
commit | 442696410273af5cf720c03836300582afb47567 (patch) | |
tree | ccb6e47290e2096193468090f102588a76f8a894 | |
parent | 5825bf751938c5eb66ef236af11321f649d27b5f (diff) | |
download | fluxbox_paul-442696410273af5cf720c03836300582afb47567.zip fluxbox_paul-442696410273af5cf720c03836300582afb47567.tar.bz2 |
added Shape and extended clearWindow and reconfigure from FbTk Menu
-rw-r--r-- | src/FbMenu.hh | 17 |
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 | 31 | class MenuTheme; |
32 | class Shape; | ||
33 | /// a layered and shaped menu | ||
31 | class FbMenu:public FbTk::Menu { | 34 | class FbMenu:public FbTk::Menu { |
32 | public: | 35 | public: |
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(); | ||
37 | private: | 43 | private: |
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 |