1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
Tom Lint 7e74ae8683 Added System::Type
Added TypeInfo for all relevant types
Added comments
Updated DependencyProperty to work with System::Type
Fixed casing on PropertyMetadata
2013-07-12 21:30:13 +02:00

58 lines
1.4 KiB
C++

/*****************************************************************************
* Rect.h *
* *
* XFX System::Windows::Rect structure definition file *
* Copyright (c) XFX Team. All Rights Reserved *
*****************************************************************************/
#ifndef _SYSTEM_WINDOWS_RECT_
#define _SYSTEM_WINDOWS_RECT_
#include <System/Interfaces.h>
namespace System
{
namespace Windows
{
struct Point;
struct Size;
/**
* Describes the width, height, and point origin of a rectangle.
*/
struct Rect : IEquatable<Rect>, Object
{
public:
int getBottom() const;
static const Rect Empty;
int Height;
int getLeft() const;
int getRight() const;
int getTop() const;
int Width;
int X;
int Y;
Rect();
Rect(const int x, const int y, const int width, const int height);
Rect(const Point point1, const Point point2);
Rect(const Point location, const Size size);
Rect(const Rect &obj);
bool Contains(const Point point) const;
bool Equals(Object const * const obj) const;
bool Equals(const Rect other) const;
int GetHashCode() const;
static const Type& GetType();
void Intersect(const Rect rect);
const String ToString() const;
void Union(const Point point);
void Union(const Rect rect);
bool operator!=(const Rect& right) const;
bool operator==(const Rect& right) const;
};
}
}
#endif //_SYSTEM_WINDOWS_RECT_