aboutsummaryrefslogtreecommitdiff
path: root/src/WinButtonTheme.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/WinButtonTheme.hh
parentb20b243b48683d209f8134b46c6dcea4df94b6cc (diff)
downloadfluxbox-60ba709c2f47cc2c7b877aef1b0f297b097853e5.zip
fluxbox-60ba709c2f47cc2c7b877aef1b0f297b097853e5.tar.bz2
add a level of indirection to themes
Diffstat (limited to 'src/WinButtonTheme.hh')
-rw-r--r--src/WinButtonTheme.hh9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/WinButtonTheme.hh b/src/WinButtonTheme.hh
index 70a2297..7d00e1e 100644
--- a/src/WinButtonTheme.hh
+++ b/src/WinButtonTheme.hh
@@ -27,7 +27,8 @@
27 27
28class FbWinFrameTheme; 28class FbWinFrameTheme;
29 29
30class WinButtonTheme: public FbTk::Theme { 30class WinButtonTheme: public FbTk::Theme,
31 public FbTk::ThemeProxy<WinButtonTheme> {
31public: 32public:
32 WinButtonTheme(int screen_num, FbWinFrameTheme &frame_theme); 33 WinButtonTheme(int screen_num, FbWinFrameTheme &frame_theme);
33 ~WinButtonTheme(); 34 ~WinButtonTheme();
@@ -84,6 +85,12 @@ public:
84 FbTk::PixmapWithMask &titleUnfocusPixmap() { return *m_title_unfocus_pm; } 85 FbTk::PixmapWithMask &titleUnfocusPixmap() { return *m_title_unfocus_pm; }
85 const FbTk::PixmapWithMask &titleUnfocusPixmap() const { return *m_title_unfocus_pm; } 86 const FbTk::PixmapWithMask &titleUnfocusPixmap() const { return *m_title_unfocus_pm; }
86 87
88 virtual FbTk::Subject &reconfigSig() { return FbTk::Theme::reconfigSig(); }
89 virtual const FbTk::Subject &reconfigSig() const { return FbTk::Theme::reconfigSig(); }
90
91 virtual WinButtonTheme *operator ->() { return this; }
92 virtual const WinButtonTheme *operator ->() const { return this; }
93
87private: 94private:
88 95
89 FbTk::ThemeItem<FbTk::PixmapWithMask> m_close_pm, m_close_unfocus_pm, m_close_pressed_pm; 96 FbTk::ThemeItem<FbTk::PixmapWithMask> m_close_pm, m_close_unfocus_pm, m_close_pressed_pm;