C# Class SadConsole.CellAppearance

Inheritance: ICellAppearance
Datei anzeigen Open project: Thraka/SadConsole Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
CellAppearance ( ) : System.Runtime.Serialization

Creates a new instance of the cell appearance with a white foreground and transparent background.

CellAppearance ( Microsoft.Xna.Framework.Color foreground, Microsoft.Xna.Framework.Color background ) : System.Runtime.Serialization

Creates a new instance of the cell appearance with the specified colors and effect.

CellAppearance ( Microsoft.Xna.Framework.Color foreground, Microsoft.Xna.Framework.Color background, int glyphIndex ) : System.Runtime.Serialization

Creates a new instance of the cell appearance with the specified colors and effect.

CellAppearance ( Microsoft.Xna.Framework.Color foreground, Microsoft.Xna.Framework.Color background, int glyphIndex, SpriteEffects spriteEffect ) : System.Runtime.Serialization

Creates a new instance of the cell appearance with the specified colors and effect.

Clone ( ) : CellAppearance

Creates a new copy of this cell appearance.

CopyAppearanceTo ( ICellAppearance destination ) : void

Applies this appearance instance values to the destination appearance.

SwapColors ( ) : void

Swaps the foreground and background colors.

Method Details

CellAppearance() public method

Creates a new instance of the cell appearance with a white foreground and transparent background.
public CellAppearance ( ) : System.Runtime.Serialization
return System.Runtime.Serialization

CellAppearance() public method

Creates a new instance of the cell appearance with the specified colors and effect.
public CellAppearance ( Microsoft.Xna.Framework.Color foreground, Microsoft.Xna.Framework.Color background ) : System.Runtime.Serialization
foreground Microsoft.Xna.Framework.Color The foreground color of the cell appearance.
background Microsoft.Xna.Framework.Color The background color of the cell appearance.
return System.Runtime.Serialization

CellAppearance() public method

Creates a new instance of the cell appearance with the specified colors and effect.
public CellAppearance ( Microsoft.Xna.Framework.Color foreground, Microsoft.Xna.Framework.Color background, int glyphIndex ) : System.Runtime.Serialization
foreground Microsoft.Xna.Framework.Color The foreground color of the cell appearance.
background Microsoft.Xna.Framework.Color The background color of the cell appearance.
glyphIndex int The glyph of the cell appearance.
return System.Runtime.Serialization

CellAppearance() public method

Creates a new instance of the cell appearance with the specified colors and effect.
public CellAppearance ( Microsoft.Xna.Framework.Color foreground, Microsoft.Xna.Framework.Color background, int glyphIndex, SpriteEffects spriteEffect ) : System.Runtime.Serialization
foreground Microsoft.Xna.Framework.Color The foreground color of the cell appearance.
background Microsoft.Xna.Framework.Color The background color of the cell appearance.
glyphIndex int The glyph of the cell appearance.
spriteEffect SpriteEffects The sprite mirror effect of the cell appearance.
return System.Runtime.Serialization

Clone() public method

Creates a new copy of this cell appearance.
public Clone ( ) : CellAppearance
return CellAppearance

CopyAppearanceTo() public method

Applies this appearance instance values to the destination appearance.
public CopyAppearanceTo ( ICellAppearance destination ) : void
destination ICellAppearance The target of the appearance copy.
return void

SwapColors() public method

Swaps the foreground and background colors.
public SwapColors ( ) : void
return void