Intermec ck1 Reference Guide

Page of 390
Chapter 4 — SDK Components 
138 
CK1 SDK Programmer’s Reference Manual 
otk_app_get_gc_user_defined 
 
Purpose:  Get user-defined graphics contexts. The graphics contexts are usually reset 
in invoked time by demands of the widget. 
 
Prototype: 
OTK_GC otk_app_get_gc_user_defined(int gc_mode, int 
font_size, OTK_COLOR fg_color, OTK_COLOR bg_color
OTK_BOOL use_bg, OTK_REGION region);
 
 
Parameters:  gc_mode Drawing 
mode 
font_size Font 
size 
fg_color Foreground 
color 
bg_color Background 
color 
use_bg 
Should drawing use background color 
region Drawing 
region 
identification 
 
Return: Graphic 
context 
identification 
otk_app_new_font 
 
Purpose:  Attempt to locate a font with the desired font name and height and returns 
a font identification number that you can use to refer to it. 
 
Prototype: 
OTK_FONT otk_app_new_font(char *fontname, int 
font_height);
 
 
Parameters:  fontname 
String containing the name of a built in font to look for 
font_height 
Desired height of the font 
 
Return:  Font identification number that you can use to refer to the font 
otk_app_get_font_default 
 
Purpose:  Get the default font identification number to refer to it. 
 
Prototype: 
OTK_FONT otk_app_get_font_default();
 
 
Return:  Default font identification number of this application 
otk_app_set_font_default 
 
Purpose:  Change the default font identification number to the desired font 
attributes. 
 
Prototype: 
void otk_app_set_font_default(char* fontname, int 
font_height);