using Azimuth; namespace Glass.PerformanceTests { public enum Operation { MeasureWidth, CalculateSize, PlaceGlyphs, } /// /// A text to lay out and the constraints to lay it out under, independent of which engine does it. /// public sealed class Workload { public readonly SpriteFontDefinition Font; public readonly StringView Text; public readonly Scalar? MaxWidth; public readonly Scalar? MaxHeight; public readonly TextOverflow Overflow; public Workload(SpriteFontDefinition font, string text, Scalar? maxWidth = null, Scalar? maxHeight = null, TextOverflow overflow = TextOverflow.Clip) { Font = font; Text = text; MaxWidth = maxWidth; MaxHeight = maxHeight; Overflow = overflow; } } }