2013-07-12 21:30:13 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* Point.h *
|
|
|
|
* *
|
|
|
|
* System::Windows::Point definition file *
|
|
|
|
* Copyright (c) XFX Team. All rights reserved *
|
|
|
|
*****************************************************************************/
|
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
|
|
|
|
{
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Represents an x- and y-coordinate pair in two-dimensional space. Can also represent a logical point for certain property usages.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
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-12 21:30:13 +02:00
|
|
|
static const Type& 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_
|