50 extern GG_API
const X X0;
51 extern GG_API
const X X1;
52 extern GG_API
const Y Y0;
53 extern GG_API
const Y Y1;
70 bool Less(
const Pt& rhs)
const
71 {
return x < rhs.
x ?
true : (x == rhs.
x ? (y < rhs.
y ?
true :
false) :
false); }
91 Rect(
const Pt& pt1,
const Pt& pt2);
92 Rect(
X x1,
Y y1,
X x2,
Y y2);
98 Y Top()
const {
return ul.y; }
105 bool Contains(
const Pt& pt)
const;
117 GG_API
inline bool operator==(
const Pt& lhs,
const Pt& rhs) {
return lhs.
x == rhs.
x && lhs.
y == rhs.
y; }
118 GG_API
inline bool operator!=(
const Pt& lhs,
const Pt& rhs) {
return !(lhs == rhs); }
119 GG_API
inline bool operator<(
const Pt& lhs,
const Pt& rhs) {
return lhs.
x < rhs.
x && lhs.
y < rhs.
y; }
120 GG_API
inline bool operator>(
const Pt& lhs,
const Pt& rhs) {
return lhs.
x > rhs.
x && lhs.
y > rhs.
y; }
121 GG_API
inline bool operator<=(
const Pt& lhs,
const Pt& rhs) {
return lhs.
x <= rhs.
x && lhs.
y <= rhs.
y; }
122 GG_API
inline bool operator>=(
const Pt& lhs,
const Pt& rhs) {
return lhs.
x >= rhs.
x && lhs.
y >= rhs.
y; }
126 GG_API std::ostream&
operator<<(std::ostream& os,
const Pt& pt);
139 GG_API std::ostream&
operator<<(std::ostream& os,
const Rect& rect);