mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-12 10:19:07 +00:00
35 lines
861 B
C#
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
|
|
}
|
|
}
|