ANSIConsoleDrawBuf

drawing buffer - image container which allows to perform some drawing operations

Constructors

this
this(Console console)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

afterDrawing
void afterDrawing()

reserved for hardware-accelerated drawing - ends drawing batch

beforeDrawing
void beforeDrawing()

reserved for hardware-accelerated drawing - begins drawing batch

clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
drawChar
void drawChar(int x, int y, dchar ch, uint color, uint bgcolor)
Undocumented in source. Be warned that the author may not have intended to support it.
drawFragment
void drawFragment(int x, int y, DrawBuf src, Rect srcrect)

draw source buffer rectangle contents to destination buffer

drawGlyph
void drawGlyph(int x, int y, Glyph* glyph, uint color)

draw 8bit alpha image - usually font glyph using specified color (clipping is applied)

drawPixel
void drawPixel(int x, int y, uint color)

draw pixel at (x, y) with specified color

drawRescaled
void drawRescaled(Rect dstrect, DrawBuf src, Rect srcrect)

draw source buffer rectangle contents to destination buffer rectangle applying rescaling

fill
void fill(uint color)

fill the whole buffer with solid color (no clipping applied)

fillGradientRect
void fillGradientRect(Rect rc, uint color1, uint color2, uint color3, uint color4)
Undocumented in source. Be warned that the author may not have intended to support it.
fillRect
void fillRect(Rect rc, uint color)

fill rectangle with solid color (clipping is applied)

fillRectPattern
void fillRectPattern(Rect rc, uint color, int pattern)

fill rectangle with solid color and pattern (clipping is applied) 0=solid fill, 1 = dotted

resize
void resize(int width, int height)

resize buffer

Properties

bpp
int bpp [@property getter]

returns buffer bits per pixel

console
Console console [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
height
int height [@property getter]

returns current height

width
int width [@property getter]

returns current width

Static functions

toConsoleColor
ubyte toConsoleColor(uint color, bool forBackground)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

CONSOLE_COLORS_RGB
RGB[16] CONSOLE_COLORS_RGB;
Undocumented in source.
CONSOLE_COLORS_RGB
RGB[16] CONSOLE_COLORS_RGB;
Undocumented in source.
SPACE_STRING
dstring SPACE_STRING;
Undocumented in source.

Variables

_console
Console _console;
Undocumented in source.

Inherited Members

From ConsoleDrawBuf

drawChar
void drawChar(int x, int y, dchar ch, uint color, uint bgcolor)
Undocumented in source.

Meta