aboutsummaryrefslogtreecommitdiff
path: root/src/IconButton.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-11-27 14:30:11 (GMT)
committerfluxgen <fluxgen>2003-11-27 14:30:11 (GMT)
commit5ce35d9fa811358162ae44ee1ca514270d7da466 (patch)
tree10be8c9296136cb1dd265e3a01f937f1491405cc /src/IconButton.hh
parent258cb10be2dc5a7b932ee4bebb9833d597b3cb18 (diff)
downloadfluxbox-5ce35d9fa811358162ae44ee1ca514270d7da466.zip
fluxbox-5ce35d9fa811358162ae44ee1ca514270d7da466.tar.bz2
toggle pixmap for IconButton
Diffstat (limited to 'src/IconButton.hh')
-rw-r--r--src/IconButton.hh9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/IconButton.hh b/src/IconButton.hh
index 6ac08b7..69fbf46 100644
--- a/src/IconButton.hh
+++ b/src/IconButton.hh
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: IconButton.hh,v 1.3 2003/09/10 21:40:01 fluxgen Exp $ 23// $Id: IconButton.hh,v 1.4 2003/11/27 14:27:48 fluxgen Exp $
24 24
25#ifndef ICONBUTTON_HH 25#ifndef ICONBUTTON_HH
26#define ICONBUTTON_HH 26#define ICONBUTTON_HH
@@ -33,7 +33,8 @@ class FluxboxWindow;
33 33
34class IconButton: public FbTk::TextButton, public FbTk::Observer { 34class IconButton: public FbTk::TextButton, public FbTk::Observer {
35public: 35public:
36 IconButton(const FbTk::FbWindow &parent, const FbTk::Font &font, FluxboxWindow &window); 36 IconButton(const FbTk::FbWindow &parent, const FbTk::Font &font,
37 FluxboxWindow &window);
37 virtual ~IconButton(); 38 virtual ~IconButton();
38 39
39 void exposeEvent(XExposeEvent &event); 40 void exposeEvent(XExposeEvent &event);
@@ -46,8 +47,11 @@ public:
46 void resize(unsigned int width, unsigned int height); 47 void resize(unsigned int width, unsigned int height);
47 48
48 void update(FbTk::Subject *subj); 49 void update(FbTk::Subject *subj);
50 void setPixmap(bool use);
51
49 FluxboxWindow &win() { return m_win; } 52 FluxboxWindow &win() { return m_win; }
50 const FluxboxWindow &win() const { return m_win; } 53 const FluxboxWindow &win() const { return m_win; }
54
51protected: 55protected:
52 void drawText(int x = 0, int y = 0); 56 void drawText(int x = 0, int y = 0);
53private: 57private:
@@ -57,6 +61,7 @@ private:
57 FbTk::FbWindow m_icon_window; 61 FbTk::FbWindow m_icon_window;
58 FbTk::FbPixmap m_icon_pixmap; 62 FbTk::FbPixmap m_icon_pixmap;
59 FbTk::FbPixmap m_icon_mask; 63 FbTk::FbPixmap m_icon_mask;
64 bool m_use_pixmap;
60}; 65};
61 66
62#endif // ICONBUTTON_HH 67#endif // ICONBUTTON_HH