TScreen Class Reference

[tvision Index] [tvision Hierarchy] [Headers]


The interface to the system More...

#include <system.h>

Inherits: TDisplay

Public Members


Detailed Description

A low-level class used to interface to the system.

Since this class was written by me, it is not a standard class and you should not use it. Otherwise you may end with a non-portable program.


TScreen() [public]

Constructor.

Reads enviroment variables, acquires screen size, opens mouse and screen devices, catches some useful signals and starts an interval timer.

~TScreen() [public]

Destructor.

Releases the resources allocated by the constructor.

void getEvent(TEvent &event) [public static]

Returns the first available event.

void makeBeep() [public static]

Emits a beep.

void putEvent(TEvent &event) [public static]

Puts an event in the event queue.

Do not use it, use TProgram::putEvent() if you need.

See Also:
TProgram::putEvent

void resume() [public static]

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.

See Also:
TApplication::resume

void suspend() [public static]

Stops the execution of the application.

Suspends execution of the process. Called by TApplication::suspend(). You should call the latter method.

See Also:
TApplication::suspend

void drawCursor(int show) [public static]

Shows or hides the cursor.

Flag `show' specifies the operation to perform.

void drawMouse(int show) [public static]

Shows or hides the mouse pointer.

Flag `show' specifies the operation to perform.

void moveCursor(int x, int y) [public static]

Moves the cursor to another place.

Parameters `x' and `y' are 0-based.

void writeRow(int dst, ushort *src, int len) [public static]

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.

static ushort screenMode[public]

Holds the current screen mode.

It is initialized by the constructor if this class. It is read by TProgram::initScreen().

See Also:
TProgram::initScreen

static uchar screenWidth[public]

Holds the current screen width.

It is initialized by the constructor of this class.

static uchar screenHeight[public]

Holds the current screen height.

It is initialized by the constructor of this class.

static ushort *screenBuffer[public]

Holds the current screen buffer address.

It is initialized by the constructor of this class.


Documentation generated by sergio@athena.milk.it on Wed Feb 10 22:11:47 CET 1999
Kdoc