]> Dogcows Code - chaz/openbox/blobdiff - otk/point.hh
x() and y() should return values :)
[chaz/openbox] / otk / point.hh
index 093ad4cffe56f7b27d27f556cf34d51a7fa9a217..2c6d334c0347db7484a4a426c7fc1eaf88516b7f 100644 (file)
@@ -3,23 +3,34 @@
 #define __point_hh
 
 /*! @file point.hh
+  @brief The Point class contains an x/y pair
 */
 
 namespace otk {
 
+//! The Point class is an x/y coordinate or size pair
 class Point {
 private:
-  int _x, _y;
+  //! The x value
+  int _x;
+  //! The y value
+  int _y;
 
 public:
+  //! Constructs a new Point with 0,0 values
   Point() : _x(0), _y(0) {}
+  //! Constructs a new Point with given values
   Point(int x, int y) : _x(x), _y(y) {}
 
+  //! Changes the x value to the new value specified
   void setX(int x) { _x = x; }
-  void x() const { return _x; }
+  //! Returns the x value
+  int x() const { return _x; }
 
+  //! Changes the y value to the new value specified
   void setY(int x) { _x = x; }
-  void y() const { return _x; }
+  //! Returns the y value
+  int y() const { return _x; }
 };
 
 }
This page took 0.021718 seconds and 4 git commands to generate.