Intermec ck1 참조 가이드

다운로드
페이지 390
Chapter 4 — SDK Components 
CK1 SDK Programmer’s Reference Manual 
139 
 
Parameters:  fontname 
String containing the name of a built in font to look for 
font_height 
Desired height of the font 
otk_app_get_font_size_info 
 
Purpose:  Retrieve the font size currently set on the CK1. 
 
Prototype: 
void otk_app_get_font_size_info(OTK_GC gc, int* ch_w
int* ch_h);
 
 
Parameters:  gc    
The gc id 
ch_w 
Place to store font width 
ch_h 
Place to store font height 
 
Return: None 
otk_app_get_root_window_width 
 
Purpose:  Retrieve the display width for the CK1 in pixels. 
 
Prototype: 
int otk_app_get_root_window_width();
 
 
Return:  Width of the screen 
otk_app_get_root_window_height 
 
Purpose:  Retrieve the display height of the CK1 in pixels. 
 
Prototype: 
int otk_app_get_root_window_height();
 
 
Return:  Height of the screen 
otk_app_exit 
 
Purpose:  Terminate the whole application. 
 
Prototype: 
void otk_app_exit();
 
otk_app_set_title 
 
Purpose:  Set the title of the application that shows at the top of the window. 
 
Prototype: 
void otk_app_set_title(char * newtitle);
 
 
Parameters:  newtitle 
New application name to set