Browse Source
I don't like to add factories, but it's better than the previous `Attach` way of doing things; it's necessary because it's not possible to pass constuctor parameters using `AvaloniaLocator`.pull/773/head
7 changed files with 32 additions and 9 deletions
@ -0,0 +1,18 @@ |
|||||
|
using System; |
||||
|
|
||||
|
namespace Avalonia.Rendering |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Defines a factory for creating <see cref="IRenderer"/> instances.
|
||||
|
/// </summary>
|
||||
|
public interface IRendererFactory |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Creates a new renderer for the specified render root.
|
||||
|
/// </summary>
|
||||
|
/// <param name="root">The render root.</param>
|
||||
|
/// <param name="renderLoop">The render loop.</param>
|
||||
|
/// <returns>An instance of an <see cref="IRenderer"/>.</returns>
|
||||
|
IRenderer CreateRenderer(IRenderRoot root, IRenderLoop renderLoop); |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue