C# Class StdPaint.SevenSegmentDisplay

Provides rendering capabilities for a 4x7 seven-segment display.
显示文件 Open project: TheBerkin/StdPaint Class Usage Examples

Public Properties

Property Type Description
BackBrush BufferBrush
ForeBrush BufferBrush
Location Point

Public Methods

Method 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

Method Description
Update ( ) : void

Method Details

Draw() public method

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.
return void

SevenSegmentDisplay() public method

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.
return System

Property Details

BackBrush public_oe property

The background brush of the display.
public BufferBrush,StdPaint BackBrush
return BufferBrush

ForeBrush public_oe property

The foreground brush of the display.
public BufferBrush ForeBrush
return BufferBrush

Location public_oe property

The location of the display.
public Point Location
return Point