Intermec ck1 Reference Guide

Page of 390
Chapter 5 — Nano-X APIs 
286 
CK1 SDK Programmer’s Reference Manual 
GrBell () 
 
Purpose:  Ask the server to ring the console bell on behalf of the client (intended for 
terminal applications to be able to ring the bell on the server even if they 
are running remotely). 
 
Syntax: 
void        GrBell                          (void);
 
GrSetScreenSaverTimeout () 
 
Purpose:  Set the number of seconds of inactivity before the screen saver is activated 
at the root window identification. A value of 0 activates the screen saver 
immediately, and a value of -1 disables the screen saver function. 
 
Syntax: 
void     GrSetScreenSaverTimeout    (GR_TIMEOUT timeout);
 
 
Parameter:  timeout  Number of seconds of inactivity before the screen saver activates 
GrInjectNanowmEvent () 
 
Purpose:  Send a nanowm event to the specified window identification. This 
function is used to talk with the window manager via Nano-X server. 
 
Syntax: 
void        GrInjectNanowmEvent        (GR_WINDOW_ID wid,
 
                                             int type
                                             int status); 
 
Parameters:  wid 
Identification of the window to send the event to or 0  
type 
Type of window manager event 
status  Status of the type  
GrInjectKeypadEvent () 
 
Purpose:  Send a keyboard event to the window identification. You can use this 
function for devices that have keypads with fewer than 32 keys. 
 
Syntax: 
void        GrInjectKeypadEvent        (GR_WINDOW_ID wid,
 
                                          int padbuttons
                                          int changes); 
 
Parameters:  wid 
Identification of the window to send the event to, or 0  
padbuttons 
Buttons of changed pressed buttons 
changes 
Buttons that changed 
GrSelectPadKeys() 
 
Purpose:  Select the pad keys to accept the keyboard event. Keys not selected are sent 
to the parent window until ROOT_WINDOW_ID.