summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_slider_legacy.h
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2017-11-07 13:28:01 +0900
committerAmitesh Singh <amitesh.sh@samsung.com>2017-11-07 17:13:44 +0900
commitd6c9b37925554de261b1f4a07df72bf83f68c302 (patch)
treea31270085c5e3a2e081d4ef080949b5c3208db70 /src/lib/elementary/elm_slider_legacy.h
parent80b0ef75374e0cd0c9b6aa657cbf3e819065da5f (diff)
Efl.Ui.Slider: implement Slider.part & Ui.format functions
indicator_format_set/get & indicator_format_function_set are now legacy APIs. indicator format can be set by using generic Ui.Format function e.g. efl_ui_format_string_set(efl_part(sliderObj, "indicator"), "1.0%f");
Diffstat (limited to 'src/lib/elementary/elm_slider_legacy.h')
-rw-r--r--src/lib/elementary/elm_slider_legacy.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_slider_legacy.h b/src/lib/elementary/elm_slider_legacy.h
index 07d29c1..89df6f1 100644
--- a/src/lib/elementary/elm_slider_legacy.h
+++ b/src/lib/elementary/elm_slider_legacy.h
@@ -231,4 +231,56 @@ EAPI void elm_slider_range_set(Evas_Object *obj, double from, double to);
231 */ 231 */
232EAPI void elm_slider_range_get(const Evas_Object *obj, double *from, double *to); 232EAPI void elm_slider_range_get(const Evas_Object *obj, double *from, double *to);
233 233
234/**
235 * @brief Set the format string for the indicator label.
236 *
237 * The slider may display its value somewhere else then unit label, for
238 * example, above the slider knob that is dragged around. This function sets
239 * the format string used for this.
240 *
241 * If @c null, indicator label won't be visible. If not it sets the format
242 * string for the label text. To the label text is provided a floating point
243 * value, so the label text can display up to 1 floating point value. Note that
244 * this is optional.
245 *
246 * Use a format string such as "%1.2f meters" for example, and it will display
247 * values like: "3.14 meters" for a value equal to 3.14159.
248 *
249 * Default is indicator label disabled.
250 *
251 * @param[in] obj The object.
252 * @param[in] indicator The format string for the indicator display.
253 *
254 * @ingroup Elm_Slider
255 */
256 EAPI void elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator);
257
258 /**
259 * @brief Get the indicator label format of the slider.
260 *
261 * The slider may display its value somewhere else then unit label, for
262 * example, above the slider knob that is dragged around. This function gets
263 * the format string used for this.
264 *
265 * @param[in] obj The object.
266 *
267 * @return The format string for the indicator display.
268 *
269 * @ingroup Elm_Slider
270 */
271 EAPI const char *elm_slider_indicator_format_get(const Evas_Object *obj);
272
273 /**
274 * @brief Set the format function pointer for the indicator label
275 *
276 * Set the callback function to format the indicator string.
277 *
278 * @param[in] obj The object.
279 * @param[in] func The indicator format function.
280 * @param[in] free_func The freeing function for the format string.
281 *
282 * @ingroup Elm_Slider
283 */
284EAPI void elm_slider_indicator_format_function_set(Evas_Object *obj, slider_func_type func, slider_freefunc_type free_func);
285
234#include "efl_ui_slider.eo.legacy.h" 286#include "efl_ui_slider.eo.legacy.h"