Intermec ck1 참조 가이드

다운로드
페이지 390
Chapter 4 — SDK Components 
140 
CK1 SDK Programmer’s Reference Manual 
otk_app_set_showfamily 
 
Purpose:  Show or hide the family set for the ime, power, and connection status. 
 
Prototype: 
otk_app_set_show_ime(OTK_BOOL bShow);
 
otk_app_set_show_power(OTK_BOOL bShow); 
otk_app_set_show_link(OTK_BOOL bShow); 
 
Parameters:  bShow 
OTK_TRUE for show, OTK_FALSE for hide 
otk_app_register_fd 
 
Purpose:  Register an fd_input to handle while getting the events from the server. It 
calls the fd_input function when the file handle has data to read. 
 
Prototype: 
void otk_app_register_fd(int fd, ON_FD_INPUT fd_input);
 
 
Parameters:  fd    
File handle to listen 
fd_input 
Function to call when fd has input with a type of “void 
fd_input(int fd)” 
OtkWidget 
OtkWidget provides a common base and interface that actual widgets 
must adhere to. OtkWidget was inherited from OtkObject. The properties 
are: 
"user_data"(void*:Read/Write) 
otk_widget_init 
 
Purpose:  Initialize the instance to be OtkWidget. 
 
Prototype: 
void otk_widget_init (OtkWidget* widget);
 
 
Parameter:  widget 
Pointer to the real instance 
 
Return: None 
otk_widget_set_visible 
 
Purpose:  Set the visibility of this widget. 
Setting or clearing OTK_WIDGET_FLAG_VISIBLE of flags field of the 
OtkWidget. 
 
Prototype: 
void otk_widget_set_visible (OtkWidget* widget, OTK_BOOL 
visible);