aboutsummaryrefslogtreecommitdiff
path: root/src/WinButton.hh
diff options
context:
space:
mode:
authorVladimir A. Pavlov <pv4@bk.ru>2012-12-07 20:41:34 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2012-12-30 11:27:52 (GMT)
commitedcb6d57ce4823616963071cfe4f151eb3880dc1 (patch)
tree74dc5677870ee66ebca2e6ccbf277dc4a2b5cf27 /src/WinButton.hh
parentc8d0945a8ff595cd3b5015b6a253bb0a9355633c (diff)
downloadfluxbox-edcb6d57ce4823616963071cfe4f151eb3880dc1.zip
fluxbox-edcb6d57ce4823616963071cfe4f151eb3880dc1.tar.bz2
src/WinButton.{cc,hh}: cosmetic
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;