diff options
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; |