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/FbWinFrameTheme.hh | |
parent | b20b243b48683d209f8134b46c6dcea4df94b6cc (diff) | |
download | fluxbox-60ba709c2f47cc2c7b877aef1b0f297b097853e5.zip fluxbox-60ba709c2f47cc2c7b877aef1b0f297b097853e5.tar.bz2 |
add a level of indirection to themes
Diffstat (limited to 'src/FbWinFrameTheme.hh')
-rw-r--r-- | src/FbWinFrameTheme.hh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/FbWinFrameTheme.hh b/src/FbWinFrameTheme.hh index 7d5106c..e72d6f5 100644 --- a/src/FbWinFrameTheme.hh +++ b/src/FbWinFrameTheme.hh | |||
@@ -32,7 +32,8 @@ | |||
32 | 32 | ||
33 | #include "IconbarTheme.hh" | 33 | #include "IconbarTheme.hh" |
34 | 34 | ||
35 | class FbWinFrameTheme: public FbTk::Theme { | 35 | class FbWinFrameTheme: public FbTk::Theme, |
36 | public FbTk::ThemeProxy<FbWinFrameTheme> { | ||
36 | public: | 37 | public: |
37 | explicit FbWinFrameTheme(int screen_num); | 38 | explicit FbWinFrameTheme(int screen_num); |
38 | ~FbWinFrameTheme(); | 39 | ~FbWinFrameTheme(); |
@@ -93,6 +94,12 @@ public: | |||
93 | 94 | ||
94 | IconbarTheme &iconbarTheme() { return m_iconbar_theme; } | 95 | IconbarTheme &iconbarTheme() { return m_iconbar_theme; } |
95 | 96 | ||
97 | virtual FbTk::Subject &reconfigSig() { return FbTk::Theme::reconfigSig(); } | ||
98 | virtual const FbTk::Subject &reconfigSig() const { return FbTk::Theme::reconfigSig(); } | ||
99 | |||
100 | virtual FbWinFrameTheme *operator ->() { return this; } | ||
101 | virtual const FbWinFrameTheme *operator ->() const { return this; } | ||
102 | |||
96 | private: | 103 | private: |
97 | FbTk::ThemeItem<FbTk::Texture> m_title_focus, m_title_unfocus; | 104 | FbTk::ThemeItem<FbTk::Texture> m_title_focus, m_title_unfocus; |
98 | FbTk::ThemeItem<FbTk::Texture> m_handle_focus, m_handle_unfocus; | 105 | FbTk::ThemeItem<FbTk::Texture> m_handle_focus, m_handle_unfocus; |