diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-04 09:06:38 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-04 09:06:38 (GMT) |
commit | 60ba709c2f47cc2c7b877aef1b0f297b097853e5 (patch) | |
tree | c722b0dacce3c7c0b1df7bf6ccb2b322bc819f6b /src/SlitTheme.hh | |
parent | b20b243b48683d209f8134b46c6dcea4df94b6cc (diff) | |
download | fluxbox-60ba709c2f47cc2c7b877aef1b0f297b097853e5.zip fluxbox-60ba709c2f47cc2c7b877aef1b0f297b097853e5.tar.bz2 |
add a level of indirection to themes
Diffstat (limited to 'src/SlitTheme.hh')
-rw-r--r-- | src/SlitTheme.hh | 9 |
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 | ||
29 | class SlitTheme:public FbTk::Theme { | 29 | class SlitTheme: public FbTk::Theme, public FbTk::ThemeProxy<SlitTheme> { |
30 | public: | 30 | public: |
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 | |||
40 | private: | 47 | private: |
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; |