[tvision Index] [tvision Hierarchy] [Headers]
A video buffer More...
#include <drawbuf.h>
This class implements a video buffer.
Every view uses at least one istance of this class in its draw() method. The view draws itself using a TDrawBuffer object. Just before returning from draw(), a call to one of the writeXXXX methods will write the video buffer on the screen. Each member of the buffer is an attribute & character pair. The attribute is a byte which stores informations about foreground and background colors.
Note: pay attention to the size of the buffer! It usually stores only a line of the picture. Its default size is maxViewWidth = 132 pairs.
See Also: TView, TView, TView, TView, TView
[public]
Fills the buffer or part of the buffer with an uniform pattern.
`indent' is the character position within the buffer where the data is to go. `c' is the character to be put into the buffer. If `c' is 0 the character is not written and the old character is preserved. `attr' is the attribute to be put into the buffer. If `attr' is 0 the attribute is not written and the old attribute is preserved. `count' is the number of character/attribute pairs to put into the buffer.
[public]
Writes a string in the buffer.
`indent' is the character position within the buffer where the data is to go. `str' is a pointer to a 0-terminated string of characters to be moved into the buffer. `attr' is the text attribute to be put into the buffer with each character in the string. If `attr' is 0 the attribute is not written and the old attribute is preserved.
[public]
Writes a string in the buffer.
`indent' is the character position within the buffer where the data is to go. `str' is a pointer to a 0-terminated string of characters to be moved into the buffer. `attrs' is a pair of text attributes to be put into the buffer with each character in the string. Initially the low byte is used, and a `~' in the string toggles between the low byte and the high byte.
[public]
Writes a text buffer in this video buffer.
`indent' is the character position within the buffer where the data is to go. `source' is a pointer to an array of characters. `attr' is the attribute to be used for all characters (0 to retain the old attribute). `count' is the number of characters to move.
[public]
Writes an attribute.
`ident' is the character position within the buffer where the attribute is to go. `attr' is the attribute to write.
[public]
Writes a character.
`ident' is the character position within the buffer where the character is to go. `c' is the character to write.
Documentation generated by sergio@athena.milk.it on Wed Feb 10 22:11:47 CET 1999 | Kdoc |