diff options
author | fluxgen <fluxgen> | 2003-10-13 23:43:11 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-10-13 23:43:11 (GMT) |
commit | 2aef1e67c3fa06157b7607462463f796e881c215 (patch) | |
tree | 6b9183f9d9e4a0d84815f5c130db65640af04050 /src/FbTk/Button.hh | |
parent | 9911b38f8df93871542e3a7cdd5611e42e9bd106 (diff) | |
download | fluxbox-2aef1e67c3fa06157b7607462463f796e881c215.zip fluxbox-2aef1e67c3fa06157b7607462463f796e881c215.tar.bz2 |
added pressed color
Diffstat (limited to 'src/FbTk/Button.hh')
-rw-r--r-- | src/FbTk/Button.hh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/FbTk/Button.hh b/src/FbTk/Button.hh index 2bbe74b..dbbdeda 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.6 2003/09/10 21:23:36 fluxgen Exp $ | 22 | // $Id: Button.hh,v 1.7 2003/10/13 23:43:11 fluxgen Exp $ |
23 | 23 | ||
24 | #ifndef FBTK_BUTTON_HH | 24 | #ifndef FBTK_BUTTON_HH |
25 | #define FBTK_BUTTON_HH | 25 | #define FBTK_BUTTON_HH |
@@ -50,6 +50,7 @@ public: | |||
50 | void setPixmap(Pixmap pm); | 50 | void setPixmap(Pixmap pm); |
51 | /// sets the pixmap to be viewed when the button is pressed | 51 | /// sets the pixmap to be viewed when the button is pressed |
52 | void setPressedPixmap(Pixmap pm); | 52 | void setPressedPixmap(Pixmap pm); |
53 | void setPressedColor(const FbTk::Color &color); | ||
53 | /// sets graphic context for drawing | 54 | /// sets graphic context for drawing |
54 | void setGC(GC gc) { m_gc = gc; } | 55 | void setGC(GC gc) { m_gc = gc; } |
55 | /// sets background pixmap, this will override background color | 56 | /// sets background pixmap, this will override background color |
@@ -78,6 +79,7 @@ private: | |||
78 | Pixmap m_background_pm; ///< background pixmap | 79 | Pixmap m_background_pm; ///< background pixmap |
79 | Color m_background_color; ///< background color | 80 | Color m_background_color; ///< background color |
80 | Pixmap m_pressed_pm; ///< pressed pixmap | 81 | Pixmap m_pressed_pm; ///< pressed pixmap |
82 | Color m_pressed_color; | ||
81 | GC m_gc; ///< graphic context for button | 83 | GC m_gc; ///< graphic context for button |
82 | bool m_pressed; ///< if the button is pressed | 84 | bool m_pressed; ///< if the button is pressed |
83 | RefCount<Command> m_onclick[5]; ///< what to do when this button is clicked with button num | 85 | RefCount<Command> m_onclick[5]; ///< what to do when this button is clicked with button num |