Files
QuickLook/QuickLook.Plugin/QuickLook.Plugin.FontViewer/Typography.OpenFont/Bounds.cs
2024-12-30 04:21:24 +08:00

35 lines
861 B
C#

//Apache2, 2017-present, WinterDev
//Apache2, 2014-2016, Samuel Carlsson, WinterDev
namespace Typography.OpenFont
{
/// <summary>
/// original glyph bounds
/// </summary>
public readonly struct Bounds
{
//TODO: will be changed to => public readonly struct Bounds
public static readonly Bounds Zero = new Bounds(0, 0, 0, 0);
public Bounds(short xmin, short ymin, short xmax, short ymax)
{
XMin = xmin;
YMin = ymin;
XMax = xmax;
YMax = ymax;
}
public short XMin { get; }
public short YMin { get; }
public short XMax { get; }
public short YMax { get; }
#if DEBUG
public override string ToString()
{
return "(" + XMin + "," + YMin + "," + XMax + "," + YMax + ")";
}
#endif
}
}