1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/Rectangle.h
Halofreak1990 8f089dc2ab Added the current XFX directory tree.
WARNING!!! This revision cannot compile correctly. It is updated to reflect the many changes within the XFX project.
2010-12-04 16:14:34 +00:00

51 lines
1.2 KiB
C++

/********************************************************
* Rectangle.h *
* *
* XFX Rectangle definition file *
* Copyright © XFX Team. All Rights Reserved *
********************************************************/
#ifndef _XFX_RECTANGLE_
#define _XFX_RECTANGLE_
#include <System/Types.h>
namespace XFX
{
struct Point;
struct Rectangle
{
public:
int Bottom();
int Left();
int Right();
int Top();
int X, Y;
static const Rectangle Empty;
int Width, Height;
Rectangle(int x,int y,int width,int height);
Rectangle(const Rectangle &obj);
Rectangle();
int Contains(int x, int y);
int Contains(Point pt);
void Contains(Point pt, out int result);
int Contains(Rectangle other);
void Contains(Rectangle other, out int result);
int Equals(const Rectangle obj);
int GetHashCode();
void Inflate(int horizontalAmount, int verticalAmount);
int Intersects(Rectangle other);
void Intersects(Rectangle other, out int result);
void Offset(int x, int y);
void Offset(Point pt);
int operator==(const Rectangle other);
int operator!=(const Rectangle other);
Rectangle &operator=(const Rectangle other);
};
}
#endif //_RECTANGLE_