From 1d897f432e54400cb2a0e1499712782b336fd728 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 17 Nov 2002 09:41:58 +0000 Subject: add the config header and emacs comment to all the .cc's --- otk/widget.hh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'otk/widget.hh') diff --git a/otk/widget.hh b/otk/widget.hh index cbf2f9c5..cc6827cf 100644 --- a/otk/widget.hh +++ b/otk/widget.hh @@ -1,9 +1,6 @@ #ifndef __widget_hh #define __widget_hh -#include -#include - #include "rect.hh" #include "point.hh" #include "texture.hh" @@ -11,6 +8,13 @@ #include "eventdispatcher.hh" #include "application.hh" +extern "C" { +#include +} + +#include +#include + namespace otk { class OtkWidget : public OtkEventHandler { @@ -78,10 +82,10 @@ public: virtual void removeChild(OtkWidget *child); inline bool isStretchableHorz(void) const { return _stretchable_horz; } - void setStretchableHorz(bool s_horz) { _stretchable_horz = s_horz; } + void setStretchableHorz(bool s_horz = true) { _stretchable_horz = s_horz; } inline bool isStretchableVert(void) const { return _stretchable_vert; } - void setStretchableVert(bool s_vert) { _stretchable_vert = s_vert; } + void setStretchableVert(bool s_vert = true) { _stretchable_vert = s_vert; } inline Cursor getCursor(void) const { return _cursor; } @@ -93,7 +97,7 @@ public: void setDirection(Direction dir) { _direction = dir; } inline Style *getStyle(void) const { return _style; } - void setStyle(Style *style) { _style = style; } + void setStyle(Style *style) { assert(style); _style = style; } inline OtkEventDispatcher *getEventDispatcher(void) { return _event_dispatcher; } -- cgit v1.2.3