aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Button.hh
diff options
context:
space:
mode:
authorsimonb <simonb>2005-04-10 18:18:14 (GMT)
committersimonb <simonb>2005-04-10 18:18:14 (GMT)
commit88c66f0687d2a9e2018f22407b2587dc4d87d012 (patch)
tree197308ad2426783058f479d12329548c6a8a4374 /src/FbTk/Button.hh
parent6cf66c66554a20a1c98eddf26af9e35b7c90cbd5 (diff)
downloadfluxbox_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/FbTk/Button.hh')
-rw-r--r--src/FbTk/Button.hh8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/FbTk/Button.hh b/src/FbTk/Button.hh
index 66cd2b5..48aff02 100644
--- a/src/FbTk/Button.hh
+++ b/src/FbTk/Button.hh
@@ -48,11 +48,9 @@ public:
48 /// sets action when the button is clicked with #button mouse btn 48 /// sets action when the button is clicked with #button mouse btn
49 void setOnClick(RefCount<Command> &com, int button = 1); 49 void setOnClick(RefCount<Command> &com, int button = 1);
50 50
51 /// sets foreground pixmap
52 void setPixmap(Pixmap pm);
53 /// sets the pixmap to be viewed when the button is pressed 51 /// sets the pixmap to be viewed when the button is pressed
54 void setPressedPixmap(Pixmap pm); 52 virtual void setPressedPixmap(Pixmap pm);
55 void setPressedColor(const FbTk::Color &color); 53 virtual void setPressedColor(const FbTk::Color &color);
56 /// sets graphic context for drawing 54 /// sets graphic context for drawing
57 void setGC(GC gc) { m_gc = gc; } 55 void setGC(GC gc) { m_gc = gc; }
58 /// sets background pixmap, this will override background color 56 /// sets background pixmap, this will override background color
@@ -78,9 +76,7 @@ public:
78 GC gc() const { return m_gc; } 76 GC gc() const { return m_gc; }
79 Pixmap backgroundPixmap() const { return m_background_pm; } 77 Pixmap backgroundPixmap() const { return m_background_pm; }
80 const Color &backgroundColor() const { return m_background_color; } 78 const Color &backgroundColor() const { return m_background_color; }
81 Pixmap foregroundPixmap() const { return m_foreground_pm; }
82private: 79private:
83 Pixmap m_foreground_pm; ///< foreground pixmap
84 Pixmap m_background_pm; ///< background pixmap 80 Pixmap m_background_pm; ///< background pixmap
85 Color m_background_color; ///< background color 81 Color m_background_color; ///< background color
86 Pixmap m_pressed_pm; ///< pressed pixmap 82 Pixmap m_pressed_pm; ///< pressed pixmap