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, bool, bool)
Renders the renderable
Declaration
public static string RenderRenderable(CyclicWriter renderable, bool ignoreSetPositions = true, bool ignoreSetSize = true)
Parameters
| Type | Name | Description |
|---|---|---|
| CyclicWriter | renderable | Renderable instance to render |
| bool | ignoreSetPositions | Whether to ignore set positions or not |
| bool | ignoreSetSize | Whether to ignore set size or not |
Returns
| Type | Description |
|---|---|
| string | A container representation that you can render with WriteRaw(string, params object[]) |
RenderRenderable(CyclicWriter, Coordinate, bool)
Renders the renderable
Declaration
public static string RenderRenderable(CyclicWriter renderable, Coordinate pos, bool ignoreSetSize = true)
Parameters
| Type | Name | Description |
|---|---|---|
| CyclicWriter | renderable | Renderable instance to render |
| Coordinate | pos | Position to write to |
| bool | ignoreSetSize | Whether to ignore set size or not |
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, bool, bool)
Renders the renderable
Declaration
public static string RenderRenderable(GraphicalCyclicWriter renderable, bool ignoreSetPositions = true, bool ignoreSetSize = true)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphicalCyclicWriter | renderable | Renderable instance to render |
| bool | ignoreSetPositions | Whether to ignore set positions or not |
| bool | ignoreSetSize | Whether to ignore set size or not |
Returns
| Type | Description |
|---|---|
| string | A container representation that you can render with WriteRaw(string, params object[]) |
RenderRenderable(GraphicalCyclicWriter, Coordinate, bool)
Renders the renderable
Declaration
public static string RenderRenderable(GraphicalCyclicWriter renderable, Coordinate pos, bool ignoreSetSize = true)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphicalCyclicWriter | renderable | Renderable instance to render |
| Coordinate | pos | Position to write to |
| bool | ignoreSetSize | Whether to ignore set size or not |
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, bool, bool)
Writes the renderable to the console
Declaration
public static void WriteRenderable(CyclicWriter renderable, bool ignoreSetPositions = true, bool ignoreSetSize = true)
Parameters
| Type | Name | Description |
|---|---|---|
| CyclicWriter | renderable | Renderable instance to write |
| bool | ignoreSetPositions | Whether to ignore set positions or not |
| bool | ignoreSetSize | Whether to ignore set size or not |
WriteRenderable(CyclicWriter, Coordinate, bool)
Writes the renderable to the console
Declaration
public static void WriteRenderable(CyclicWriter renderable, Coordinate pos, bool ignoreSetSize = true)
Parameters
| Type | Name | Description |
|---|---|---|
| CyclicWriter | renderable | Renderable instance to write |
| Coordinate | pos | Position to write to |
| bool | ignoreSetSize | Whether to ignore set size or not |
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, bool, bool)
Writes the renderable to the console
Declaration
public static void WriteRenderable(GraphicalCyclicWriter renderable, bool ignoreSetPositions = true, bool ignoreSetSize = true)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphicalCyclicWriter | renderable | Renderable instance to write |
| bool | ignoreSetPositions | Whether to ignore set positions or not |
| bool | ignoreSetSize | Whether to ignore set size or not |
WriteRenderable(GraphicalCyclicWriter, Coordinate, bool)
Writes the renderable to the console
Declaration
public static void WriteRenderable(GraphicalCyclicWriter renderable, Coordinate pos, bool ignoreSetSize = true)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphicalCyclicWriter | renderable | Renderable instance to write |
| Coordinate | pos | Position to write to |
| bool | ignoreSetSize | Whether to ignore set size or not |
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 |