C# Class SadConsole.Consoles.TextSurfaceRenderer

Inheritance: ITextSurfaceRenderer
Show file Open project: Thraka/SadConsole Class Usage Examples

Public Properties

Property Type Description
CallBatchEnd bool

Public Methods

Method Description
GetPositionTransform ( Point position, Point CellSize, bool absolutePositioning ) : Matrix

Gets the Matrix transform that positions the console on the screen.

Render ( ITextSurfaceRendered surface, Matrix renderingMatrix ) : void

Renders a surface to the screen.

Render ( ITextSurfaceRendered surface, Point position, bool usePixelPositioning = false ) : void

Renders a surface to the screen.

TextSurfaceRenderer ( ) : System

Creates a new renderer.

Private Methods

Method Description
AfterDeserialized ( StreamingContext context ) : void

Method Details

GetPositionTransform() public method

Gets the Matrix transform that positions the console on the screen.
public GetPositionTransform ( Point position, Point CellSize, bool absolutePositioning ) : Matrix
position Point
CellSize Point
absolutePositioning bool
return Matrix

Render() public method

Renders a surface to the screen.
public Render ( ITextSurfaceRendered surface, Matrix renderingMatrix ) : void
surface ITextSurfaceRendered The surface to render.
renderingMatrix Matrix Display matrix for the rendered console.
return void

Render() public method

Renders a surface to the screen.
public Render ( ITextSurfaceRendered surface, Point position, bool usePixelPositioning = false ) : void
surface ITextSurfaceRendered The surface to render.
position Point Calculates the rendering position on the screen based on the size of the parameter.
usePixelPositioning bool Ignores the font for positioning and instead treats the parameter in pixels.
return void

TextSurfaceRenderer() public method

Creates a new renderer.
public TextSurfaceRenderer ( ) : System
return System

Property Details

CallBatchEnd public property

public bool CallBatchEnd
return bool