summaryrefslogtreecommitdiff
path: root/otk/point.hh
blob: 093ad4cffe56f7b27d27f556cf34d51a7fa9a217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 */