aboutsummaryrefslogtreecommitdiff
path: root/src/WinButton.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/WinButton.hh')
-rw-r--r--src/WinButton.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/WinButton.hh b/src/WinButton.hh
index 80fc4b1..3912a1a 100644
--- a/src/WinButton.hh
+++ b/src/WinButton.hh
@@ -52,13 +52,14 @@ public:
52 void setBackgroundColor(const FbTk::Color &color); 52 void setBackgroundColor(const FbTk::Color &color);
53 void setPressedColor(const FbTk::Color &color); 53 void setPressedColor(const FbTk::Color &color);
54 54
55 Pixmap getBackgroundPixmap() const; 55 Pixmap getBackgroundPixmap() const { return getPixmap(m_theme); }
56 Pixmap getPressedPixmap() const; 56 Pixmap getPressedPixmap() const { return getPixmap(m_pressed_theme); }
57 /// override for redrawing 57 /// override for redrawing
58 void clear(); 58 void clear();
59 void updateAll(); 59 void updateAll();
60private: 60private:
61 void drawType(); 61 void drawType();
62 Pixmap getPixmap(const FbTk::ThemeProxy<WinButtonTheme> &) const;
62 Type m_type; ///< the button type 63 Type m_type; ///< the button type
63 FluxboxWindow &m_listen_to; 64 FluxboxWindow &m_listen_to;
64 FbTk::ThemeProxy<WinButtonTheme> &m_theme, &m_pressed_theme; 65 FbTk::ThemeProxy<WinButtonTheme> &m_theme, &m_pressed_theme;