C# 클래스 SadConsole.Consoles.Cursor

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

Private Properties

프로퍼티 타입 설명
Constructor void
Cursor System
PrintGlyph void

공개 메소드들

메소드 설명
AttachConsole ( SurfaceEditor console ) : void

Sets the console this cursor is targetting.

CarriageReturn ( ) : Cursor

Returns the cursor to the start of the current line.

Cursor ( ITextSurface surface ) : System
Cursor ( SurfaceEditor console ) : System

Creates a new instance of the cursor class that will work with the specified console.

Down ( int amount ) : Cursor

Moves the cusor down by the specified amount of lines.

Left ( int amount ) : Cursor

Moves the cusor left by the specified amount of columns.

LeftWrap ( int amount ) : Cursor

Moves the cusor left by the specified amount of columns, wrapping the cursor if needed.

LineFeed ( ) : Cursor

Moves the cursor down a line.

NewLine ( ) : Cursor

Calls the M:CarriageReturn() and M:LineFeed() methods in a single call.

Print ( ColoredString text ) : Cursor

Prints text to the console using the appearance of the colored string.

Print ( string text ) : Cursor

Prints text to the console using the default print appearance.

Print ( string text, ICellAppearance template, ICellEffect templateEffect ) : Cursor

Prints text on the console.

Render ( SpriteBatch batch, Font font, Rectangle renderArea ) : void
ResetAppearanceToConsole ( ) : Cursor

Resets the cursor appearance to the console's default foreground and background.

ResetCursorEffect ( ) : void

Resets the CursorRenderCell back to the default.

Right ( int amount ) : Cursor

Moves the cusor right by the specified amount of columns.

RightWrap ( int amount ) : Cursor

Moves the cusor right by the specified amount of columns, wrapping the cursor if needed.

Up ( int amount ) : Cursor

Moves the cusor up by the specified amount of lines.

비공개 메소드들

메소드 설명
Constructor ( ) : void
Cursor ( ) : System
PrintGlyph ( ColoredGlyph glyph, ColoredString settings ) : void

메소드 상세

AttachConsole() 공개 메소드

Sets the console this cursor is targetting.
public AttachConsole ( SurfaceEditor console ) : void
console SurfaceEditor The console the cursor works with.
리턴 void

CarriageReturn() 공개 메소드

Returns the cursor to the start of the current line.
public CarriageReturn ( ) : Cursor
리턴 Cursor

Cursor() 공개 메소드

public Cursor ( ITextSurface surface ) : System
surface ITextSurface
리턴 System

Cursor() 공개 메소드

Creates a new instance of the cursor class that will work with the specified console.
public Cursor ( SurfaceEditor console ) : System
console SurfaceEditor The console this cursor will print on.
리턴 System

Down() 공개 메소드

Moves the cusor down by the specified amount of lines.
public Down ( int amount ) : Cursor
amount int The amount of lines to move the cursor
리턴 Cursor

Left() 공개 메소드

Moves the cusor left by the specified amount of columns.
public Left ( int amount ) : Cursor
amount int The amount of columns to move the cursor
리턴 Cursor

LeftWrap() 공개 메소드

Moves the cusor left by the specified amount of columns, wrapping the cursor if needed.
public LeftWrap ( int amount ) : Cursor
amount int The amount of columns to move the cursor
리턴 Cursor

LineFeed() 공개 메소드

Moves the cursor down a line.
public LineFeed ( ) : Cursor
리턴 Cursor

NewLine() 공개 메소드

Calls the M:CarriageReturn() and M:LineFeed() methods in a single call.
public NewLine ( ) : Cursor
리턴 Cursor

Print() 공개 메소드

Prints text to the console using the appearance of the colored string.
public Print ( ColoredString text ) : Cursor
text ColoredString The text to print.
리턴 Cursor

Print() 공개 메소드

Prints text to the console using the default print appearance.
public Print ( string text ) : Cursor
text string The text to print.
리턴 Cursor

Print() 공개 메소드

Prints text on the console.
public Print ( string text, ICellAppearance template, ICellEffect templateEffect ) : Cursor
text string The text to print.
template ICellAppearance The way the text will look when it is printed.
templateEffect ICellEffect Effect to apply to the text as its printed.
리턴 Cursor

Render() 공개 메소드

public Render ( SpriteBatch batch, Font font, Rectangle renderArea ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
font Font
renderArea Microsoft.Xna.Framework.Rectangle
리턴 void

ResetAppearanceToConsole() 공개 메소드

Resets the cursor appearance to the console's default foreground and background.
Thrown when the backing console's CellData is null.
public ResetAppearanceToConsole ( ) : Cursor
리턴 Cursor

ResetCursorEffect() 공개 메소드

Resets the CursorRenderCell back to the default.
public ResetCursorEffect ( ) : void
리턴 void

Right() 공개 메소드

Moves the cusor right by the specified amount of columns.
public Right ( int amount ) : Cursor
amount int The amount of columns to move the cursor
리턴 Cursor

RightWrap() 공개 메소드

Moves the cusor right by the specified amount of columns, wrapping the cursor if needed.
public RightWrap ( int amount ) : Cursor
amount int The amount of columns to move the cursor
리턴 Cursor

Up() 공개 메소드

Moves the cusor up by the specified amount of lines.
public Up ( int amount ) : Cursor
amount int The amount of lines to move the cursor
리턴 Cursor