diff options
author | Vladimir A. Pavlov <pv4@bk.ru> | 2012-12-07 20:41:34 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2012-12-30 11:27:52 (GMT) |
commit | edcb6d57ce4823616963071cfe4f151eb3880dc1 (patch) | |
tree | 74dc5677870ee66ebca2e6ccbf277dc4a2b5cf27 /src/WinButton.hh | |
parent | c8d0945a8ff595cd3b5015b6a253bb0a9355633c (diff) | |
download | fluxbox-edcb6d57ce4823616963071cfe4f151eb3880dc1.zip fluxbox-edcb6d57ce4823616963071cfe4f151eb3880dc1.tar.bz2 |
src/WinButton.{cc,hh}: cosmetic
Diffstat (limited to 'src/WinButton.hh')
-rw-r--r-- | src/WinButton.hh | 5 |
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(); |
60 | private: | 60 | private: |
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; |