diff options
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 d6f84e6..c493491 100644 --- a/src/WinButton.hh +++ b/src/WinButton.hh | |||
@@ -31,6 +31,7 @@ class WinButtonTheme; | |||
31 | 31 | ||
32 | namespace FbTk{ | 32 | namespace FbTk{ |
33 | class Color; | 33 | class Color; |
34 | template <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; |