aboutsummaryrefslogtreecommitdiff
path: root/src/WinButton.hh
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-01-05 01:39:19 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-01-05 01:39:19 (GMT)
commitac1bd7e0981222bf340ce7defb2bb8307d42a0a2 (patch)
treec8fb9c618184e7ac44f6138409cab3fab86b23e4 /src/WinButton.hh
parent60ba709c2f47cc2c7b877aef1b0f297b097853e5 (diff)
downloadfluxbox_pavel-ac1bd7e0981222bf340ce7defb2bb8307d42a0a2.zip
fluxbox_pavel-ac1bd7e0981222bf340ce7defb2bb8307d42a0a2.tar.bz2
update code to use ThemeProxy
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 d6f84e6..c493491 100644
--- a/src/WinButton.hh
+++ b/src/WinButton.hh
@@ -31,6 +31,7 @@ class WinButtonTheme;
31 31
32namespace FbTk{ 32namespace FbTk{
33class Color; 33class Color;
34template <class T> class ThemeProxy;
34} 35}
35 36
36/// draws and handles basic window button graphic 37/// draws and handles basic window button graphic
@@ -39,7 +40,7 @@ public:
39 /// draw type for the button 40 /// draw type for the button
40 enum Type {MAXIMIZE, MINIMIZE, SHADE, STICK, CLOSE, MENUICON}; 41 enum Type {MAXIMIZE, MINIMIZE, SHADE, STICK, CLOSE, MENUICON};
41 WinButton(const FluxboxWindow &listen_to, 42 WinButton(const FluxboxWindow &listen_to,
42 WinButtonTheme &theme, 43 FbTk::ThemeProxy<WinButtonTheme> &theme,
43 Type buttontype, const FbTk::FbWindow &parent, int x, int y, 44 Type buttontype, const FbTk::FbWindow &parent, int x, int y,
44 unsigned int width, unsigned int height); 45 unsigned int width, unsigned int height);
45 /// override for drawing 46 /// override for drawing
@@ -59,7 +60,7 @@ private:
59 void drawType(); 60 void drawType();
60 Type m_type; ///< the button type 61 Type m_type; ///< the button type
61 const FluxboxWindow &m_listen_to; 62 const FluxboxWindow &m_listen_to;
62 WinButtonTheme &m_theme; 63 FbTk::ThemeProxy<WinButtonTheme> &m_theme;
63 64
64 FbTk::FbPixmap m_icon_pixmap; 65 FbTk::FbPixmap m_icon_pixmap;
65 FbTk::FbPixmap m_icon_mask; 66 FbTk::FbPixmap m_icon_mask;