💻 TermColor User Manual
Static Public Member Functions | List of all members
TermColor.Drawing.ITerminalBufferEx Class Reference

Static Public Member Functions

static void DrawHorizontalLine< TColor > (this ITerminalBuffer buffer, int startX, int endX, int y, char ch, in TColor foreground, in TColor background)
 
static void DrawVerticalLine< TColor > (this ITerminalBuffer buffer, int x, int startY, int endY, char ch, in TColor foreground, in TColor background)
 
static void DrawRectangle< TColor > (this ITerminalBuffer buffer, int startX, int startY, int endX, int endY, char ch, in TColor foreground, in TColor background)
 
static void FillRectangle< TColor > (this ITerminalBuffer buffer, int startX, int startY, int endX, int endY, char ch, in TColor foreground, in TColor background)
 
static void DrawLine< TColor > (this ITerminalBuffer buffer, int startX, int startY, int endX, int endY, char ch, TColor foreground, in TColor background)
 

Member Function Documentation

◆ DrawHorizontalLine< TColor >()

static void TermColor.Drawing.ITerminalBufferEx.DrawHorizontalLine< TColor > ( this ITerminalBuffer  buffer,
int  startX,
int  endX,
int  y,
char  ch,
in TColor  foreground,
in TColor  background 
)
inlinestatic

Fill a segment of a row with characters of the same color.

Template Parameters
TColorType of the used color.
Parameters
buffer
startXStarting column number.
endXEnd column number.
yRow number.
chThe character to use.
foregroundForeground color.
backgroundBackground color.
Type Constraints
TColor :IColor 

◆ DrawLine< TColor >()

static void TermColor.Drawing.ITerminalBufferEx.DrawLine< TColor > ( this ITerminalBuffer  buffer,
int  startX,
int  startY,
int  endX,
int  endY,
char  ch,
TColor  foreground,
in TColor  background 
)
inlinestatic

Draw a line from (startX, startY) to (endX, endY).

Template Parameters
TColorType of the used color.
Parameters
buffer
startYFirst row number.
endYLast row number.
startXFirst column number.
endXLast column number.
chThe character to use.
foregroundForeground color of the line.
backgroundBackground color of the line.
Type Constraints
TColor :IColor 

◆ DrawRectangle< TColor >()

static void TermColor.Drawing.ITerminalBufferEx.DrawRectangle< TColor > ( this ITerminalBuffer  buffer,
int  startX,
int  startY,
int  endX,
int  endY,
char  ch,
in TColor  foreground,
in TColor  background 
)
inlinestatic

Draw an outline of a rectangle with characters of given color.

Template Parameters
TColorType of the used color.
Parameters
buffer
startYFirst row number.
endYLast row number.
startXFirst column number.
endXLast column number.
chThe character to use.
foregroundForeground color.
backgroundBackground color.
Type Constraints
TColor :IColor 

◆ DrawVerticalLine< TColor >()

static void TermColor.Drawing.ITerminalBufferEx.DrawVerticalLine< TColor > ( this ITerminalBuffer  buffer,
int  x,
int  startY,
int  endY,
char  ch,
in TColor  foreground,
in TColor  background 
)
inlinestatic

Fill a segment of a column with characters of the same color.

Template Parameters
TColorType of the used color.
Parameters
buffer
startYFirst row number.
endYLast row number.
yRow number.
chThe character to use.
foregroundForeground color.
backgroundBackground color.
Type Constraints
TColor :IColor 

◆ FillRectangle< TColor >()

static void TermColor.Drawing.ITerminalBufferEx.FillRectangle< TColor > ( this ITerminalBuffer  buffer,
int  startX,
int  startY,
int  endX,
int  endY,
char  ch,
in TColor  foreground,
in TColor  background 
)
inlinestatic

Fill a rectangle with a characters of given color.

Template Parameters
TColorType of the used color.
Parameters
buffer
startYFirst row number.
endYLast row number.
startXFirst column number.
endXLast column number.
chThe character to use.
foregroundForeground color.
backgroundBackground color.
Type Constraints
TColor :IColor 

The documentation for this class was generated from the following file: