aboutsummaryrefslogtreecommitdiff
path: root/src/WinButton.hh
diff options
context:
space:
mode:
authormarkt <markt>2007-01-21 19:04:01 (GMT)
committermarkt <markt>2007-01-21 19:04:01 (GMT)
commit240ebcb30a0b2a342fe1aad3985654fa54ff36fe (patch)
treeb92376d4ae7774a77f7a964f44e7d06a328fc161 /src/WinButton.hh
parent92537091003a9e259abff98e648e58c63a201bc1 (diff)
downloadfluxbox-240ebcb30a0b2a342fe1aad3985654fa54ff36fe.zip
fluxbox-240ebcb30a0b2a342fe1aad3985654fa54ff36fe.tar.bz2
allow transparency in window buttons
Diffstat (limited to 'src/WinButton.hh')
-rw-r--r--src/WinButton.hh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/WinButton.hh b/src/WinButton.hh
index d1e57f3..91fb4e1 100644
--- a/src/WinButton.hh
+++ b/src/WinButton.hh
@@ -44,17 +44,17 @@ public:
44 /// override for drawing 44 /// override for drawing
45 void exposeEvent(XExposeEvent &event); 45 void exposeEvent(XExposeEvent &event);
46 void buttonReleaseEvent(XButtonEvent &event); 46 void buttonReleaseEvent(XButtonEvent &event);
47 void buttonPressEvent(XButtonEvent &event);
47 void setBackgroundPixmap(Pixmap pm); 48 void setBackgroundPixmap(Pixmap pm);
48 void setPressedPixmap(Pixmap pm); 49 void setPressedPixmap(Pixmap pm);
49 void setBackgroundColor(const FbTk::Color &color); 50 void setBackgroundColor(const FbTk::Color &color);
50 void setPressedColor(const FbTk::Color &color); 51 void setPressedColor(const FbTk::Color &color);
51 52
52 Pixmap getBackgroundPixmap() const;
53 Pixmap getPressedPixmap() const;
54 /// override for redrawing 53 /// override for redrawing
55 void clear(); 54 void clear();
56 void update(FbTk::Subject *subj); 55 void update(FbTk::Subject *subj);
57private: 56private:
57 void drawIcon(FbTk::FbPixmap icon, FbTk::FbPixmap mask);
58 void drawType(); 58 void drawType();
59 Type m_type; ///< the button type 59 Type m_type; ///< the button type
60 const FluxboxWindow &m_listen_to; 60 const FluxboxWindow &m_listen_to;
@@ -62,6 +62,6 @@ private:
62 62
63 FbTk::FbPixmap m_icon_pixmap; 63 FbTk::FbPixmap m_icon_pixmap;
64 FbTk::FbPixmap m_icon_mask; 64 FbTk::FbPixmap m_icon_mask;
65 65
66 bool overrode_bg, overrode_pressed; 66 bool m_override_bg;
67}; 67};