EZ
Up Prev Next Contents


3.9 Sliders

A slider widget is a sunken rectangle on which a button moves in one dimension, either vertically or horizontally. A slider appears as a linear scale with optional numerical labes and an optional short label. Sliders are typically used to edit a numerical value. The user adjust the value by clicking mouse button 1 or button 2 in the slider, or by dragging the slider button with mouse button 1. If a slider has callbacks, they are invoked whenever its numeric value changes.

Sliders are created by calling EZ_CreateWidget with type EZ_WIDGET_HORIZONTAL_SLIDER or EZ_WIDGET_VERTICAL_SLIDER. Sliders can also be created by using the next function.

EZ_Widget *EZ_CreateSlider(EZ_Widget *parent, char *label,

float from_value, float to_value, float init_v, int type)


HTML Documentation Maintainance:Arturo Espinosa <arturo@nuclecu.unam.mx>