aboutsummaryrefslogtreecommitdiff
path: root/src/ButtonTheme.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/ButtonTheme.hh
parentb20b243b48683d209f8134b46c6dcea4df94b6cc (diff)
downloadfluxbox_pavel-60ba709c2f47cc2c7b877aef1b0f297b097853e5.zip
fluxbox_pavel-60ba709c2f47cc2c7b877aef1b0f297b097853e5.tar.bz2
add a level of indirection to themes
Diffstat (limited to 'src/ButtonTheme.hh')
-rw-r--r--src/ButtonTheme.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ButtonTheme.hh b/src/ButtonTheme.hh
index 00c6446..7f43eb9 100644
--- a/src/ButtonTheme.hh
+++ b/src/ButtonTheme.hh
@@ -27,7 +27,7 @@
27 27
28#include "FbTk/GContext.hh" 28#include "FbTk/GContext.hh"
29 29
30class ButtonTheme: public ToolTheme { 30class ButtonTheme: public ToolTheme, public FbTk::ThemeProxy<ButtonTheme> {
31public: 31public:
32 ButtonTheme(int screen_num, 32 ButtonTheme(int screen_num,
33 const std::string &name, const std::string &alt_name, 33 const std::string &name, const std::string &alt_name,
@@ -43,6 +43,12 @@ public:
43 int scale() const { return *m_scale; } // scale factor for inside objects 43 int scale() const { return *m_scale; } // scale factor for inside objects
44 const std::string &name() { return m_name; } 44 const std::string &name() { return m_name; }
45 45
46 virtual FbTk::Subject &reconfigSig() { return FbTk::Theme::reconfigSig(); }
47 virtual const FbTk::Subject &reconfigSig() const { return FbTk::Theme::reconfigSig(); }
48
49 virtual ButtonTheme *operator ->() { return this; }
50 virtual const ButtonTheme *operator ->() const { return this; }
51
46private: 52private:
47 FbTk::ThemeItem<FbTk::Color> m_pic_color; 53 FbTk::ThemeItem<FbTk::Color> m_pic_color;
48 FbTk::ThemeItem<FbTk::Texture> m_pressed_texture; 54 FbTk::ThemeItem<FbTk::Texture> m_pressed_texture;