Intermec ck1 Reference Guide
Chapter 4 — SDK Components
142
CK1 SDK Programmer’s Reference Manual
otk_widget_set_gc_font_size
Purpose: Set the font size of the widget. The default font size is 12.
Prototype:
void otk_widget_set_gc_font_size (OtkWidget* widget, int
fontsize);
Parameters: widget
Pointer to the real instance
fontsize
New font size
Return: None
otk_widget_set_gc_font
Purpose: Attempt the specified widget to locate a font identification number that
can be used to refer to it with the desired font name and height.
Prototype:
void otk_widget_set_gc_font (OtkWidget* widget, char*
font_name, int fontsize)
Parameters: widget Specified
widget
font_name
String containing the name of a built in font to look for
fontsize
Desired height of the font
otk_widget_set_position
Purpose: Set the desired position of the widget.
Prototype:
void otk_widget_set_position (OtkWidget* widget, int
x_axis, int y_axis);
Parameters: widget
Pointer to the real instance
x_axis
X position relative to its parent window
y_axis
Y position relative to its parent window
Return: None
otk_widget_set_size
Purpose: Set the desired size of the widget.
Prototype:
void otk_widget_set_size (OtkWidget* widget, int width,
int height);
Parameters: widget
Pointer to the real instance
width
Maximum width for the specified widget
height
Maximum height for the specified widget
Return: None