#include <textview.h>
Inheritance diagram for TTerminal::
Public Methods | |
TTerminal (const TRect &bounds, TScrollBar *aHScrollBar, TScrollBar *aVScrollBar, ushort aBufSize) | |
~TTerminal () | |
virtual int | do_sputn (const char *s, int count) |
void | bufInc (ushort &val) |
Boolean | canInsert (ushort amount) |
short | calcWidth () |
virtual void | draw () |
ushort | nextLine (ushort pos) |
ushort | prevLines (ushort pos, ushort lines) |
Boolean | queEmpty () |
Protected Methods | |
void | bufDec (ushort &val) |
Protected Attributes | |
ushort | bufSize |
char* | buffer |
ushort | queFront |
ushort | queBack |
ushort | curLineWidth |
Definition at line 70 of file textview.h.
|
Creates a TTerminal object with the given bounds, horizontal and vertical scroll bars, and buffer by calling TTextDevice constructor with the bounds and scroller arguments, then creating a buffer (pointed to by buffer) with bufSize equal to `aBufSize'.
|
|
Deallocates the buffer and calls ~TTextDevice(). |
|
Used to manipulate queue offsets with wrap around: if `val' is zero, `val' is set to (bufSize - 1); otherwise, `val' is decremented. |
|
Used to manipulate a queue offsets with wrap around: increments `val' by 1, then if `val' >= bufSize, `val' is set to zero. |
|
Undocumented. |
|
Returns True if the number of bytes given in amount can be inserted into the terminal buffer without having to discard the top line. Otherwise, returns False. |
|
Overrides the corresponding function in class streambuf. This is an internal function that is called whenever a character string is to be inserted into the internal buffer. Reimplemented from TTextDevice. |
|
Called whenever the TTerminal scroller needs to be redrawn; for example, when the scroll bars are clicked on, the view is unhidden or resized, the delta values are changed, or when added text forces a scroll. Reimplemented from TView. |
|
Returns the buffer offset of the start of the line that follows the position given by `pos'. |
|
Returns the offset of the start of the line that is `lines' lines previous to the position given by `pos'. |
|
|
The size of the terminal's buffer in bytes. Definition at line 140 of file textview.h. |
|
Pointer to the first byte of the terminal's buffer. Definition at line 144 of file textview.h. |
|
Undocumented. Definition at line 162 of file textview.h. |
|
Offset (in bytes) of the last byte stored in the terminal buffer. Definition at line 152 of file textview.h. |
|
Offset (in bytes) of the first byte stored in the terminal buffer. Definition at line 148 of file textview.h. |