This repository has been archived on 2023-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
gwen-dotnet/Gwen/Rectangle.cs

56 lines
556 B
C#

using System;
namespace Gwen
{
public struct Rectangle
{
public int X;
public int Y;
public int Width;
public int Height;
public static readonly Rectangle Empty;
public Rectangle(int x, int y, int width, int height)
{
X = x;
Y = y;
Width = width;
Height = height;
}
public int Left
{
get
{
return X;
}
}
public int Top
{
get
{
return Y;
}
}
public int Right
{
get
{
return X + Width;
}
}
public int Bottom
{
get
{
return Y + Height;
}
}
}
}