]>
Dogcows Code - chaz/openbox/blob - focuswidget.hh
8397734d48e3050be4bfe2600e64817d526a253c
1 #ifndef __focuswidget_hh
2 #define __focuswidget_hh
8 class OtkFocusWidget
: public OtkWidget
{
12 OtkFocusWidget(OtkWidget
*parent
, Direction
= Horizontal
);
13 OtkFocusWidget(Style
*style
, Direction direction
= Horizontal
,
14 Cursor cursor
= 0, int bevel_width
= 1);
16 virtual void focus(void);
17 virtual void unfocus(void);
19 void setTexture(BTexture
*texture
);
21 inline void setUnfocusTexture(BTexture
*texture
)
22 { _unfocus_texture
= texture
; }
23 inline BTexture
*getUnfocusTexture(void) const
24 { return _unfocus_texture
; }
26 inline bool isFocused(void) const { return _focused
; }
27 inline bool isUnfocused(void) const { return !_focused
; }
31 BTexture
*_unfocus_texture
;
32 BTexture
*_focus_texture
;
39 #endif // __focuswidget_hh
This page took 0.035628 seconds and 3 git commands to generate.