Intermec ck1 Reference Guide

Page of 390
Chapter 4 — SDK Components 
CK1 SDK Programmer’s Reference Manual 
219 
OtkSlider 
OtkSlider is a wrapper for a range control. OtkSlider was inherited from 
OtkWidget and OtkRange. The properties are: 
Property 
Description 
“flag”(char:Read) 
Defines the orientation of the slider 
(vertical: 1, horizontal: 0). 
“step”(int:Read) 
Defines the step of the slider. 
 
 
otk_slider_init 
 
Purpose:  Initialize the OtkSlider instance. 
 
Prototype: 
void otk_slider_init (OtkSlider* slider);
 
 
Parameter:  slider 
Pointer of the OtkSlider instance 
 
Return: None 
otk_slider_set_typeflag 
 
Purpose:  Indicate the orientation of the slider (vertical: 1, horizontal: 0). 
 
Prototype: 
void otk_slider_set_slider_typeflag (OtkSlider* slider
int flag);
 
 
Parameters:  slider 
Pointer of the OtkSlider instance 
flag 
Orientation kind of the slider 
 
Return: None 
otk_slider_set_size 
 
Purpose:  Set the size of the slider. 
 
Prototype: 
void otk_slider_set_size (OtkSlider* slider, int width
int height);
 
 
Parameters:  slider 
Pointer of the OtkSlider instance 
width 
Width of the slider 
height 
Height of the slider 
 
Return: None