C# 클래스 StdPaint.SevenSegmentDisplay

Provides rendering capabilities for a 4x7 seven-segment display.
파일 보기 프로젝트 열기: TheBerkin/StdPaint 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
BackBrush BufferBrush
ForeBrush BufferBrush
Location Point

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
Update ( ) : void

메소드 상세

Draw() 공개 메소드

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.
리턴 void

SevenSegmentDisplay() 공개 메소드

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.
리턴 System

프로퍼티 상세

BackBrush 공개적으로 프로퍼티

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

ForeBrush 공개적으로 프로퍼티

The foreground brush of the display.
public BufferBrush ForeBrush
리턴 BufferBrush

Location 공개적으로 프로퍼티

The location of the display.
public Point Location
리턴 Point