aboutsummaryrefslogtreecommitdiff
path: root/src/IconbarTool.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2006-10-16 18:49:33 (GMT)
committerfluxgen <fluxgen>2006-10-16 18:49:33 (GMT)
commita3b30e1c6356c38b6ce0f9cc8f26ddc93814183c (patch)
tree9289a9c0d416423fe5eba71d9da5863ccaeb854a /src/IconbarTool.hh
parent9f4baeb0fc7107f3d0a35dccd6027cecb5e5b72d (diff)
downloadfluxbox_pavel-a3b30e1c6356c38b6ce0f9cc8f26ddc93814183c.zip
fluxbox_pavel-a3b30e1c6356c38b6ce0f9cc8f26ddc93814183c.tar.bz2
some cleaning, using CachedPixmap
Diffstat (limited to 'src/IconbarTool.hh')
-rw-r--r--src/IconbarTool.hh9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/IconbarTool.hh b/src/IconbarTool.hh
index 3d7848d..3512f78 100644
--- a/src/IconbarTool.hh
+++ b/src/IconbarTool.hh
@@ -29,6 +29,7 @@
29#include "Container.hh" 29#include "Container.hh"
30#include "FbMenu.hh" 30#include "FbMenu.hh"
31 31
32#include "FbTk/CachedPixmap.hh"
32#include "FbTk/Observer.hh" 33#include "FbTk/Observer.hh"
33#include "FbTk/Resource.hh" 34#include "FbTk/Resource.hh"
34#include "FbTk/Menu.hh" 35#include "FbTk/Menu.hh"
@@ -88,7 +89,9 @@ public:
88 89
89 void setOrientation(FbTk::Orientation orient); 90 void setOrientation(FbTk::Orientation orient);
90 Container::Alignment alignment() const { return m_icon_container.alignment(); } 91 Container::Alignment alignment() const { return m_icon_container.alignment(); }
92
91private: 93private:
94
92 /// @return button associated with window 95 /// @return button associated with window
93 IconButton *findButton(FluxboxWindow &win); 96 IconButton *findButton(FluxboxWindow &win);
94 97
@@ -122,10 +125,10 @@ private:
122 Container m_icon_container; 125 Container m_icon_container;
123 IconbarTheme &m_theme; 126 IconbarTheme &m_theme;
124 // cached pixmaps 127 // cached pixmaps
125 Pixmap m_focused_pm, m_unfocused_pm; 128 FbTk::CachedPixmap m_focused_pm, m_unfocused_pm;
126 // some are a fraction bigger due to rounding 129 // some are a fraction bigger due to rounding
127 Pixmap m_focused_err_pm, m_unfocused_err_pm; 130 FbTk::CachedPixmap m_focused_err_pm, m_unfocused_err_pm;
128 Pixmap m_empty_pm; ///< pixmap for empty container 131 FbTk::CachedPixmap m_empty_pm; ///< pixmap for empty container
129 132
130 133
131 IconList m_icon_list; 134 IconList m_icon_list;