]> icculus.org git repositories - dana/openbox.git/blob - otk/point.hh
add the otk::Point type
[dana/openbox.git] / otk / point.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __point_hh
3 #define __point_hh
4
5 /*! @file point.hh
6 */
7
8 namespace otk {
9
10 class Point {
11 private:
12   int _x, _y;
13
14 public:
15   Point() : _x(0), _y(0) {}
16   Point(int x, int y) : _x(x), _y(y) {}
17
18   void setX(int x) { _x = x; }
19   void x() const { return _x; }
20
21   void setY(int x) { _x = x; }
22   void y() const { return _x; }
23 };
24
25 }
26
27 #endif /* __point_hh */