aboutsummaryrefslogtreecommitdiff
path: root/src/ToolTheme.hh
diff options
context:
space:
mode:
authorrathnor <rathnor>2004-01-13 14:41:32 (GMT)
committerrathnor <rathnor>2004-01-13 14:41:32 (GMT)
commit6914d00eb772705ee9e2cced1629ac5938361cfe (patch)
tree0f19dc333b5dcddb5628a262f33d1ebb4400dcd5 /src/ToolTheme.hh
parent9475d7bc8226e58a86dd90f01c56c6e0e96a4969 (diff)
downloadfluxbox_pavel-6914d00eb772705ee9e2cced1629ac5938361cfe.zip
fluxbox_pavel-6914d00eb772705ee9e2cced1629ac5938361cfe.tar.bz2
toolbar transparency
Diffstat (limited to 'src/ToolTheme.hh')
-rw-r--r--src/ToolTheme.hh6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ToolTheme.hh b/src/ToolTheme.hh
index 24ae863..5ca5401 100644
--- a/src/ToolTheme.hh
+++ b/src/ToolTheme.hh
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: ToolTheme.hh,v 1.4 2003/08/29 00:45:41 fluxgen Exp $ 23// $Id: ToolTheme.hh,v 1.5 2004/01/13 14:41:32 rathnor Exp $
24 24
25#ifndef TOOLTHEME_HH 25#ifndef TOOLTHEME_HH
26#define TOOLTHEME_HH 26#define TOOLTHEME_HH
@@ -34,6 +34,8 @@
34#include <X11/Xlib.h> 34#include <X11/Xlib.h>
35#include <string> 35#include <string>
36 36
37class ToolbarTheme;
38
37/// Handles toolbar item theme for text and texture 39/// Handles toolbar item theme for text and texture
38class ToolTheme: public FbTk::Theme, public TextTheme { 40class ToolTheme: public FbTk::Theme, public TextTheme {
39public: 41public:
@@ -46,6 +48,7 @@ public:
46 // textures 48 // textures
47 const FbTk::Texture &texture() const { return *m_texture; } 49 const FbTk::Texture &texture() const { return *m_texture; }
48 const BorderTheme &border() const { return m_border; } 50 const BorderTheme &border() const { return m_border; }
51 inline unsigned char alpha() const { return *m_alpha; }
49 52
50protected: 53protected:
51 FbTk::ThemeItem<FbTk::Texture> &textureTheme() { return m_texture; } 54 FbTk::ThemeItem<FbTk::Texture> &textureTheme() { return m_texture; }
@@ -53,6 +56,7 @@ protected:
53private: 56private:
54 FbTk::ThemeItem<FbTk::Texture> m_texture; 57 FbTk::ThemeItem<FbTk::Texture> m_texture;
55 BorderTheme m_border; 58 BorderTheme m_border;
59 FbTk::ThemeItem<int> m_alpha;
56}; 60};
57 61
58#endif // TOOLTHEME_HH 62#endif // TOOLTHEME_HH