Singularity/Library/PackageCache/com.unity.2d.psdimporter@6.0.7/Editor/PSDPlugin/PDNWrapper/Size.cs

50 lines
874 B
C#
Raw Normal View History

2024-05-06 14:45:45 -04:00
namespace PDNWrapper
{
// Mimics System.Drawing.Size
internal struct Size
{
public static readonly Size Empty = new Size();
private int width;
private int height;
public Size(int width, int height)
{
this.width = width;
this.height = height;
}
public bool IsEmpty
{
get
{
return width == 0 && height == 0;
}
}
public int Width
{
get
{
return width;
}
set
{
width = value;
}
}
public int Height
{
get
{
return height;
}
set
{
height = value;
}
}
}
}