aboutsummaryrefslogtreecommitdiff
path: root/src/WinButtonTheme.hh
diff options
context:
space:
mode:
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;