Class ContainerTools
Container tools for renderables
Inheritance
object
ContainerTools
Namespace: Terminaux.Writer.CyclicWriters.Renderer
Assembly: Terminaux.dll
Syntax
public static class ContainerTools
Methods
| Edit this page View SourceRenderContainer(Container)
Renders the container
Declaration
public static string RenderContainer(Container container)
Parameters
Type | Name | Description |
---|---|---|
Container | container | Container instance to render |
Returns
Type | Description |
---|---|
string | A container representation that you can render with WriteRaw(string, params object[]) |
RenderRenderable(IStaticRenderable)
Renders the renderable
Declaration
public static string RenderRenderable(IStaticRenderable renderable)
Parameters
Type | Name | Description |
---|---|---|
IStaticRenderable | renderable | Renderable instance to render |
Returns
Type | Description |
---|---|
string | A container representation that you can render with WriteRaw(string, params object[]) |
RenderRenderable(IStaticRenderable, Coordinate)
Renders the renderable
Declaration
public static string RenderRenderable(IStaticRenderable renderable, Coordinate pos)
Parameters
Type | Name | Description |
---|---|---|
IStaticRenderable | renderable | Renderable instance to render |
Coordinate | pos | Position to write to |
Returns
Type | Description |
---|---|
string | A container representation that you can render with WriteRaw(string, params object[]) |
WriteContainer(Container)
Writes the container to the console
Declaration
public static void WriteContainer(Container container)
Parameters
Type | Name | Description |
---|---|---|
Container | container | Container instance to write |
WriteRenderable(IStaticRenderable)
Writes the renderable to the console
Declaration
public static void WriteRenderable(IStaticRenderable renderable)
Parameters
Type | Name | Description |
---|---|---|
IStaticRenderable | renderable | Renderable instance to write |
WriteRenderable(IStaticRenderable, Coordinate)
Writes the renderable to the console
Declaration
public static void WriteRenderable(IStaticRenderable renderable, Coordinate pos)
Parameters
Type | Name | Description |
---|---|---|
IStaticRenderable | renderable | Renderable instance to write |
Coordinate | pos | Position to write to |