2 * Copyright 2001-2006, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
7 * Stephan Aßmus <superstippi@gmx.de>
23 IntPoint(int32 X
, int32 Y
);
24 IntPoint(const IntPoint
& p
);
25 IntPoint(const BPoint
& p
);
27 IntPoint
& operator=(const IntPoint
& p
);
28 void Set(int32 x
, int32 y
);
30 void ConstrainTo(const IntRect
& r
);
31 void PrintToStream() const;
33 IntPoint
operator+(const IntPoint
& p
) const;
34 IntPoint
operator-(const IntPoint
& p
) const;
35 IntPoint
& operator+=(const IntPoint
& p
);
36 IntPoint
& operator-=(const IntPoint
& p
);
38 bool operator!=(const IntPoint
& p
) const;
39 bool operator==(const IntPoint
& p
) const;
41 // conversion to BPoint
42 operator BPoint() const
43 { return BPoint((float)x
, (float)y
); }
56 IntPoint::IntPoint(int32 x
, int32 y
)
64 IntPoint::IntPoint(const IntPoint
& p
)
72 IntPoint::IntPoint(const BPoint
& p
)
80 IntPoint::operator=(const IntPoint
& from
)
89 IntPoint::Set(int32 x
, int32 y
)