diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-21 18:42:39 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-21 18:42:39 +0000 |
| commit | a52a6d96d701c993896f276e4198003317632aaf (patch) | |
| tree | be2f51e6a433d1fdf9a7c8248b343cb3f6297212 /otk/rect.hh | |
| parent | a36c7543d4eedaa9e10bfd9f4d9b81279b1bb7e6 (diff) | |
rm the old code including the .pys and the c++ shit
Diffstat (limited to 'otk/rect.hh')
| -rw-r--r-- | otk/rect.hh | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/otk/rect.hh b/otk/rect.hh deleted file mode 100644 index f5e755cc..00000000 --- a/otk/rect.hh +++ /dev/null @@ -1,39 +0,0 @@ -// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- -#ifndef __rect_hh -#define __rect_hh - -#include "point.hh" -#include "size.hh" - -namespace otk { - -class Rect { - Point _p; - Size _s; -public: - Rect() : _p(), _s() {} - Rect(const Point &p, const Size &s) : _p(p), _s(s) {} - Rect(const Rect &r) : _p(r._p), _s(r._s) {} - Rect(int x, int y, int w, int h) - : _p(x, y), _s(w, h) {} - - inline int x() const { return _p.x(); } - inline int y() const { return _p.y(); } - inline int width() const { return _s.width(); } - inline int height() const { return _s.height(); } - - inline int left() const { return _p.x(); } - inline int top() const { return _p.y(); } - inline int right() const { return _p.x() + _s.width() - 1; } - inline int bottom() const { return _p.y() + _s.height() - 1; } - - inline const Point& position() const { return _p; } - inline const Size& size() const { return _s; } - - bool operator==(const Rect &o) const { return _p == o._p && _s == o._s; } - bool operator!=(const Rect &o) const { return _p != o._p || _s != o._s; } -}; - -} - -#endif // __rect_hh |
