]>
Dogcows Code - chaz/openbox/blob - otk/widget.hh
207de86c790e794046c41c8496761c3010aac039
4 #include "basewidget.hh"
12 class OtkWidget
: public OtkBaseWidget
{
16 enum Direction
{ Horizontal
, Vertical
};
18 OtkWidget(OtkWidget
*parent
, Direction
= Horizontal
);
19 OtkWidget(OtkEventDispatcher
*event_dispatcher
, Style
*style
,
20 Direction direction
= Horizontal
, Cursor cursor
= 0,
25 virtual void update(void);
27 inline bool isStretchableHorz(void) const { return _stretchable_horz
; }
28 void setStretchableHorz(bool s_horz
= true) { _stretchable_horz
= s_horz
; }
30 inline bool isStretchableVert(void) const { return _stretchable_vert
; }
31 void setStretchableVert(bool s_vert
= true) { _stretchable_vert
= s_vert
; }
33 inline Direction
getDirection(void) const { return _direction
; }
34 void setDirection(Direction dir
) { _direction
= dir
; }
36 inline OtkEventDispatcher
*getEventDispatcher(void)
37 { return _event_dispatcher
; }
38 void setEventDispatcher(OtkEventDispatcher
*disp
);
43 void adjustHorz(void);
44 void adjustVert(void);
45 void internalResize(int width
, int height
);
49 bool _stretchable_vert
;
50 bool _stretchable_horz
;
52 OtkEventDispatcher
*_event_dispatcher
;
This page took 0.033125 seconds and 4 git commands to generate.