Intermec ck1 Guia De Referência
Chapter 5 — Nano-X APIs
244
CK1 SDK Programmer’s Reference Manual
General API
The name of this API is:
general —
Synopsis
void GrFlush (void);
int GrOpen (void);
void GrClose (void);
void GrMainLoop (GR_FNCALLBACKEVENT fncb);
void GrGetScreenInfo (GR_SCREEN_INFO *sip);
GR_FNCALLBACKEVENT GrSetErrorHandler (GR_FNCALLBACKEVENT fncb);
void GrDefaultErrorHandler (GR_EVENT *ep);
int GrOpen (void);
void GrClose (void);
void GrMainLoop (GR_FNCALLBACKEVENT fncb);
void GrGetScreenInfo (GR_SCREEN_INFO *sip);
GR_FNCALLBACKEVENT GrSetErrorHandler (GR_FNCALLBACKEVENT fncb);
void GrDefaultErrorHandler (GR_EVENT *ep);
GrFlush ()
Purpose: Flush the message buffer of any messages it may contain.
Syntax:
void GrFlush (void);
GrOpen ()
Purpose: Open a connection to the graphics server.
Syntax:
int GrOpen (void);
Return: The fd of the connection to the server
If succeeded
-1 If
failed
GrClose ()
Purpose: Close the graphics device, flushing any waiting messages.
Syntax:
void GrClose (void);
GrMainLoop ()
Purpose: Call 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.
GrRegisterInput(). Currently never returns.
Syntax:
void GrMainLoop (GR_FNCALLBACKEVENT fncb);
Parameter: fncb