Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

etk_slider.h File Reference


Detailed Description


Data Structures

struct  Etk_Slider
 A widget with a cursor that the user can drag to change its value. More...
struct  Etk_HSlider
 An horizontal slider. More...
struct  Etk_VSlider
 A vertical slider. More...

Defines

#define ETK_SLIDER_TYPE   (etk_slider_type_get())
#define ETK_SLIDER(obj)   (ETK_OBJECT_CAST((obj), ETK_SLIDER_TYPE, Etk_Slider))
#define ETK_IS_SLIDER(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_SLIDER_TYPE))
#define ETK_HSLIDER_TYPE   (etk_hslider_type_get())
#define ETK_HSLIDER(obj)   (ETK_OBJECT_CAST((obj), ETK_HSLIDER_TYPE, Etk_HSlider))
#define ETK_IS_HSLIDER(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_HSLIDER_TYPE))
#define ETK_VSLIDER_TYPE   (etk_vslider_type_get())
#define ETK_VSLIDER(obj)   (ETK_OBJECT_CAST((obj), ETK_VSLIDER_TYPE, Etk_VSlider))
#define ETK_IS_VSLIDER(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_VSLIDER_TYPE))

Enumerations

enum  Etk_Slider_Update_Policy {
  ETK_SLIDER_CONTINUOUS,
  ETK_SLIDER_DISCONTINUOUS,
  ETK_SLIDER_DELAYED
}
 The different kinds of update policy for a slider. More...

Functions

Etk_Widget * etk_hslider_new (double lower, double upper, double value, double step_increment, double page_increment)
 Creates a new horizontal slider.
Etk_Widget * etk_vslider_new (double lower, double upper, double value, double step_increment, double page_increment)
 Creates a new vertical slider.
void etk_slider_label_set (Etk_Slider *slider, const char *label_format)
 Sets the format of the label to display next to the slider.
const char * etk_slider_label_get (Etk_Slider *slider)
 Gets the format of the label displayed next to the slider.
void etk_slider_inverted_set (Etk_Slider *slider, Etk_Bool inverted)
 Sets whether or not the slider is inverted. An inverted slider has its ends inverted: the maximum bound is at the left end for an Etk_HSlider, or at the bottom end (for an Etk_VSlider).
Etk_Bool etk_slider_inverted_get (Etk_Slider *slider)
 Gets whether or not the slider is inverted.
void etk_slider_update_policy_set (Etk_Slider *slider, Etk_Slider_Update_Policy policy)
 Sets the update-policy of the slider.
Etk_Slider_Update_Policy etk_slider_update_policy_get (Etk_Slider *slider)
 Gets the update-policy of the slider.