Intermec ck1 Guía De Referencia
Chapter 4 — SDK Components
216
CK1 SDK Programmer’s Reference Manual
otk_spin_set_position
Purpose: Set the position of the spin.
Prototype:
void otk_spin_set_position (OtkSpin* spin, int x, int y);
Parameters: spin
Pointer of the OtkSpin instance
x
X coordinate on the top left point of the spin
y
Y coordinate on the top left point of the spin
Return: None
otk_spin_set_range
Purpose: Set the range of the spin.
Prototype:
void otk_spin_set_range (OtkSpin* spin, int max, int min,
int value);
Parameters: spin
Pointer of the OtkSpin instance
max
Maximum value of the spin
min
Minimum value of the spin
value
Current value of the spin
Return: None
otk_spin_refresh
Purpose: Redraw the spin. After calling the setting functions and adding to the
parent, this function needs to be called.
Prototype:
void otk_spin_refresh (OtkSpin* spin);
Parameter: spin
Pointer of the OtkSpin instance
Return: None
otk_spin_set_max
Purpose: Set the maximum value of the spin.
Prototype:
void otk_spin_set_max (OtkSpin* spin, int max);
Parameters: spin
Pointer of the OtkSpin instance
max
Maximum value of the spin
Return: None