Intermec ck1 Reference Guide
Chapter 4 — SDK Components
CK1 SDK Programmer’s Reference Manual
135
otk_app_init
Purpose: Call otk_app_init before using any other OTK functions in your
applications. It initializes everything needed to operate the toolkit.
Prototype:
void otk_app_init (int screen_w, int screen_h);
Parameters: screen_w
Width of the screen
screen_h
Height of the screen
Return: None
otk_app_loop
Purpose: All OTK applications must have an otk_app_loop( ). Controls end here
and wait for an event to occur.
Prototype:
int otk_app_loop ();
Parameter: None
Return: 0
Main loop is terminated
otk_app_add
Purpose: Add an OtkControl to the application. Events owned to the added
OtkControl are processed in the event loop; otherwise, the events are
dropped.
dropped.
The widgets that are derived from OtkControl are decided for the window
identification privately in the otk_control_init function, and the
otk_app_add is called to add the window identification to OtkApplication
in that time.
identification privately in the otk_control_init function, and the
otk_app_add is called to add the window identification to OtkApplication
in that time.
Prototype:
void otk_app_add (OtkControl* contr);
Parameter: contr
Pointer to the specified OtkControl object
Return: None
otk_app_remove
Purpose: Remove the window identification of the given OtkControl object from
OtkApplication.
Prototype:
void otk_app_remove (OtkControl* contr);
Parameter: contr
Pointer to the specified OtkControl object
Return: None