Intermec ck1 Reference Guide
Chapter 5 — Nano-X APIs
CK1 SDK Programmer’s Reference Manual
251
Parameters: wid
Identification of the window to set the border color
color
Color for the border
GrSetBackgroundPixmap ()
Purpose: Set the background of the specified window to the specified pixmap. The
flags that specify how to draw the pixmap (in the top left of the window,
in the center of the window, tiled, etc.) are those flags that start with
GR_BACKGROUND_ in Nano-X.h. If the pixmap value is 0, the server
disables the background pixmap and returns to using a solid color fill.
in the center of the window, tiled, etc.) are those flags that start with
GR_BACKGROUND_ in Nano-X.h. If the pixmap value is 0, the server
disables the background pixmap and returns to using a solid color fill.
Syntax:
void GrSetBackgroundPixmap (GR_WINDOW_ID wid,
GR_WINDOW_ID pixmap,
int flags);
int flags);
Parameters: wid
Identification of the window to set the background
pixmap
Identification of the pixmap to use as the background
flags
Flags specifying how to draw the pixmap onto the window
GrClearWindow ()
Purpose: Clear the specified window by setting it to its background color. If the
exposeflag parameter is not zero, an exposure event is generated for the
window after it has been cleared.
window after it has been cleared.
Syntax:
void GrClearWindow (GR_WINDOW_ID wid,
GR_BOOL exposeflag);
Parameters: wid
Identification of the window to clear
exposeflag
Flag indicating whether to generate an exposure event
GrCloseWindow ()
Purpose: Send a CLOSE_REQ event to the specified window if the client has
selected to receive CLOSE_REQ events on this window. Used to request
an application to shut down but not force it to do so immediately, so the
application can ask whether to save changed files before shutting down
cleanly.
an application to shut down but not force it to do so immediately, so the
application can ask whether to save changed files before shutting down
cleanly.
Syntax:
void GrCloseWindow (GR_WINDOW_ID wid);
Parameter: wid
Identification of the window to send the CLOSE_REQ event to