aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/Button.hh10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/FbTk/Button.hh b/src/FbTk/Button.hh
index 8aaf561..2bbe74b 100644
--- a/src/FbTk/Button.hh
+++ b/src/FbTk/Button.hh
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Button.hh,v 1.5 2003/08/13 09:25:16 fluxgen Exp $ 22// $Id: Button.hh,v 1.6 2003/09/10 21:23:36 fluxgen Exp $
23 23
24#ifndef FBTK_BUTTON_HH 24#ifndef FBTK_BUTTON_HH
25#define FBTK_BUTTON_HH 25#define FBTK_BUTTON_HH
@@ -53,9 +53,9 @@ public:
53 /// sets graphic context for drawing 53 /// sets graphic context for drawing
54 void setGC(GC gc) { m_gc = gc; } 54 void setGC(GC gc) { m_gc = gc; }
55 /// sets background pixmap, this will override background color 55 /// sets background pixmap, this will override background color
56 void setBackgroundPixmap(Pixmap pm); 56 virtual void setBackgroundPixmap(Pixmap pm);
57 /// sets background color 57 /// sets background color
58 void setBackgroundColor(const Color &color); 58 virtual void setBackgroundColor(const Color &color);
59 59
60 /** 60 /**
61 @name eventhandlers 61 @name eventhandlers
@@ -70,7 +70,9 @@ public:
70 bool pressed() const { return m_pressed; } 70 bool pressed() const { return m_pressed; }
71 71
72 GC gc() const { return m_gc; } 72 GC gc() const { return m_gc; }
73 73 Pixmap backgroundPixmap() const { return m_background_pm; }
74 const Color &backgroundColor() const { return m_background_color; }
75 Pixmap foregroundPixmap() const { return m_foreground_pm; }
74private: 76private:
75 Pixmap m_foreground_pm; ///< foreground pixmap 77 Pixmap m_foreground_pm; ///< foreground pixmap
76 Pixmap m_background_pm; ///< background pixmap 78 Pixmap m_background_pm; ///< background pixmap