C# Class kOS.Safe.Screen.ScreenBuffer

Inheritance: IScreenBuffer
Mostrar archivo Open project: KSP-KOS/KOS

Public Methods

Method Description
AddResizeNotifier ( ResizeNotifier notifier ) : void
AddSubBuffer ( kOS.Safe.Screen.SubBuffer subBuffer ) : void
ClearScreen ( ) : void
DebugDump ( ) : string
GetBuffer ( ) : List
MarkRowsDirty ( int startRow, int numRows ) : void

Marks the given section of rows in the buffer as dirty and in need of a diff check.

MoveCursor ( int row, int column ) : void
MoveToNextLine ( ) : void
Print ( string textToPrint ) : void
Print ( string textToPrint, bool addNewLine ) : void
PrintAt ( string textToPrint, int row, int column ) : void
RemoveResizeNotifier ( ResizeNotifier notifier ) : void
RemoveSubBuffer ( kOS.Safe.Screen.SubBuffer subBuffer ) : void
ScreenBuffer ( ) : System
ScrollVertical ( int deltaRows ) : int
SetSize ( int rows, int columns ) : void

Protected Methods

Method Description
AddNewBufferLines ( int howMany = 1 ) : void
ResizeBuffer ( ) : void
SplitIntoLines ( string textToPrint ) : List
UpdateSubBuffers ( ) : void

Private Methods

Method Description
InitializeBuffer ( ) : void
MoveColumn ( int deltaPosition ) : void
PrintLine ( string textToPrint ) : void
ScrollVerticalInternal ( int deltaRows = 1 ) : int
StripUnprintables ( string textToPrint ) : string

Method Details

AddNewBufferLines() protected method

protected AddNewBufferLines ( int howMany = 1 ) : void
howMany int
return void

AddResizeNotifier() public method

public AddResizeNotifier ( ResizeNotifier notifier ) : void
notifier ResizeNotifier
return void

AddSubBuffer() public method

public AddSubBuffer ( kOS.Safe.Screen.SubBuffer subBuffer ) : void
subBuffer kOS.Safe.Screen.SubBuffer
return void

ClearScreen() public method

public ClearScreen ( ) : void
return void

DebugDump() public method

public DebugDump ( ) : string
return string

GetBuffer() public method

public GetBuffer ( ) : List
return List

MarkRowsDirty() public method

Marks the given section of rows in the buffer as dirty and in need of a diff check.
public MarkRowsDirty ( int startRow, int numRows ) : void
startRow int Starting with this row number
numRows int for this many rows, or up to the max row the buffer has if this number is too large
return void

MoveCursor() public method

public MoveCursor ( int row, int column ) : void
row int
column int
return void

MoveToNextLine() public method

public MoveToNextLine ( ) : void
return void

Print() public method

public Print ( string textToPrint ) : void
textToPrint string
return void

Print() public method

public Print ( string textToPrint, bool addNewLine ) : void
textToPrint string
addNewLine bool
return void

PrintAt() public method

public PrintAt ( string textToPrint, int row, int column ) : void
textToPrint string
row int
column int
return void

RemoveResizeNotifier() public method

public RemoveResizeNotifier ( ResizeNotifier notifier ) : void
notifier ResizeNotifier
return void

RemoveSubBuffer() public method

public RemoveSubBuffer ( kOS.Safe.Screen.SubBuffer subBuffer ) : void
subBuffer kOS.Safe.Screen.SubBuffer
return void

ResizeBuffer() protected method

protected ResizeBuffer ( ) : void
return void

ScreenBuffer() public method

public ScreenBuffer ( ) : System
return System

ScrollVertical() public method

public ScrollVertical ( int deltaRows ) : int
deltaRows int
return int

SetSize() public method

public SetSize ( int rows, int columns ) : void
rows int
columns int
return void

SplitIntoLines() protected method

protected SplitIntoLines ( string textToPrint ) : List
textToPrint string
return List

UpdateSubBuffers() protected method

protected UpdateSubBuffers ( ) : void
return void