aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrameTheme.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/FbWinFrameTheme.hh
parentb20b243b48683d209f8134b46c6dcea4df94b6cc (diff)
downloadfluxbox-60ba709c2f47cc2c7b877aef1b0f297b097853e5.zip
fluxbox-60ba709c2f47cc2c7b877aef1b0f297b097853e5.tar.bz2
add a level of indirection to themes
Diffstat (limited to 'src/FbWinFrameTheme.hh')
-rw-r--r--src/FbWinFrameTheme.hh9
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
35class FbWinFrameTheme: public FbTk::Theme { 35class FbWinFrameTheme: public FbTk::Theme,
36 public FbTk::ThemeProxy<FbWinFrameTheme> {
36public: 37public:
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
96private: 103private:
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;