]>
Dogcows Code - chaz/openbox/blob - otk/focuswidget.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __focuswidget_hh
3 #define __focuswidget_hh
6 #include "application.hh"
10 class FocusWidget
: public Widget
{
14 FocusWidget(Widget
*parent
, Direction
= Horizontal
);
15 virtual ~FocusWidget();
17 virtual void focus(void);
18 virtual void unfocus(void);
20 virtual void setTexture(RenderTexture
*texture
);
21 virtual void setBorderColor(const RenderColor
*color
);
23 inline void setUnfocusTexture(RenderTexture
*texture
)
24 { _unfocus_texture
= texture
; }
25 inline RenderTexture
*getUnfocusTexture(void) const
26 { return _unfocus_texture
; }
28 inline void setUnfocusBorderColor(const RenderColor
*color
)
29 { _unfocus_bcolor
= color
; }
30 inline const RenderColor
*getUnfocusBorderColor(void) const
31 { return _unfocus_bcolor
; }
33 inline bool isFocused(void) const { return _focused
; }
34 inline bool isUnfocused(void) const { return !_focused
; }
38 RenderTexture
*_unfocus_texture
;
39 RenderTexture
*_focus_texture
;
41 const RenderColor
*_unfocus_bcolor
;
42 const RenderColor
*_focus_bcolor
;
47 #endif // __focuswidget_hh
This page took 0.033413 seconds and 4 git commands to generate.