X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fpoint.hh;h=66c3b14d039e57150587b55e7258212a5a72dad4;hb=2b2f81b93c89c2a2d6abc3b12dee66b8e2a0452d;hp=425cb2185b325633e9cdf7f6df90e17ae3f337df;hpb=8693dd95a2cdd45a5b0668ea2df1e4d20e238ee8;p=chaz%2Fopenbox diff --git a/otk/point.hh b/otk/point.hh index 425cb218..66c3b14d 100644 --- a/otk/point.hh +++ b/otk/point.hh @@ -14,7 +14,7 @@ private: //! The x value int _x; //! The y value - int _y; + int _y; public: //! Constructs a new Point with 0,0 values @@ -25,12 +25,15 @@ public: //! Changes the x value to the new value specified void setX(int x) { _x = x; } //! Returns the x value - void x() const { return _x; } + int x() const { return _x; } //! Changes the y value to the new value specified - void setY(int x) { _x = x; } + void setY(int y) { _y = y; } //! Returns the y value - void y() const { return _x; } + int y() const { return _y; } + + //! Changes the x and y values + void setPoint(int x, int y) { _x = x; _y = y; } }; }