class CharArea

Holds a two-dimensional block of character and color information.

This can be used to copy blocks of characters between console buffers.

Constructors

CharArea (const int, const int)Constructs an area of the given width and height.
CharArea (const CharArea)Constructs a copy from the source CharArea.

Methods

int GetCharAt (const Location)Returns the character from the specified location.
ReadArea (const Console, const Location)Fills this CharArea with character and color information from the specified console buffer.
SetCharAt (const Location, const int)Sets the character at the specified location.
WriteArea (const Console, const Location)Copies this CharArea's contents to the specified console buffer.

Properties

SmallSize Size ()Returns the size of this CharArea in characters.

Reference

method CharArea (const int width, const int height)

Constructs an area of the given width and height.


method CharArea (const CharArea src)

Constructs a copy from the source CharArea.


method int GetCharAt (const Location pos)

Returns the character from the specified location.

If the location is out of the area's bounds, zero is returned.


method ReadArea (const Console con, const Location pos)

Fills this CharArea with character and color information from the specified console buffer.

Parameter 'pos' specifies the location in the console buffer to copy from. The CharArea's size determines the amount of columns and rows that are copied (at most).


method SetCharAt (const Location pos, const int chr)

Sets the character at the specified location.

If the location is out of the area's bounds, the area remains unchanged.


method WriteArea (const Console con, const Location pos)

Copies this CharArea's contents to the specified console buffer.

Parameter 'pos' specifies the location in the console buffer to copy to. The CharArea's size determines the amount of columns and rows that are written (at most).


accessor SmallSize Size ()

Returns the size of this CharArea in characters.