]>
Dogcows Code - chaz/openbox/blob - otk/focuswidget.hh
1 #ifndef __focuswidget_hh
2 #define __focuswidget_hh
5 #include "application.hh"
9 class OtkFocusWidget
: public OtkWidget
{
13 OtkFocusWidget(otk::OtkWidget
*parent
, Direction
= Horizontal
);
14 virtual ~OtkFocusWidget();
16 virtual void focus(void);
17 virtual void unfocus(void);
19 virtual void setTexture(otk::BTexture
*texture
);
20 virtual void setBorderColor(const otk::BColor
*color
);
22 inline void setUnfocusTexture(otk::BTexture
*texture
)
23 { _unfocus_texture
= texture
; }
24 inline otk::BTexture
*getUnfocusTexture(void) const
25 { return _unfocus_texture
; }
27 inline void setUnfocusBorderColor(const otk::BColor
*color
)
28 { _unfocus_bcolor
= color
; }
29 inline const otk::BColor
*getUnfocusBorderColor(void) const
30 { return _unfocus_bcolor
; }
32 inline bool isFocused(void) const { return _focused
; }
33 inline bool isUnfocused(void) const { return !_focused
; }
37 BTexture
*_unfocus_texture
;
38 BTexture
*_focus_texture
;
40 const BColor
*_unfocus_bcolor
;
41 const BColor
*_focus_bcolor
;
46 #endif // __focuswidget_hh
This page took 0.033144 seconds and 4 git commands to generate.