Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Related Pages  

Nano-X basic API.
[Nano-X public API]

Functions to initialise and close Nano-X. More...

Functions

int GrOpen (void)
 Open a connection to the graphics server.

void GrClose (void)
 Close the graphics device.

void GrFlush (void)
 Flush the message buffer of any messages it may contain.

void GrDefaultErrorHandler (GR_EVENT *ep)
 The default error handler.

GR_FNCALLBACKEVENT GrSetErrorHandler (GR_FNCALLBACKEVENT fncb)
 Sets an error handling routine that will be called on any errors from the server (assuming the client has asked to receive them).

void GrGetScreenInfo (GR_SCREEN_INFO *sip)
 Fills in the specified GR_SCREEN_INFO structure.


Detailed Description

Functions to initialise and close Nano-X.


Function Documentation

void GrClose void   ) 
 

Close the graphics device.

Flushes any waiting messages.

void GrDefaultErrorHandler GR_EVENT ep  ) 
 

The default error handler.

This is called when the server reports an error event and the client hasn't set up a handler of it's own.

Generates a human readable error message describing what error occurred and what function it occured in, then exits.

Parameters:
ep The error event structure.

void GrGetScreenInfo GR_SCREEN_INFO *  sip  ) 
 

Fills in the specified GR_SCREEN_INFO structure.

Parameters:
sip Pointer to a GR_SCREEN_INFO structure

int GrOpen void   ) 
 

Open a connection to the graphics server.

Returns:
the fd of the connection to the server or -1 on failure

GR_FNCALLBACKEVENT GrSetErrorHandler GR_FNCALLBACKEVENT  fncb  ) 
 

Sets an error handling routine that will be called on any errors from the server (assuming the client has asked to receive them).

If zero is used as the argument, errors will be returned as regular events instead.

Parameters:
fncb the function to call to handle error events
Returns:
the address of the previous error handler


Generated on Sun May 18 21:03:07 2003 for Microwindows Nano-X API by doxygen1.3