aboutsummaryrefslogtreecommitdiff
path: root/src/RootTheme.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/RootTheme.hh
parentb20b243b48683d209f8134b46c6dcea4df94b6cc (diff)
downloadfluxbox-60ba709c2f47cc2c7b877aef1b0f297b097853e5.zip
fluxbox-60ba709c2f47cc2c7b877aef1b0f297b097853e5.tar.bz2
add a level of indirection to themes
Diffstat (limited to 'src/RootTheme.hh')
-rw-r--r--src/RootTheme.hh10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/RootTheme.hh b/src/RootTheme.hh
index 96d9f0e..1e37cfe 100644
--- a/src/RootTheme.hh
+++ b/src/RootTheme.hh
@@ -34,7 +34,7 @@ class ImageControl;
34} 34}
35 35
36/// Contains border color, border size, bevel width and opGC for objects like geometry window in BScreen 36/// Contains border color, border size, bevel width and opGC for objects like geometry window in BScreen
37class RootTheme: public FbTk::Theme { 37class RootTheme: public FbTk::Theme, public FbTk::ThemeProxy<RootTheme> {
38public: 38public:
39 /// constructor 39 /// constructor
40 /// @param resmanager resource manager for finding specific resources 40 /// @param resmanager resource manager for finding specific resources
@@ -53,7 +53,13 @@ public:
53 int join_style) { 53 int join_style) {
54 m_opgc.setLineAttributes(width, line_style, cap_style, join_style); 54 m_opgc.setLineAttributes(width, line_style, cap_style, join_style);
55 } 55 }
56 56
57 virtual FbTk::Subject &reconfigSig() { return FbTk::Theme::reconfigSig(); }
58 virtual const FbTk::Subject &reconfigSig() const { return FbTk::Theme::reconfigSig(); }
59
60 virtual RootTheme *operator ->() { return this; }
61 virtual const RootTheme *operator ->() const { return this; }
62
57private: 63private:
58 BackgroundItem *m_background;///< background image/texture 64 BackgroundItem *m_background;///< background image/texture
59 FbTk::GContext m_opgc; 65 FbTk::GContext m_opgc;