]>
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(OtkWidget
*parent
, Direction
= Horizontal
);
14 virtual ~OtkFocusWidget();
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.038922 seconds and 4 git commands to generate.