summaryrefslogtreecommitdiff
path: root/otk/button.hh
blob: 2fa8e7da20b960776122c041688e95918124377a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include "widget.hh"
#include "style.hh"
#include "texture.hh"
//#include "pixmap.hh"

namespace otk {

class OtkButton : public OtkWidget {

public:

  OtkButton(OtkWidget *parent);
  ~OtkButton();

  inline const std::string &getText(void) const { return _text; }
  void setText(const std::string &text);

  //inline const OtkPixmap &getPixmap(void) const { return _pixmap; }
  //void setPixmap(const OtkPixmap &pixmap);

  inline bool isPressed(void) const { return _pressed; }
  void press(void);
  void release(void);

private:

  std::string _text;
  //OtkPixmap _pixmap;
  bool _pressed;
  BTexture *_unfocus_tx;

};

}