Class RendererTools
Renderer tools for renderables
Inheritance
Namespace: Terminaux.Writer.CyclicWriters.Renderer
Assembly: Terminaux.dll
Syntax
public static class RendererTools
Methods
| Edit this page View SourceRenderRenderable(CyclicWriter)
Renders the renderable
Declaration
public static string RenderRenderable(CyclicWriter renderable)
Parameters
Type | Name | Description |
---|---|---|
CyclicWriter | renderable | Renderable instance to render |
Returns
Type | Description |
---|---|
string | A container representation that you can render with WriteRaw(string, params object[]) |
RenderRenderable(CyclicWriter, Coordinate)
Renders the renderable
Declaration
public static string RenderRenderable(CyclicWriter renderable, Coordinate pos)
Parameters
Type | Name | Description |
---|---|---|
CyclicWriter | 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[]) |
RenderRenderable(CyclicWriter, Coordinate, Size)
Renders the renderable
Declaration
public static string RenderRenderable(CyclicWriter renderable, Coordinate pos, Size size)
Parameters
Type | Name | Description |
---|---|---|
CyclicWriter | renderable | Renderable instance to render |
Coordinate | pos | Position to write to |
Size | size | Size of the renderable for width and height |
Returns
Type | Description |
---|---|
string | A container representation that you can render with WriteRaw(string, params object[]) |
RenderRenderable(GraphicalCyclicWriter)
Renders the renderable
Declaration
public static string RenderRenderable(GraphicalCyclicWriter renderable)
Parameters
Type | Name | Description |
---|---|---|
GraphicalCyclicWriter | renderable | Renderable instance to render |
Returns
Type | Description |
---|---|
string | A container representation that you can render with WriteRaw(string, params object[]) |
RenderRenderable(GraphicalCyclicWriter, Coordinate)
Renders the renderable
Declaration
public static string RenderRenderable(GraphicalCyclicWriter renderable, Coordinate pos)
Parameters
Type | Name | Description |
---|---|---|
GraphicalCyclicWriter | 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[]) |
RenderRenderable(GraphicalCyclicWriter, Coordinate, Size)
Renders the renderable
Declaration
public static string RenderRenderable(GraphicalCyclicWriter renderable, Coordinate pos, Size size)
Parameters
Type | Name | Description |
---|---|---|
GraphicalCyclicWriter | renderable | Renderable instance to render |
Coordinate | pos | Position to write to |
Size | size | Size of the renderable for width and height |
Returns
Type | Description |
---|---|
string | A container representation that you can render with WriteRaw(string, params object[]) |
RenderRenderable(SimpleCyclicWriter)
Renders the renderable
Declaration
public static string RenderRenderable(SimpleCyclicWriter renderable)
Parameters
Type | Name | Description |
---|---|---|
SimpleCyclicWriter | renderable | Renderable instance to render |
Returns
Type | Description |
---|---|
string | A container representation that you can render with WriteRaw(string, params object[]) |
RenderRenderable(SimpleCyclicWriter, Coordinate)
Renders the renderable
Declaration
public static string RenderRenderable(SimpleCyclicWriter renderable, Coordinate pos)
Parameters
Type | Name | Description |
---|---|---|
SimpleCyclicWriter | 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[]) |
WriteRenderable(CyclicWriter)
Writes the renderable to the console
Declaration
public static void WriteRenderable(CyclicWriter renderable)
Parameters
Type | Name | Description |
---|---|---|
CyclicWriter | renderable | Renderable instance to write |
WriteRenderable(CyclicWriter, Coordinate)
Writes the renderable to the console
Declaration
public static void WriteRenderable(CyclicWriter renderable, Coordinate pos)
Parameters
Type | Name | Description |
---|---|---|
CyclicWriter | renderable | Renderable instance to write |
Coordinate | pos | Position to write to |
WriteRenderable(CyclicWriter, Coordinate, Size)
Writes the renderable to the console
Declaration
public static void WriteRenderable(CyclicWriter renderable, Coordinate pos, Size size)
Parameters
Type | Name | Description |
---|---|---|
CyclicWriter | renderable | Renderable instance to write |
Coordinate | pos | Position to write to |
Size | size | Size of the renderable for width and height |
WriteRenderable(GraphicalCyclicWriter)
Writes the renderable to the console
Declaration
public static void WriteRenderable(GraphicalCyclicWriter renderable)
Parameters
Type | Name | Description |
---|---|---|
GraphicalCyclicWriter | renderable | Renderable instance to write |
WriteRenderable(GraphicalCyclicWriter, Coordinate)
Writes the renderable to the console
Declaration
public static void WriteRenderable(GraphicalCyclicWriter renderable, Coordinate pos)
Parameters
Type | Name | Description |
---|---|---|
GraphicalCyclicWriter | renderable | Renderable instance to write |
Coordinate | pos | Position to write to |
WriteRenderable(GraphicalCyclicWriter, Coordinate, Size)
Writes the renderable to the console
Declaration
public static void WriteRenderable(GraphicalCyclicWriter renderable, Coordinate pos, Size size)
Parameters
Type | Name | Description |
---|---|---|
GraphicalCyclicWriter | renderable | Renderable instance to write |
Coordinate | pos | Position to write to |
Size | size | Size of the renderable for width and height |
WriteRenderable(SimpleCyclicWriter)
Writes the renderable to the console
Declaration
public static void WriteRenderable(SimpleCyclicWriter renderable)
Parameters
Type | Name | Description |
---|---|---|
SimpleCyclicWriter | renderable | Renderable instance to write |
WriteRenderable(SimpleCyclicWriter, Coordinate)
Writes the renderable to the console
Declaration
public static void WriteRenderable(SimpleCyclicWriter renderable, Coordinate pos)
Parameters
Type | Name | Description |
---|---|---|
SimpleCyclicWriter | renderable | Renderable instance to write |
Coordinate | pos | Position to write to |