Intermec ck1 Reference Guide
Chapter 5 — Nano-X APIs
CK1 SDK Programmer’s Reference Manual
245
GrGetScreenInfo ()
Purpose: Fill in the specified GR_SCREEN_INFO structure.
Syntax:
void GrGetScreenInfo (GR_SCREEN_INFO *sip);
Parameter: sip
Pointer to a GR_SCREEN_INFO structure
GrSetErrorHandler ()
Purpose: Set 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.
argument, errors will be returned as regular events instead.
Syntax:
GR_FNCALLBACKEVENT GrSetErrorHandler
(GR_FNCALLBACKEVENT fncb);
Parameter: fncb
Function to call to handle error events
Return: Address of the previous error handler
GrDefaultErrorHandler ()
Purpose: Generate a human readable error message on stderr describing what error
occurred and what function it occurred in, then exits.
The default error handler which is called when the server reports an error
event and the client has not set up a handler of its own.
event and the client has not set up a handler of its own.
Syntax:
void GrDefaultErrorHandler (GR_EVENT *ep);
Parameter: ep Error event structure
Window API
The name of this API is:
window —
Synopsis
GR_WINDOW_ID GrNewWindow (GR_WINDOW_ID parent,
GR_COORD x,
GR_COORD y,
GR_SIZE width,
GR_SIZE height,
GR_SIZE bordersize,
GR_COLOR background,
GR_COLOR bordercolor);
GR_WINDOW_ID GrNewPixmap (GR_SIZE width,
GR_SIZE height,
void *addr);
GR_WINDOW_ID GrNewInputWindow (GR_WINDOW_ID parent,
GR_COORD x,
GR_COORD y,
GR_SIZE width,
GR_SIZE height,
GR_SIZE bordersize,
GR_COLOR background,
GR_COLOR bordercolor);
GR_WINDOW_ID GrNewPixmap (GR_SIZE width,
GR_SIZE height,
void *addr);
GR_WINDOW_ID GrNewInputWindow (GR_WINDOW_ID parent,