]> Dogcows Code - chaz/openbox/blob - otk/point.hh
add the otk::Point type
[chaz/openbox] / 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 */
This page took 0.034665 seconds and 5 git commands to generate.