]>
Dogcows Code - chaz/openbox/blob - otk/button.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
5 #include "focuslabel.hh"
9 class Button
: public FocusLabel
{
13 Button(Widget
*parent
);
16 inline const Texture
*getPressedFocusTexture(void) const
17 { return _pressed_focus_tx
; }
18 void setPressedFocusTexture(Texture
*texture
)
19 { _pressed_focus_tx
= texture
; }
21 inline const Texture
*getPressedUnfocusTexture(void) const
22 { return _pressed_unfocus_tx
; }
23 void setPressedUnfocusTexture(Texture
*texture
)
24 { _pressed_unfocus_tx
= texture
; }
26 void setTexture(Texture
*texture
);
27 void setUnfocusTexture(Texture
*texture
);
29 inline bool isPressed(void) const { return _pressed
; }
30 void press(unsigned int mouse_button
);
31 void release(unsigned int mouse_button
);
33 void buttonPressHandler(const XButtonEvent
&e
);
34 void buttonReleaseHandler(const XButtonEvent
&e
);
36 virtual void setStyle(Style
*style
);
41 unsigned int _mouse_button
;
43 Texture
*_pressed_focus_tx
;
44 Texture
*_pressed_unfocus_tx
;
46 Texture
*_unpr_focus_tx
;
47 Texture
*_unpr_unfocus_tx
;
This page took 0.036526 seconds and 4 git commands to generate.