Files renamed to RecrownedGTK.
This commit is contained in:
24
RecrownedGTK/Types/Rectangle.cs
Normal file
24
RecrownedGTK/Types/Rectangle.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
namespace RecrownedGTK.Types
|
||||
{
|
||||
public struct Rectangle
|
||||
{
|
||||
public int Width {set; get;}
|
||||
public int Height {set; get;}
|
||||
|
||||
public int X {set; get;}
|
||||
public int Y {set; get;}
|
||||
|
||||
public int Area {
|
||||
get {
|
||||
return Width * Height;
|
||||
}
|
||||
}
|
||||
|
||||
public Rectangle(int x, int y, int width, int height) {
|
||||
Width = width;
|
||||
Height = height;
|
||||
X = x;
|
||||
Y = y;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user