C# Class StdPaint.SevenSegmentDisplay

Provides rendering capabilities for a 4x7 seven-segment display.
Afficher le fichier Open project: TheBerkin/StdPaint Class Usage Examples

Méthodes publiques

Свойство Type Description
BackBrush BufferBrush
ForeBrush BufferBrush
Location Point

Méthodes publiques

Méthode Description
Draw ( ConsoleBuffer buffer, Alignment alignment = Alignment.Left ) : void

Draws the display to the specified buffer.

SevenSegmentDisplay ( Point location, int digits, int value ) : System

Initializes a new instance of the StdPaint.DigitDisplay class with the specified location and value.

Private Methods

Méthode Description
Update ( ) : void

Method Details

Draw() public méthode

Draws the display to the specified buffer.
public Draw ( ConsoleBuffer buffer, Alignment alignment = Alignment.Left ) : void
buffer ConsoleBuffer The buffer to draw to.
alignment Alignment The alignment of the display to the draw position.
Résultat void

SevenSegmentDisplay() public méthode

Initializes a new instance of the StdPaint.DigitDisplay class with the specified location and value.
public SevenSegmentDisplay ( Point location, int digits, int value ) : System
location Point The location of the display.
digits int The minimum number of digits to display.
value int The value of the display.
Résultat System

Property Details

BackBrush public_oe property

The background brush of the display.
public BufferBrush,StdPaint BackBrush
Résultat BufferBrush

ForeBrush public_oe property

The foreground brush of the display.
public BufferBrush ForeBrush
Résultat BufferBrush

Location public_oe property

The location of the display.
public Point Location
Résultat Point