2013-06-02 14:32:43 +02:00
|
|
|
#ifndef _SYSTEM_WINDOWS_POINT_
|
|
|
|
#define _SYSTEM_WINDOWS_POINT_
|
|
|
|
|
2013-05-05 18:18:41 +02:00
|
|
|
#include <System/Interfaces.h>
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
namespace Windows
|
|
|
|
{
|
|
|
|
// Represents an x- and y-coordinate pair in two-dimensional space. Can also represent a logical point for certain property usages.
|
|
|
|
struct Point : IEquatable<Point>, Object
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
int X;
|
|
|
|
int Y;
|
|
|
|
|
|
|
|
Point();
|
|
|
|
Point(int x, int y);
|
|
|
|
Point(const Point &obj);
|
|
|
|
|
2013-05-31 15:58:00 +02:00
|
|
|
bool Equals(Object const * const obj) const;
|
2013-05-05 18:18:41 +02:00
|
|
|
bool Equals(const Point other) const;
|
|
|
|
int GetHashCode() const;
|
2013-07-11 17:25:49 +02:00
|
|
|
static int GetType();
|
2013-07-11 20:00:07 +02:00
|
|
|
const String ToString() const;
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
bool operator==(const Point& right) const;
|
|
|
|
bool operator!=(const Point& right) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
2013-06-02 14:32:43 +02:00
|
|
|
|
|
|
|
#endif // _SYSTEM_WINDOWS_POINT_
|