GlyphRunMetrics.cs 676 B

123456789101112131415161718192021222324
  1. namespace Avalonia.Media
  2. {
  3. public readonly record struct GlyphRunMetrics
  4. {
  5. public GlyphRunMetrics(double width, int trailingWhitespaceLength, int newLineLength, int firstCluster, int lastCluster)
  6. {
  7. Width = width;
  8. TrailingWhitespaceLength = trailingWhitespaceLength;
  9. NewLineLength = newLineLength;
  10. FirstCluster = firstCluster;
  11. LastCluster = lastCluster;
  12. }
  13. public double Width { get; }
  14. public int TrailingWhitespaceLength { get; }
  15. public int NewLineLength { get; }
  16. public int FirstCluster { get; }
  17. public int LastCluster { get; }
  18. }
  19. }