diff options
Diffstat (limited to 'src/FbTk/Button.hh')
-rw-r--r-- | src/FbTk/Button.hh | 8 |
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; } | ||
82 | private: | 79 | private: |
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 |