Nano-X API Reference Manual
Nano-X API Reference Manual
Table of Contents
1. libnano-X....................................................................................................................4
general......................................................................................................................4
window.....................................................................................................................7
graphics..................................................................................................................17
events .....................................................................................................................41
fonts........................................................................................................................44
pointer....................................................................................................................47
colours....................................................................................................................50
regions....................................................................................................................53
selections................................................................................................................61
misc........................................................................................................................65
3
Chapter 1. libnano-X
general (3)
Name
general —
Synopsis
void GrFlush (void);
int GrOpen (void);
void GrClose (void);
void GrMain-
Loop (GR_FNCALLBACKEVENT fncb);
void GrGetScreen-
Info (GR_SCREEN_INFO *sip);
GR_FNCALLBACKEVENT GrSetErrorHan-
dler (GR_FNCALLBACKEVENT fncb);
void GrDefaultErrorHandler (GR_EVENT *ep);
Description
4
Chapter 1. libnano-X
Details
GrFlush ()
void GrFlush (void);
Flush the message buffer of any messages it may contain.
GrOpen ()
int GrOpen (void);
Open a connection to the graphics server.
Returns : the fd of the connection to the server or -1 on failure
GrClose ()
void GrClose (void);
Close the graphics device, flushing any waiting messages.
GrMainLoop ()
void GrMain-
Loop (GR_FNCALLBACKEVENT fncb);
A convenience function which calls the specified callback function whenever an event
arrives or there is data to be read on a file descriptor previously specified by
GrRegisterInput(). Currently never returns.
5
评论0