In file libs/cssys/os2/csos2.h:

class SysSystemDriver : public csSystemDriver

This is the System driver for OS/2

Inheritance:


Public Classes

class XOS2SystemDriver: public IOS2SystemDriver
Implementation of IOS2SystemDriver
STDMETHOD (KeyboardEvent)(int ScanCode, bool Down)
Put a keyboard event into event queue
STDMETHOD (MouseEvent)(int Button, int Down, int x, int y, int ShiftFlags)
Put a mouse event into event queue
STDMETHOD (FocusEvent)(bool Enable)
Put a focus change event into event queue
STDMETHOD (TerminateEvent)()
Handle application termination event

Public Methods

virtual void Help()
This is a function that prints the commandline help text
virtual void Loop()
System loop
void SetSystemDefaults()
Check if configuration files requests 16 bits per pixel
virtual void Sleep(int SleepTime)
The system is idle: we can sleep for a while
SysSystemDriver()
Initialize system-dependent data

Private Fields

bool HardwareCursor
Use system cursor if true; otherwise use builtin CSWS software cursors
int WindowWidth
Window width and height
int WindowX
Window position in percents

Inherited from csSystemDriver:

Public Fields

IConfig* cfg_engine
csColOption* com_options
csConsole* Console
static int debug_level
static bool DemoReady
int Depth
csEventQueue* EventQueue
static bool ExitLoop
int FrameHeight
int FrameWidth
bool FullScreen
bool IsFocused
csKeyboardDriver* Keyboard
csMouseDriver* Mouse
IGraphics2D* piG2D
IGraphics3D* piG3D
IGraphicsInfo* piGI
INetworkDriver* piNetDrv
INetworkManager* piNetMan
ISoundRender* piSound
static bool Shutdown

Public Methods

virtual void Close()
static void debugprintf(bool flush, const char* str, ...)
static FILE* fopen(const char* filename, const char* mode)
virtual bool InitGraphics()
virtual bool Initialize(int argc, char *argv[], IConfig* cfg_engine)
virtual bool InitKeyboard()
virtual bool InitMouse()
virtual bool InitNetwork()
virtual bool InitSound()
virtual void NextFrame(long elapsed_time, long current_time)
virtual bool Open(char *Title)
bool ParseCmdLine(int argc, char* argv[])
bool ParseCmdLineDriver(int argc, char* argv[])
static void Printf(int mode, const char* str, ...)
static void printf_init()
static long Time()

Protected Methods

virtual void Alert(const char* msg)
csColOption* CollectOptions(IConfig* config, csColOption* already_collected)
virtual void DemoWrite(const char* msg)
void do_focus(int enable)
virtual bool ParseArg(int argc, char* argv[], int& i)
virtual bool ParseArgDriver(int argc, char* argv[], int& i)
void SetMode(const char* mode)
virtual void Warn(const char* msg)

Documentation

This is the System driver for OS/2. It implements all required functionality for standard csSystemDriver class.
int WindowX
Window position in percents

int WindowWidth
Window width and height

bool HardwareCursor
Use system cursor if true; otherwise use builtin CSWS software cursors

SysSystemDriver()
Initialize system-dependent data

void SetSystemDefaults()
Check if configuration files requests 16 bits per pixel

virtual void Help()
This is a function that prints the commandline help text. If system has system-dependent switches, it should override this method and type its own text (possibly invoking csSystemDriver::Help() first).

virtual void Loop()
System loop. This should be called last since it returns only on program exit

virtual void Sleep(int SleepTime)
The system is idle: we can sleep for a while

class XOS2SystemDriver: public IOS2SystemDriver
Implementation of IOS2SystemDriver

STDMETHOD (KeyboardEvent)(int ScanCode, bool Down)
Put a keyboard event into event queue

STDMETHOD (MouseEvent)(int Button, int Down, int x, int y, int ShiftFlags)
Put a mouse event into event queue

STDMETHOD (FocusEvent)(bool Enable)
Put a focus change event into event queue

STDMETHOD (TerminateEvent)()
Handle application termination event


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de