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.
 
 
 

22 lines
670 B

using Avalonia.Platform;
namespace Avalonia.Media.TextFormatting
{
/// <summary>
/// A text run that supports drawing content.
/// </summary>
public abstract class DrawableTextRun : TextRun
{
/// <summary>
/// Gets the bounds.
/// </summary>
public abstract Rect Bounds { get; }
/// <summary>
/// Draws the <see cref="DrawableTextRun"/> at the given origin.
/// </summary>
/// <param name="drawingContext">The drawing context.</param>
/// <param name="origin">The origin.</param>
public abstract void Draw(IDrawingContextImpl drawingContext, Point origin);
}
}