]>
Dogcows Code - chaz/openbox/blob - otk/button.hh
4 #include "focuswidget.hh"
9 class OtkButton
: public OtkFocusWidget
{
13 OtkButton(OtkWidget
*parent
);
16 inline const BTexture
*getPressedFocusTexture(void) const
17 { return _pressed_focus_tx
; }
18 void setPressedFocusTexture(BTexture
*texture
)
19 { _pressed_focus_tx
= texture
; }
21 inline const BTexture
*getPressedUnfocusTexture(void) const
22 { return _pressed_unfocus_tx
; }
23 void setPressedUnfocusTexture(BTexture
*texture
)
24 { _pressed_unfocus_tx
= texture
; }
26 void setTexture(BTexture
*texture
);
27 void setUnfocusTexture(BTexture
*texture
);
29 inline const std::string
&getText(void) const { return _text
; }
30 void setText(const std::string
&text
) { _text
= text
; _dirty
= true; }
32 //inline const OtkPixmap &getPixmap(void) const { return _pixmap; }
33 //void setPixmap(const OtkPixmap &pixmap);
35 inline bool isPressed(void) const { return _pressed
; }
40 int exposeHandler(const XExposeEvent
&e
);
41 int configureHandler(const XConfigureEvent
&e
);
50 BTexture
*_pressed_focus_tx
;
51 BTexture
*_pressed_unfocus_tx
;
53 BTexture
*_unpr_focus_tx
;
54 BTexture
*_unpr_unfocus_tx
;
This page took 0.040892 seconds and 5 git commands to generate.