diff options
author | fluxgen <fluxgen> | 2003-09-10 21:23:36 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-09-10 21:23:36 (GMT) |
commit | 7c479799e4682c872f917e1c1ac554d17511822c (patch) | |
tree | 06265dce8e821656df11209de5128c89d41bf7c0 /src/FbTk | |
parent | cd85257a4b1f6b634c08202f88e93ae2d087877d (diff) | |
download | fluxbox_paul-7c479799e4682c872f917e1c1ac554d17511822c.zip fluxbox_paul-7c479799e4682c872f917e1c1ac554d17511822c.tar.bz2 |
accessors for background pixmap and color and foreground pixmap
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/Button.hh | 10 |
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; } | ||
74 | private: | 76 | private: |
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 |