#include <system.h>
Inheritance diagram for TScreen::
Public Methods | |
TScreen () | |
~TScreen () | |
Static Public Methods | |
void | getEvent (TEvent &event) |
void | makeBeep () |
void | putEvent (TEvent &event) |
void | resume () |
void | suspend () |
void | drawCursor (int show) |
void | drawMouse (int show) |
void | moveCursor (int x, int y) |
void | writeRow (int dst, ushort *src, int len) |
Static Public Attributes | |
ushort | screenMode |
uchar | screenWidth |
uchar | screenHeight |
ushort* | screenBuffer |
fd_set | fdSetRead |
fd_set | fdSetWrite |
fd_set | fdSetExcept |
fd_set | fdActualRead |
fd_set | fdActualWrite |
fd_set | fdActualExcept |
TScreen provides low-level video attributes and functions. This class is used internally by TVision. You do not need to use it explicitly for normal applications.
Since this class was rewritten in the porting process, it is not a standard class and you should not use it. Otherwise you may end with a non-portable program.
Definition at line 489 of file system.h.
|
Constructor. Reads enviroment variables, acquires screen size, opens mouse and screen devices, catches some useful signals and starts an interval timer. |
|
Destructor. Releases the resources allocated by the constructor. |
|
Shows or hides the cursor. Flag `show' specifies the operation to perform. |
|
Shows or hides the mouse pointer. Flag `show' specifies the operation to perform. |
|
Returns the first available event. Reimplemented in TApplication. |
|
Emits a beep. |
|
Moves the cursor to another place. Parameters `x' and `y' are 0-based. |
|
Puts an event in the event queue. Do not use it, use TProgram::putEvent() if you need. |
|
Recovers the execution of the application. Resumes the execution of the process after the user stopped it. Called by TApplication::resume(). You should call the latter method. Reimplemented in TApplication. |
|
Stops the execution of the application. Suspends execution of the process. Called by TApplication::suspend(). You should call the latter method. Reimplemented in TApplication. |
|
Writes a row of character & attribute pairs on the screen. `dst' is the destination position, `src' is a pointer to the source buffer and `len' is the size of the buffer expressed as the number of pairs. |
|
File descriptor set to indicate I/O exceptions. This set is returned by select() within getEvent(). It can be tested to handle exceptions on files mentioned in fdSetExcept. |
|
File descriptor set to indicate read() availability. This set is returned by select() within getEvent(). It can be tested to handle operations on files mentioned in fdSetRead. |
|
File descriptor set to indicate write() completion. This set is returned by select() within getEvent(). It can be tested to handle operations on files mentioned in fdSetWrite. |
|
File descriptor set to watch for I/O exceptions. This set is used in select() within getEvent(). It is empty by default and can be used freely. |
|
File descriptor set to watch for read operations. This set is used to watch for incoming mouse and keyboard data. Do not FD_ZERO() it in your program. However, FD_SET() and FD_CLR() are OK. |
|
File descriptor set to watch for write operations. This set is used in select() within getEvent(). It is empty by default and can be used freely. |
|
Holds the current screen buffer address. It is initialized by the constructor of this class. |
|
Holds the current screen height. It is initialized by the constructor of this class. |
|
Holds the current screen mode. It is initialized by the constructor if this class. It is read by TProgram::initScreen().
|
|
Holds the current screen width. It is initialized by the constructor of this class. |