diff options
author | Amitesh Singh <amitesh.sh@samsung.com> | 2017-06-13 14:59:05 +0900 |
---|---|---|
committer | Amitesh Singh <amitesh.sh@samsung.com> | 2017-06-13 18:05:06 +0900 |
commit | b279387843575881825543bef34f50b36f3ab3f0 (patch) | |
tree | 7696478e6f21062dee9d5cf66ba03d23251cbdd2 /src/lib/elementary/elm_slider_legacy.h | |
parent | 34b6d6d267d75a73ae0036a40105c792697bf5d1 (diff) |
Efl.Ui.Slider: implement Efl.Ui.Progress.progress_min_max
and move elm_slider_min_max_set/get as legacy APIs
ref T5361
Diffstat (limited to 'src/lib/elementary/elm_slider_legacy.h')
-rw-r--r-- | src/lib/elementary/elm_slider_legacy.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_slider_legacy.h b/src/lib/elementary/elm_slider_legacy.h index 9fa4546..fa9c669 100644 --- a/src/lib/elementary/elm_slider_legacy.h +++ b/src/lib/elementary/elm_slider_legacy.h | |||
@@ -159,4 +159,38 @@ EAPI const char *elm_slider_unit_format_get(const Evas_Object *obj); | |||
159 | */ | 159 | */ |
160 | EAPI void elm_slider_units_format_function_set(Evas_Object *obj, slider_func_type func, slider_freefunc_type free_func); | 160 | EAPI void elm_slider_units_format_function_set(Evas_Object *obj, slider_func_type func, slider_freefunc_type free_func); |
161 | 161 | ||
162 | /** | ||
163 | * @brief Set the minimum and maximum values for the slider. | ||
164 | * | ||
165 | * Define the allowed range of values to be selected by the user. | ||
166 | * | ||
167 | * If actual value is less than @c min, it will be updated to @c min. If it is | ||
168 | * bigger then @c max, will be updated to @c max. Actual value can be get with | ||
169 | * @ref Efl.Ui.Progress.progress_value.get | ||
170 | * | ||
171 | * By default, min is equal to 0.0, and max is equal to 1.0. | ||
172 | * | ||
173 | * @warning maximum must be greater than minimum, otherwise behavior is | ||
174 | * undefined. | ||
175 | * | ||
176 | * @param[in] min The minimum value. | ||
177 | * @param[in] max The maximum value. | ||
178 | * | ||
179 | * @ingroup Efl_Ui_Slider | ||
180 | */ | ||
181 | EAPI void elm_slider_min_max_set(Evas_Object *obj, double min, double max); | ||
182 | |||
183 | /** | ||
184 | * @brief Get the minimum and maximum values of the slider. | ||
185 | * | ||
186 | * @note If only one value is needed, the other pointer can be passed as | ||
187 | * @c null. | ||
188 | * | ||
189 | * @param[out] min The minimum value. | ||
190 | * @param[out] max The maximum value. | ||
191 | * | ||
192 | * @ingroup Efl_Ui_Slider | ||
193 | */ | ||
194 | EAPI void elm_slider_min_max_get(const Evas_Object *obj, double *min, double *max); | ||
195 | |||
162 | #include "efl_ui_slider.eo.legacy.h" \ No newline at end of file | 196 | #include "efl_ui_slider.eo.legacy.h" \ No newline at end of file |