libtcod-net
RootConsole Class
NamespaceslibtcodWrapperRootConsole
"Root" console, one which blits onto window or fullscreen
Declaration Syntax
C#
public class RootConsole : Console
Members
All MembersMethodsProperties



IconMemberDescription
BackgroundColor
Gets/sets the default background color of the console.
(Inherited from Console.)
Blit(Int32, Int32, Int32, Int32, Console, Int32, Int32)
Blit console onto another console
(Inherited from Console.)
Blit(Int32, Int32, Int32, Int32, Console, Int32, Int32, Int32)
Blit console onto another console
(Inherited from Console.)
Clear()()()
Clear the console by setting each cell to default background, foreground color, and ascii value to ' '
(Inherited from Console.)
Dispose()()()
Destory unmanaged console resources
(Inherited from Console.)
DrawFrame(Int32, Int32, Int32, Int32, Boolean, String)
Draw "Frame" with title onto console
(Inherited from Console.)
DrawFrame(Int32, Int32, Int32, Int32, Boolean)
Draw "Frame" with title onto console
(Inherited from Console.)
DrawHLine(Int32, Int32, Int32)
Draw horizontal line using default background/foreground color
(Inherited from Console.)
DrawRect(Int32, Int32, Int32, Int32, Boolean, Background)
Draw rectangle of color to console, setting background color to default
(Inherited from Console.)
DrawRect(Int32, Int32, Int32, Int32, Boolean)
Draw rectangle of color to console, setting background color to default
(Inherited from Console.)
DrawVLine(Int32, Int32, Int32)
Draw vertical line using default background/foreground color
(Inherited from Console.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Flush()()()
"Flush" console by rendering new frame

Font
Font data for a font other than the default "terminal.bmp".

ForegroundColor
Gets/sets the default foreground color of the console.
(Inherited from Console.)
Fullscreen
Whether or not to run the application full-screen. Attempting to reset this once GetInstance() has been called will result in an exception.

GetChar(Int32, Int32)
Get ascii value of single cell
(Inherited from Console.)
GetCharBackground(Int32, Int32)
Get Background of single cell
(Inherited from Console.)
GetCharForeground(Int32, Int32)
Get Forground of single cell
(Inherited from Console.)
GetConsoleHeight()()()
Returns console's height
(Inherited from Console.)
GetConsoleWidth()()()
Returns console's width
(Inherited from Console.)
GetFadeColor()()()
Get current fade color

GetFadeLevel()()()
Get current fade level

GetHashCode()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetInstance()()()
Modified singleton pattern. Creates the root console based on the behavior values in RootConsole.Width, RootConsole.Height, RootConsole.WindowTitle, RootConsole.Fullscreen, and RootConsole.Font, or gets the already-created console if one exists.

GetNewConsole(Int32, Int32)
Create new offscreen (secondary) console

GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
Height
Height, in tiles, of the root console window. Attempting to reset this once GetInstance() has been called will result in an exception.

IsWindowClosed()()()
Has the window been closed by the user

MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
PrintLine(String, Int32, Int32, LineAlignment)
Print string to line of console, using default foreground/background colors
(Inherited from Console.)
PrintLine(String, Int32, Int32, Background, LineAlignment)
Print string to line of console, using default foreground/background colors
(Inherited from Console.)
PrintLineRect(String, Int32, Int32, Int32, Int32, LineAlignment)
Print aligned string inside the defined rectangle, truncating if bottom is reached
(Inherited from Console.)
PrintLineRect(String, Int32, Int32, Int32, Int32, Background, LineAlignment)
Print aligned string inside the defined rectangle, truncating if bottom is reached
(Inherited from Console.)
PutChar(Int32, Int32, Char, Background)
Put ascii character onto console
(Inherited from Console.)
PutChar(Int32, Int32, Byte, Background)
Put ascii character onto console
(Inherited from Console.)
PutChar(Int32, Int32, Char)
Put ascii character onto console
(Inherited from Console.)
PutChar(Int32, Int32, Byte)
Put ascii character onto console
(Inherited from Console.)
SetCharBackground(Int32, Int32, Color, Background)
Set background color of single cell
(Inherited from Console.)
SetCharBackground(Int32, Int32, Color)
Set background color of single cell
(Inherited from Console.)
SetCharForeground(Int32, Int32, Color)
Set foreground color of single cell
(Inherited from Console.)
SetFade(Byte, Color)
Fade console to specified color

ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Width
Width, in tiles, of the root console window. Attempting to reset this once GetInstance() has been called will result in an exception.

WindowTitle
Title for the root console window. Attempting to reset this once GetInstance() has been called will result in an exception.

Inheritance Hierarchy
Object
Console
 RootConsole

Assembly: libtcodWrapper (Module: libtcodWrapper) Version: 0.2.0.0 (0.2.0.0)