A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
854 B

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