]>
Dogcows Code - chaz/openbox/blob - otk/point.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
10 Point() : _x(0), _y(0) {}
11 Point(int x
, int y
) : _x(x
), _y(y
) {}
12 Point(const Point
&p
) : _x(p
._x
), _y(p
._y
) {}
14 inline int x() const { return _x
; }
15 inline int y() const { return _y
; }
17 bool operator==(const Point
&o
) const { return _x
== o
._x
&& _y
== o
._y
; }
18 bool operator!=(const Point
&o
) const { return _x
!= o
._x
|| _y
!= o
._y
; }
This page took 0.035143 seconds and 4 git commands to generate.