diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-18 03:52:58 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-18 03:52:58 +0000 |
| commit | 2005c344bdb4b59611972bc37e194d2e14cdf911 (patch) | |
| tree | 35fe6c0f7b6ce425a0ac83fe393c02c0be3bbfee /otk/surface.hh | |
| parent | 4ac47a41a15626a3da41d68efd2212869c9188b2 (diff) | |
surface started
Diffstat (limited to 'otk/surface.hh')
| -rw-r--r-- | otk/surface.hh | 33 |
1 files changed, 33 insertions, 0 deletions
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 <X11/Xlib.h> +} + +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 |
