1 #include "focuswidget.hh"
6 class OtkButton : public OtkFocusWidget {
10 OtkButton(OtkWidget *parent);
13 inline const BTexture *getPressedFocusTexture(void) const
14 { return _pressed_focus_tx; }
15 void setPressedFocusTexture(BTexture *texture)
16 { _pressed_focus_tx = texture; }
18 inline const BTexture *getPressedUnfocusTexture(void) const
19 { return _pressed_unfocus_tx; }
20 void setPressedUnfocusTexture(BTexture *texture)
21 { _pressed_unfocus_tx = texture; }
23 void setTexture(BTexture *texture);
24 void setUnfocusTexture(BTexture *texture);
26 inline const std::string &getText(void) const { return _text; }
27 void setText(const std::string &text) { _text = text; _dirty = true; }
29 //inline const OtkPixmap &getPixmap(void) const { return _pixmap; }
30 //void setPixmap(const OtkPixmap &pixmap);
32 inline bool isPressed(void) const { return _pressed; }
36 virtual void update(void);
37 virtual bool expose(const XExposeEvent &e);
38 virtual bool configure(const XConfigureEvent &e);
47 BTexture *_pressed_focus_tx;
48 BTexture *_pressed_unfocus_tx;
50 BTexture *_unpr_focus_tx;
51 BTexture *_unpr_unfocus_tx;