diff options
author | simonb <simonb> | 2005-04-10 18:18:14 (GMT) |
---|---|---|
committer | simonb <simonb> | 2005-04-10 18:18:14 (GMT) |
commit | 88c66f0687d2a9e2018f22407b2587dc4d87d012 (patch) | |
tree | 197308ad2426783058f479d12329548c6a8a4374 /src/WinButton.hh | |
parent | 6cf66c66554a20a1c98eddf26af9e35b7c90cbd5 (diff) | |
download | fluxbox_pavel-88c66f0687d2a9e2018f22407b2587dc4d87d012.zip fluxbox_pavel-88c66f0687d2a9e2018f22407b2587dc4d87d012.tar.bz2 |
Big changes to how transparency works
Consequently rearrange lots of rendering ops, and strip calls to
updateTransparent
Diffstat (limited to 'src/WinButton.hh')
-rw-r--r-- | src/WinButton.hh | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/WinButton.hh b/src/WinButton.hh index eb3ccad..e0036af 100644 --- a/src/WinButton.hh +++ b/src/WinButton.hh | |||
@@ -27,6 +27,10 @@ | |||
27 | class FluxboxWindow; | 27 | class FluxboxWindow; |
28 | class WinButtonTheme; | 28 | class WinButtonTheme; |
29 | 29 | ||
30 | namespace FbTk{ | ||
31 | class Color; | ||
32 | } | ||
33 | |||
30 | /// draws and handles basic window button graphic | 34 | /// draws and handles basic window button graphic |
31 | class WinButton:public FbTk::Button, public FbTk::Observer { | 35 | class WinButton:public FbTk::Button, public FbTk::Observer { |
32 | public: | 36 | public: |
@@ -39,13 +43,20 @@ public: | |||
39 | /// override for drawing | 43 | /// override for drawing |
40 | void exposeEvent(XExposeEvent &event); | 44 | void exposeEvent(XExposeEvent &event); |
41 | void buttonReleaseEvent(XButtonEvent &event); | 45 | void buttonReleaseEvent(XButtonEvent &event); |
46 | void setBackgroundPixmap(Pixmap pm); | ||
47 | void setPressedPixmap(Pixmap pm); | ||
48 | void setBackgroundColor(const FbTk::Color &color); | ||
49 | void setPressedColor(const FbTk::Color &color); | ||
50 | |||
51 | Pixmap getBackgroundPixmap() const; | ||
52 | Pixmap getPressedPixmap() const; | ||
42 | /// override for redrawing | 53 | /// override for redrawing |
43 | void clear(); | 54 | void clear(); |
44 | void update(FbTk::Subject *subj); | 55 | void update(FbTk::Subject *subj); |
45 | private: | 56 | private: |
46 | void drawType(bool clear, bool no_trans); // don't update transparency (eg in clear) | 57 | void drawType(); |
47 | Type m_type; ///< the button type | 58 | Type m_type; ///< the button type |
48 | const FluxboxWindow &m_listen_to; | 59 | const FluxboxWindow &m_listen_to; |
49 | WinButtonTheme &m_theme; | 60 | WinButtonTheme &m_theme; |
50 | 61 | bool overrode_bg, overrode_pressed; | |
51 | }; | 62 | }; |