]>
Dogcows Code - chaz/openbox/blob - otk/widget.hh
14 typedef std::list
<OtkWidget
*> OtkWidgetList
;
16 OtkWidget(OtkWidget
*parent
);
17 OtkWidget(unsigned int screen
, Cursor
);
21 inline Window
getWindow(void) const { return _window
; }
22 inline const OtkWidget
*getParent(void) const { return _parent
; }
23 inline const OtkWidgetList
&getChildren(void) const { return _children
; }
24 inline unsigned int getScreen(void) const { return _screen
; }
25 inline const Rect
&getRect(void) const { return _rect
; }
27 void move(const Point
&to
);
28 void move(int x
, int y
);
30 virtual void resize(const Point
&to
);
31 virtual void resize(int x
, int y
);
33 virtual void setGeometry(const Rect
&new_geom
);
34 virtual void setGeometry(const Point
&topleft
, int width
, int height
);
35 virtual void setGeometry(int x
, int y
, int width
, int height
);
37 inline bool isVisible(void) const { return _visible
; };
38 virtual void show(void);
39 virtual void hide(void);
41 inline bool isFocused(void) const { return _focused
; };
42 virtual void focus(void);
43 virtual void blur(void);
45 inline bool hasGrabbedMouse(void) const { return _grabbed_mouse
; }
47 void ungrabMouse(void);
49 inline bool hasGrabbedKeyboard(void) const { return _grabbed_keyboard
; }
50 bool grabKeyboard(void);
51 void ungrabKeyboard(void);
53 inline const BTexture
*getTexture(void) const { return _texture
; }
54 virtual void setTexture(BTexture
*texture
);
56 virtual void addChild(OtkWidget
*child
);
57 virtual void removeChild(OtkWidget
*child
);
59 inline bool getStretchableHorz(void) const { return _stretchable_horz
; }
60 void setStretchableHorz(bool s_horz
) { _stretchable_horz
= s_horz
; }
62 inline bool getStretchableVert(void) const { return _stretchable_vert
; }
63 void setStretchableVert(bool s_vert
) { _stretchable_vert
= s_vert
; }
65 inline Cursor
getCursor(void) const { return _cursor
; }
74 OtkWidgetList _children
;
80 bool _grabbed_keyboard
;
82 bool _stretchable_vert
;
83 bool _stretchable_horz
;
This page took 0.039197 seconds and 5 git commands to generate.