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;
	}
}
