C# Class SadConsole.CellAppearance

Inheritance: ICellAppearance
Afficher le fichier Open project: Thraka/SadConsole Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

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

CellAppearance() public méthode

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.
Résultat System.Runtime.Serialization

CellAppearance() public méthode

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.
Résultat System.Runtime.Serialization

CellAppearance() public méthode

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.
Résultat System.Runtime.Serialization

Clone() public méthode

Creates a new copy of this cell appearance.
public Clone ( ) : CellAppearance
Résultat CellAppearance

CopyAppearanceTo() public méthode

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

SwapColors() public méthode

Swaps the foreground and background colors.
public SwapColors ( ) : void
Résultat void