]>
Dogcows Code - chaz/openbox/blob - otk/button.hh
4 #include "focuslabel.hh"
8 class OtkButton
: public OtkFocusLabel
{
12 OtkButton(OtkWidget
*parent
);
15 inline const BTexture
*getPressedFocusTexture(void) const
16 { return _pressed_focus_tx
; }
17 void setPressedFocusTexture(BTexture
*texture
)
18 { _pressed_focus_tx
= texture
; }
20 inline const BTexture
*getPressedUnfocusTexture(void) const
21 { return _pressed_unfocus_tx
; }
22 void setPressedUnfocusTexture(BTexture
*texture
)
23 { _pressed_unfocus_tx
= texture
; }
25 void setTexture(BTexture
*texture
);
26 void setUnfocusTexture(BTexture
*texture
);
28 inline bool isPressed(void) const { return _pressed
; }
29 void press(unsigned int mouse_button
);
30 void release(unsigned int mouse_button
);
32 void buttonPressHandler(const XButtonEvent
&e
);
33 void buttonReleaseHandler(const XButtonEvent
&e
);
35 virtual void setStyle(Style
*style
);
40 unsigned int _mouse_button
;
42 BTexture
*_pressed_focus_tx
;
43 BTexture
*_pressed_unfocus_tx
;
45 BTexture
*_unpr_focus_tx
;
46 BTexture
*_unpr_unfocus_tx
;
This page took 0.037364 seconds and 5 git commands to generate.