From 7c479799e4682c872f917e1c1ac554d17511822c Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 10 Sep 2003 21:23:36 +0000 Subject: accessors for background pixmap and color and foreground pixmap --- src/FbTk/Button.hh | 10 ++++++---- 1 file 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Button.hh,v 1.5 2003/08/13 09:25:16 fluxgen Exp $ +// $Id: Button.hh,v 1.6 2003/09/10 21:23:36 fluxgen Exp $ #ifndef FBTK_BUTTON_HH #define FBTK_BUTTON_HH @@ -53,9 +53,9 @@ public: /// sets graphic context for drawing void setGC(GC gc) { m_gc = gc; } /// sets background pixmap, this will override background color - void setBackgroundPixmap(Pixmap pm); + virtual void setBackgroundPixmap(Pixmap pm); /// sets background color - void setBackgroundColor(const Color &color); + virtual void setBackgroundColor(const Color &color); /** @name eventhandlers @@ -70,7 +70,9 @@ public: bool pressed() const { return m_pressed; } GC gc() const { return m_gc; } - + Pixmap backgroundPixmap() const { return m_background_pm; } + const Color &backgroundColor() const { return m_background_color; } + Pixmap foregroundPixmap() const { return m_foreground_pm; } private: Pixmap m_foreground_pm; ///< foreground pixmap Pixmap m_background_pm; ///< background pixmap -- cgit v0.11.2