WidgetTranslationContext
ClassTranslates a virtual DOM tree into the Widget tree that the layout engine measures and paints.
Namespace:
RazorConsole.Core.LayoutAssembly:
RazorConsole.CoreDefinition
public sealed class WidgetTranslationContextConstructors
1| Name | Type | Description |
|---|---|---|
WidgetTranslationContext(IEnumerable<IWidgetTranslator>?, SyntaxHighlightingService?)() | Constructor | Initializes a new instance of the WidgetTranslationContext class. |
Properties
1| Name | Type | Description |
|---|---|---|
Other | ||
AnimatedRenderables | IReadOnlyCollection<IAnimatedConsoleRenderable> | Gets the animated renderables found in the current translation. |
Methods
3| Name | Type | Description |
|---|---|---|
ClearAnimatedRenderables() | Method | Forgets the animated renderables of the previous translation. |
TrackAnimation(IAnimatedConsoleRenderable)() | Method | Registers an animated renderable so the display refreshes it on its interval. Custom translators call this for animated content they place in a SpectreWidget. |
Translate(VNode)() | Widget | Translates node through the custom translators and then the built-in translation. |