// ----------------------------------------------------------------------- // // Copyright 2014 MIT Licence. See licence.md for more information. // // ----------------------------------------------------------------------- namespace Perspex.Platform { using System; using System.Collections.Generic; using Perspex.Media; public interface IFormattedTextImpl : IDisposable { Size Constraint { get; set; } IEnumerable GetLines(); TextHitTestResult HitTestPoint(Point point); Rect HitTestTextPosition(int index); IEnumerable HitTestTextRange(int index, int length, Point origin); Size Measure(); void SetForegroundBrush(Brush brush, int startIndex, int count); } }