MosswartMassacre/Unused/Decal.Adapter/RegionChange3DEventArgs.cs
2025-06-09 02:03:11 +02:00

33 lines
573 B
C#

using System;
using System.Drawing;
namespace Decal.Adapter;
public class RegionChange3DEventArgs : EventArgs
{
private int myLeft;
private int myRight;
private int myTop;
private int myBottom;
public int Left => myLeft;
public int Right => myRight;
public int Top => myTop;
public int Bottom => myBottom;
public Rectangle Rect => new Rectangle(myLeft, myTop, myRight - myLeft, myBottom - myTop);
internal RegionChange3DEventArgs(int left, int top, int right, int bottom)
{
myLeft = left;
myTop = top;
myRight = right;
myBottom = bottom;
}
}