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.
 
 
 

24 lines
693 B

using System;
using Avalonia.Rendering;
namespace Avalonia.Platform
{
/// <summary>
/// Defines a render target
/// </summary>
/// <remarks>
/// The interface used for obtaining drawing context from surfaces you can render on.
/// </remarks>
public interface IRenderTarget : IDisposable
{
/// <summary>
/// Creates an <see cref="IDrawingContextImpl"/> for a rendering session.
/// </summary>
IDrawingContextImpl CreateDrawingContext();
/// <summary>
/// Indicates if the render target is no longer usable and needs to be recreated
/// </summary>
public bool IsCorrupted { get; }
}
}