]>
Dogcows Code - chaz/openbox/blob - button.hh
55a2389c5f4a7e84ec7a9a1a1888e87e2d15f337
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
; }
45 BTexture
*_pressed_focus_tx
;
46 BTexture
*_pressed_unfocus_tx
;
48 BTexture
*_unpr_focus_tx
;
49 BTexture
*_unpr_unfocus_tx
;
This page took 0.037236 seconds and 3 git commands to generate.