// ----------------------------------------------------------------------- // // Copyright 2014 MIT Licence. See licence.md for more information. // // ----------------------------------------------------------------------- namespace Perspex.Platform { using System; public interface IRenderer { /// /// Gets the number of times has been called. /// int RenderCount { get; } /// /// Renders the specified visual. /// /// The visual to render. /// An optional platform-specific handle. void Render(IVisual visual, IPlatformHandle handle); /// /// Resizes the rendered viewport. /// /// The new width. /// The new height. void Resize(int width, int height); } }