diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-11-10 10:46:28 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-11-10 10:46:28 +0000 |
| commit | 5dc5cc32b0c00c3bfba8ea5727599f49b56ae817 (patch) | |
| tree | a40b05f1893c3f776864b1a78a5be0b88de1b07f /otk | |
| parent | 73f6bb1a7b6bb5f8b9cf22587722d713a1f15b59 (diff) | |
add the otk::Point type
Diffstat (limited to 'otk')
| -rw-r--r-- | otk/point.hh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/otk/point.hh b/otk/point.hh new file mode 100644 index 00000000..093ad4cf --- /dev/null +++ b/otk/point.hh @@ -0,0 +1,27 @@ +// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- +#ifndef __point_hh +#define __point_hh + +/*! @file point.hh +*/ + +namespace otk { + +class Point { +private: + int _x, _y; + +public: + Point() : _x(0), _y(0) {} + Point(int x, int y) : _x(x), _y(y) {} + + void setX(int x) { _x = x; } + void x() const { return _x; } + + void setY(int x) { _x = x; } + void y() const { return _x; } +}; + +} + +#endif /* __point_hh */ |
