46 lines
928 B
C#
Raw Normal View History

2024-11-23 17:55:40 +01:00
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439
// WindowsPhoneSpeedyBlupi.TinyRect
namespace WindowsPhoneSpeedyBlupi
{
public struct TinyRect
{
2024-12-21 20:56:20 +01:00
public int LeftX;
2024-11-23 17:55:40 +01:00
2024-12-21 20:56:20 +01:00
public int RightX;
2024-11-23 17:55:40 +01:00
2024-12-21 20:56:20 +01:00
public int TopY;
2024-11-23 17:55:40 +01:00
2024-12-21 20:56:20 +01:00
public int BottomY;
2024-11-23 17:55:40 +01:00
2024-12-21 21:57:55 +01:00
public TinyRect(int leftX, int rightX, int topY, int bottomY)
{
LeftX = leftX;
RightX = rightX;
TopY = topY;
BottomY = bottomY;
}
2024-11-23 17:55:40 +01:00
public int Width
{
get
{
2024-12-21 20:56:20 +01:00
return RightX - LeftX;
2024-11-23 17:55:40 +01:00
}
}
public int Height
{
get
{
2024-12-21 20:56:20 +01:00
return BottomY - TopY;
2024-11-23 17:55:40 +01:00
}
}
public override string ToString()
{
2024-12-21 20:56:20 +01:00
return string.Format("{0};{1};{2};{3}", LeftX, TopY, RightX, BottomY);
2024-11-23 17:55:40 +01:00
}
}
}