]> icculus.org git repositories - dana/openbox.git/blob - otk/button.hh
beginnings of button class
[dana/openbox.git] / otk / button.hh
1 #include "widget.hh"
2 #include "style.hh"
3 #include "texture.hh"
4 //#include "pixmap.hh"
5
6 namespace otk {
7
8 class OtkButton : public OtkWidget {
9
10 public:
11
12   OtkButton(OtkWidget *parent);
13   ~OtkButton();
14
15   inline const std::string &getText(void) const { return _text; }
16   void setText(const std::string &text);
17
18   //inline const OtkPixmap &getPixmap(void) const { return _pixmap; }
19   //void setPixmap(const OtkPixmap &pixmap);
20
21   inline bool isPressed(void) const { return _pressed; }
22   void press(void);
23   void release(void);
24
25 private:
26
27   std::string _text;
28   //OtkPixmap _pixmap;
29   bool _pressed;
30   BTexture *_unfocus_tx;
31
32 };
33
34 }