Intermec ck1 Reference Guide

Page of 390
Chapter 5 — Nano-X APIs 
262 
CK1 SDK Programmer’s Reference Manual 
GrSetGCMode () (continued) 
 
Parameters:  gc   
Identification of the graphics context to set the drawing mode  
mode   New drawing mode  
GrSetGCFont () 
 
Purpose:  Set the font to be used for text drawing in the specified graphics context to 
the specified font identification. 
 
Syntax: 
void        GrSetGCFont                     (GR_GC_ID gc,
 
                                        GR_FONT_ID font); 
 
Parameters:  gc   
Identification of the graphics context to set the font  
font   Identification of the font  
GrGetGCTextSize () 
 
Purpose:  Calculate the dimensions of the specified text string using the current font 
and flags in the specified graphics context. The count argument can be -1 
if the string is null terminated. 
 
Syntax: 
void        GrGetGCTextSize                 (GR_GC_ID gc,
 
                                      void *str
                                      int count
                                      int flags
                                      GR_SIZE *retwidth
                                      GR_SIZE *retheight
                                      GR_SIZE *retbase); 
 
Parameters:  gc   
Graphics context  
str  
Pointer to a text string  
count  
Length of the string  
flags  
Text rendering flags (GR_TF*)  
retwidth   Pointer to the variable the width will be returned in  
retheight   Pointer to the variable the height will be returned in  
retbase  
Pointer to the variable the baseline height will be returned in  
GrReadArea () 
 
Purpose:  Read the pixel data of the specified size from the specified position on the 
specified drawable into the specified pixel array. If the drawable is a 
window, the data returned is the pixel values from the relevant position on 
the screen regardless of whether the window is obscured by other windows. 
If the window is unmapped or partially or fully outside a window 
boundary, black pixel values are returned.