summaryrefslogtreecommitdiff
path: root/otk/widget.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-11-17 09:41:58 +0000
committerDana Jansens <danakj@orodu.net>2002-11-17 09:41:58 +0000
commit1d897f432e54400cb2a0e1499712782b336fd728 (patch)
tree2ff371ac0e95fbb1ea237e430bf561f8120564c6 /otk/widget.hh
parent638d4e6f1902c92e73b04246f349318236378437 (diff)
add the config header and emacs comment to all the .cc's
Diffstat (limited to 'otk/widget.hh')
-rw-r--r--otk/widget.hh16
1 files changed, 10 insertions, 6 deletions
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 <string>
-#include <list>
-
#include "rect.hh"
#include "point.hh"
#include "texture.hh"
@@ -11,6 +8,13 @@
#include "eventdispatcher.hh"
#include "application.hh"
+extern "C" {
+#include <assert.h>
+}
+
+#include <string>
+#include <list>
+
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; }