From 2005c344bdb4b59611972bc37e194d2e14cdf911 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 18 Jan 2003 03:52:58 +0000 Subject: surface started --- otk/surface.hh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 otk/surface.hh (limited to 'otk/surface.hh') diff --git a/otk/surface.hh b/otk/surface.hh new file mode 100644 index 00000000..7289b14a --- /dev/null +++ b/otk/surface.hh @@ -0,0 +1,33 @@ +// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- +#ifndef __surface_hh +#define __surface_hh + +#include "point.hh" + +extern "C" { +#include +} + +namespace otk { + +class Surface { + Point _size; + Pixmap _pm; + +protected: + Surface(); + Surface(const Point &size); + + virtual void setSize(int w, int h); + +public: + virtual ~Surface(); + + virtual const Point& size() const { return _size; } + virtual int width() const { return _size.x(); } + virtual int height() const { return _size.y(); } +}; + +} + +#endif // __surface_hh -- cgit v1.2.3