aboutsummaryrefslogtreecommitdiff
path: root/src/SlitTheme.hh
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-01-04 09:06:38 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-01-04 09:06:38 (GMT)
commit60ba709c2f47cc2c7b877aef1b0f297b097853e5 (patch)
treec722b0dacce3c7c0b1df7bf6ccb2b322bc819f6b /src/SlitTheme.hh
parentb20b243b48683d209f8134b46c6dcea4df94b6cc (diff)
downloadfluxbox_pavel-60ba709c2f47cc2c7b877aef1b0f297b097853e5.zip
fluxbox_pavel-60ba709c2f47cc2c7b877aef1b0f297b097853e5.tar.bz2
add a level of indirection to themes
Diffstat (limited to 'src/SlitTheme.hh')
-rw-r--r--src/SlitTheme.hh9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/SlitTheme.hh b/src/SlitTheme.hh
index 33fada7..20be862 100644
--- a/src/SlitTheme.hh
+++ b/src/SlitTheme.hh
@@ -26,7 +26,7 @@
26#include "FbTk/Texture.hh" 26#include "FbTk/Texture.hh"
27#include "FbTk/Color.hh" 27#include "FbTk/Color.hh"
28 28
29class SlitTheme:public FbTk::Theme { 29class SlitTheme: public FbTk::Theme, public FbTk::ThemeProxy<SlitTheme> {
30public: 30public:
31 explicit SlitTheme(int screen_num); 31 explicit SlitTheme(int screen_num);
32 32
@@ -37,6 +37,13 @@ public:
37 const FbTk::Color &borderColor() const { return *m_border_color; } 37 const FbTk::Color &borderColor() const { return *m_border_color; }
38 int borderWidth() const { return *m_border_width; } 38 int borderWidth() const { return *m_border_width; }
39 int bevelWidth() const { return *m_bevel_width; } 39 int bevelWidth() const { return *m_bevel_width; }
40
41 virtual FbTk::Subject &reconfigSig() { return FbTk::Theme::reconfigSig(); }
42 virtual const FbTk::Subject &reconfigSig() const { return FbTk::Theme::reconfigSig(); }
43
44 virtual SlitTheme *operator ->() { return this; }
45 virtual const SlitTheme *operator ->() const { return this; }
46
40private: 47private:
41 FbTk::ThemeItem<FbTk::Texture> m_texture; 48 FbTk::ThemeItem<FbTk::Texture> m_texture;
42 FbTk::ThemeItem<int> m_border_width, m_bevel_width; 49 FbTk::ThemeItem<int> m_border_width, m_bevel_width;