projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73f6bb1
)
add the otk::Point type
author
Dana Jansens
<danakj@orodu.net>
Sun, 10 Nov 2002 10:46:28 +0000
(10:46 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 10 Nov 2002 10:46:28 +0000
(10:46 +0000)
otk/point.hh
[new file with mode: 0644]
patch
|
blob
diff --git a/otk/point.hh
b/otk/point.hh
new file mode 100644
(file)
index 0000000..
093ad4c
--- /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 */