C# 클래스 SadConsole.Consoles.TextSurfaceView

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

보호된 프로퍼티들

프로퍼티 타입 설명
cells Cell[]
renderArea Microsoft.Xna.Framework.Rectangle
renderRects Microsoft.Xna.Framework.Rectangle[]

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
Hydrate ( ITextSurfaceRendered surface ) : void

Call after the TextSurfaceView is deserialized to hook it back up to the original surface.

Hydrate ( ITextSurfaceRendered surface, Rectangle view ) : void

Call after the TextSurfaceView is deserialized to hook it back up to the original surface.

Load ( string file, ITextSurfaceRendered surfaceHydrate ) : TextSurfaceView

Loads a TextSurfaceView from a file and existing ITextSurfaceRendered.

Save ( string file ) : void

Saves the serialized TextSurfaceView to a file.

TextSurfaceView ( ITextSurfaceRendered surface, Rectangle area ) : System

Creates a new surface view from an existing surface.

this ( int index ) : Cell

Gets a cell by index.

this ( int x, int y ) : Cell

Gets a cell based on its coordinates on the surface.

보호된 메소드들

메소드 설명
ResetArea ( ) : void

Keeps the text view data in sync with this surface.

메소드 상세

Hydrate() 공개 메소드

Call after the TextSurfaceView is deserialized to hook it back up to the original surface.
public Hydrate ( ITextSurfaceRendered surface ) : void
surface ITextSurfaceRendered The surface to associate with the view.
리턴 void

Hydrate() 공개 메소드

Call after the TextSurfaceView is deserialized to hook it back up to the original surface.
public Hydrate ( ITextSurfaceRendered surface, Rectangle view ) : void
surface ITextSurfaceRendered The surface to associate with the view.
view Microsoft.Xna.Framework.Rectangle The sub view of the .
리턴 void

Load() 공개 정적인 메소드

Loads a TextSurfaceView from a file and existing ITextSurfaceRendered.
public static Load ( string file, ITextSurfaceRendered surfaceHydrate ) : TextSurfaceView
file string The source file.
surfaceHydrate ITextSurfaceRendered The surface this view was originally from.
리턴 TextSurfaceView

ResetArea() 보호된 메소드

Keeps the text view data in sync with this surface.
protected ResetArea ( ) : void
리턴 void

Save() 공개 메소드

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

TextSurfaceView() 공개 메소드

Creates a new surface view from an existing surface.
public TextSurfaceView ( ITextSurfaceRendered surface, Rectangle area ) : System
surface ITextSurfaceRendered The source cell data.
area Microsoft.Xna.Framework.Rectangle The area of the text surface.
리턴 System

this() 공개 메소드

Gets a cell by index.
public this ( int index ) : Cell
index int The index of the cell.
리턴 Cell

this() 공개 메소드

Gets a cell based on its coordinates on the surface.
public this ( int x, int y ) : Cell
x int The X coordinate.
y int The Y coordinate.
리턴 Cell

프로퍼티 상세

cells 보호되어 있는 프로퍼티

protected Cell[] cells
리턴 Cell[]

renderArea 보호되어 있는 프로퍼티

protected Rectangle,Microsoft.Xna.Framework renderArea
리턴 Microsoft.Xna.Framework.Rectangle

renderRects 보호되어 있는 프로퍼티

protected Rectangle[],Microsoft.Xna.Framework renderRects
리턴 Microsoft.Xna.Framework.Rectangle[]