C# 클래스 SadConsole.Consoles.LayeredTextSurface

상속: TextSurface
파일 보기 프로젝트 열기: Thraka/SadConsole 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AfterDeserialized void
AfterSerialized void
BeforeSerialized void

공개 메소드들

메소드 설명
Add ( ) : Layer

Adds a new layer.

Add ( ITextSurface surface ) : Layer

Creates and adds a new layer based on an existing surface.

GetLayer ( int index ) : Layer

Gets a specific layer.

GetLayers ( ) : Layer[]

Gets all of the layers.

IndexOf ( Layer layer ) : int

Gets the index of a layer.

LayeredTextSurface ( int width, int height, Font font, int layers ) : System

Creates a new layer text surface with the specified font.

LayeredTextSurface ( int width, int height, int layers ) : System

Creates a new layer text surface with the default Font.

Load ( string file ) : LayeredTextSurface

Loads a LayeredTextSurface from a file.

Move ( Layer layer, int index ) : void

Moves a layer to the specified index.

MoveToBottom ( Layer layer ) : void

Moves a layer to the bottom.

MoveToTop ( Layer layer ) : void

Moves a layer to the top.

Remove ( Layer layer ) : void

Removes a layer.

Remove ( int index ) : void

Removes a layer.

Save ( string file ) : void

Saves the LayeredTextSurface to a file.

SetActiveLayer ( Layer layer ) : void

Changes the active layer, which sets the current cell data for ITextSurfaceRendered.

SetActiveLayer ( int index ) : void

Changes the active layer, which sets the current cell data for ITextSurfaceRendered.

보호된 메소드들

메소드 설명
InitializeCells ( ) : void

Sets up all the cells of a layer for the first time.

InitializeLayer ( Layer layer ) : void

Initializes a layers cells.

ResetArea ( ) : void

Resets all layer areas.

ResetAreaLayer ( Layer layer ) : void

Sets up the layers render cells.

SyncLayerIndex ( ) : void

Sets the Layer.Index of each layer to the index it appears in the layers.

비공개 메소드들

메소드 설명
AfterDeserialized ( StreamingContext context ) : void
AfterSerialized ( StreamingContext context ) : void
BeforeSerialized ( StreamingContext context ) : void

메소드 상세

Add() 공개 메소드

Adds a new layer.
public Add ( ) : Layer
리턴 Layer

Add() 공개 메소드

Creates and adds a new layer based on an existing surface.
public Add ( ITextSurface surface ) : Layer
surface ITextSurface The surface. Must be the same width/height of this
리턴 Layer

GetLayer() 공개 메소드

Gets a specific layer.
public GetLayer ( int index ) : Layer
index int The zero-based layer to get.
리턴 Layer

GetLayers() 공개 메소드

Gets all of the layers.
public GetLayers ( ) : Layer[]
리턴 Layer[]

IndexOf() 공개 메소드

Gets the index of a layer.
public IndexOf ( Layer layer ) : int
layer Layer The layer to check.
리턴 int

InitializeCells() 보호된 메소드

Sets up all the cells of a layer for the first time.
protected InitializeCells ( ) : void
리턴 void

InitializeLayer() 보호된 메소드

Initializes a layers cells.
protected InitializeLayer ( Layer layer ) : void
layer Layer The layer to setup.
리턴 void

LayeredTextSurface() 공개 메소드

Creates a new layer text surface with the specified font.
public LayeredTextSurface ( int width, int height, Font font, int layers ) : System
width int Width of the layers.
height int Height of the layers.
font Font The font.
layers int The count of layers.
리턴 System

LayeredTextSurface() 공개 메소드

Creates a new layer text surface with the default Font.
public LayeredTextSurface ( int width, int height, int layers ) : System
width int Width of the layers.
height int Height of the layers.
layers int The count of layers.
리턴 System

Load() 공개 정적인 메소드

Loads a LayeredTextSurface from a file.
public static Load ( string file ) : LayeredTextSurface
file string The source file.
리턴 LayeredTextSurface

Move() 공개 메소드

Moves a layer to the specified index.
public Move ( Layer layer, int index ) : void
layer Layer The layer to check.
index int The new index of the layer.
리턴 void

MoveToBottom() 공개 메소드

Moves a layer to the bottom.
public MoveToBottom ( Layer layer ) : void
layer Layer The layer to check.
리턴 void

MoveToTop() 공개 메소드

Moves a layer to the top.
public MoveToTop ( Layer layer ) : void
layer Layer The layer to check.
리턴 void

Remove() 공개 메소드

Removes a layer.
public Remove ( Layer layer ) : void
layer Layer The layer to remove.
리턴 void

Remove() 공개 메소드

Removes a layer.
public Remove ( int index ) : void
index int The layer index to remove.
리턴 void

ResetArea() 보호된 메소드

Resets all layer areas.
protected ResetArea ( ) : void
리턴 void

ResetAreaLayer() 보호된 메소드

Sets up the layers render cells.
protected ResetAreaLayer ( Layer layer ) : void
layer Layer
리턴 void

Save() 공개 메소드

Saves the LayeredTextSurface to a file.
public Save ( string file ) : void
file string The destination file.
리턴 void

SetActiveLayer() 공개 메소드

Changes the active layer, which sets the current cell data for ITextSurfaceRendered.
public SetActiveLayer ( Layer layer ) : void
layer Layer The layer to set active.
리턴 void

SetActiveLayer() 공개 메소드

Changes the active layer, which sets the current cell data for ITextSurfaceRendered.
public SetActiveLayer ( int index ) : void
index int The zero-based index of the layer.
리턴 void

SyncLayerIndex() 보호된 메소드

Sets the Layer.Index of each layer to the index it appears in the layers.
protected SyncLayerIndex ( ) : void
리턴 void