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.
 
 
 

33 lines
1.0 KiB

// -----------------------------------------------------------------------
// <copyright file="IRenderRoot.cs" company="Steven Kirk">
// Copyright 2015 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Rendering
{
using Perspex.Platform;
/// <summary>
/// Represents the root of a renderable tree.
/// </summary>
public interface IRenderRoot
{
/// <summary>
/// Gets the renderer for the tree.
/// </summary>
IRenderer Renderer { get; }
/// <summary>
/// Gets the render manager which schedules renders.
/// </summary>
IRenderManager RenderManager { get; }
/// <summary>
/// Translates a point to screen co-ordinates.
/// </summary>
/// <param name="p">The point.</param>
/// <returns>The point in screen co-ordinates.</returns>
Point TranslatePointToScreen(Point p);
}
}