1 #ifndef __focuswidget_hh
2 #define __focuswidget_hh
5 #include "application.hh"
9 class OtkFocusWidget : public OtkWidget {
13 OtkFocusWidget(OtkWidget *parent, Direction = Horizontal);
14 OtkFocusWidget(OtkApplication *app, Direction direction = Horizontal,
15 Cursor cursor = 0, int bevel_width = 1);
16 OtkFocusWidget(Style *style, Direction direction = Horizontal,
17 Cursor cursor = 0, int bevel_width = 1);
18 virtual ~OtkFocusWidget();
20 virtual void focus(void);
21 virtual void unfocus(void);
23 void setTexture(BTexture *texture);
25 inline void setUnfocusTexture(BTexture *texture)
26 { _unfocus_texture = texture; }
27 inline BTexture *getUnfocusTexture(void) const
28 { return _unfocus_texture; }
30 inline bool isFocused(void) const { return _focused; }
31 inline bool isUnfocused(void) const { return !_focused; }
35 BTexture *_unfocus_texture;
36 BTexture *_focus_texture;
43 #endif // __focuswidget_hh