AG_Slider * AG_SliderNew (AG_Widget *parent, enum ag_slider_type type, Uint flags)
AG_Slider * Fn AG_SliderNew{Int,Uint,Flt,Dbl} "AG_Widget *parent" "enum ag_slider_type type" "Uint flags" "<Type> *val" "<Type> *min" "<Type> *max" AG_Slider * Fn AG_SliderNew{Int,Uint,Flt,Dbl}R "AG_Widget *parent" "enum ag_slider_type type" "Uint flags" "<Type> *val" "<Type> min" "<Type> max" AG_Slider * Fn AG_SliderNew{Uint8,Uint16,Uint32} "AG_Widget *parent" "enum ag_slider_type type" "Uint flags" "<Type> *val" "<Type> *min" "<Type> *max" AG_Slider * Fn AG_SliderNew{Sint8,Sint16,Sint32} "AG_Widget *parent" "enum ag_slider_type type" "Uint flags" "<Type> *val" "<Type> *min" "<Type> *max" AG_Slider * Fn AG_SliderNew{Uint8,Uint16,Uint32}R "AG_Widget *parent" "enum ag_slider_type type" "Uint flags" "<Type> *val" "<Type> min" "<Type> max" AG_Slider * Fn AG_SliderNew{Sint8,Sint16,Sint32}R "AG_Widget *parent" "enum ag_slider_type type" "Uint flags" "<Type> *val" "<Type> min" "<Type> max" void AG_SliderSetIntIncrement (AG_Slider *slider, int increment)
void AG_SliderSetRealIncrement (AG_Slider *slider, double increment)
void AG_SliderSetControlSize (AG_Slider *slider, int pixels)
|
The
AG_SliderNew() function allocates, initializes, and attaches a new
AG_Slider widget.
type defines the orientation of the slider:
enum ag_slider_type {
AG_SLIDER_HORIZ,
AG_SLIDER_VERT
};
Acceptable
flags include:
| AG_SLIDER_HFILL | Expand horizontally in parent (equivalent to invoking
AG_ExpandHoriz(3)). | | AG_SLIDER_VFILL | Expand vertically in parent (equivalent to invoking
AG_ExpandVert(3)). | | AG_SLIDER_EXPAND | Shorthand for
AG_SLIDER_HFILL|AG_SLIDER_VFILL. |
The functions
Fn AG_SliderNew{Int,Uint,Flt,Dbl}create a new
AG_Slider bound to the specified variables.
The
Fn AG_SliderNew{Int,Uint,Flt,Dbl}Rvariants binds to the specified value, but accepts an explicit range
min and
max.
AG_SliderSetIntIncrement() and
AG_SliderSetRealIncrement() define by how much the value is to be incremented/decremented as a result of
keyboard motion.
The former is only meaningful with integer bindings, the latter is only
meaningful with floating-point bindings.
AG_SliderSetControlSize() specifies a preferred size for the slider control, in pixels.
|