Intermec ck1 Reference Guide
Chapter 4 — SDK Components
CK1 SDK Programmer’s Reference Manual
137
Return: None
otk_app_set_window_background_color
Purpose: Set the background color for the window. The default background color of
a window is white.
Prototype:
void otk_app_set_window_background_color(OTK_WINDOW_ID
win, OTK_COLOR color);
Parameters: win
Window identification
color
New color of this window
Return: None
otk_app_set_window_border_size
Purpose: Set the border size of the window. Called by otk_control_set_border_size
and the default value is 0.
Prototype:
void otk_app_set_window_border_size(OTK_WINDOW_ID win,
int size);
Parameters: win Window
identification
size
New size
Return: None
otk_app_get_gc
Purpose: Get the graphics contexts. The graphics contexts are usually reset in
invoked time by demands of the widget.
Prototype:
OTK_GC otk_app_get_gc (OTK_COLOR color, int font_size,
int gc_mode);
Parameters: color
Color of this graphics context
font_size
Font size to use
gc_mode
The drawing mode. OTK_MODE_SET will set the
drawing pixel. OTK_MODE_XOR, OTK_MODE_OR,
OTK_MODE_AND will set the pixel as using xor, or, and
with the foreground color first.
drawing pixel. OTK_MODE_XOR, OTK_MODE_OR,
OTK_MODE_AND will set the pixel as using xor, or, and
with the foreground color first.
Return: None