]> Dogcows Code - chaz/openbox/blob - otk/button.hh
HOOGE improvements. now widgets calculate their size according to the sizes of their...
[chaz/openbox] / 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 }
This page took 0.035716 seconds and 4 git commands to generate.