RendererManager Class
Namespace: Stride.UI.RenderersAssembly: Stride.UI.dll
The class in charge to manage the renderer of the different UIElements. Once registered into the manager, a renderer is owned by the manager.
System.Object →
RendererManager
Derived from RendererManager:
public class RendererManager : IRendererManager, IDisposable
Name | Description | |
---|---|---|
Constructors | ||
RendererManager(IElementRendererFactory) | Create a new instance of RendererManager with provided DefaultFactory |
|
Methods | ||
Dispose() | ||
GetRenderer(UIElement) | ||
RegisterRenderer(UIElement, ElementRenderer) | ||
RegisterRendererFactory(Type, IElementRendererFactory) |
Constructors
RendererManager(IElementRendererFactory)
Create a new instance of RendererManager with provided DefaultFactory
public RendererManager(IElementRendererFactory defaultFactory)
Parameters
Type | Name | Description |
---|---|---|
IElementRendererFactory | defaultFactory |
Methods
Dispose()
public void Dispose()
GetRenderer(UIElement)
public ElementRenderer GetRenderer(UIElement element)
Parameters
Type | Name | Description |
---|---|---|
UIElement | element |
Returns
Type | Description |
---|---|
ElementRenderer |
RegisterRenderer(UIElement, ElementRenderer)
public void RegisterRenderer(UIElement element, ElementRenderer renderer)
Parameters
Type | Name | Description |
---|---|---|
UIElement | element | |
ElementRenderer | renderer |
RegisterRendererFactory(Type, IElementRendererFactory)
public void RegisterRendererFactory(Type uiElementType, IElementRendererFactory factory)
Parameters
Type | Name | Description |
---|---|---|
System.Type | uiElementType | |
IElementRendererFactory | factory |