summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-Taek Hong <sth253.hong@samsung.com>2015-03-04 18:45:32 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-03-04 18:45:51 +0900
commit8ea5cb6c7f8b0cf5a4b978820f2dd83c2c24579a (patch)
tree13796d65a3f6f59303215196e5ad35b5fbfcf70a
parentd4142dd239b116f51fa5b33cea6a2f690cde2086 (diff)
elm_slider: Added elm_slider_indicator_visible_mode_set/get.
Summary: elm_slider: Added elm_slider_indicator_visible_mode_set/get. elm_slider_indicator_visible_mode_set/get allows individual sliders to have its own indicator visible_mode. @feature Reviewers: Hermet, woohyun, seoz Subscribers: seoz Differential Revision: https://phab.enlightenment.org/D1945
-rw-r--r--src/lib/elm_slider.c13
-rw-r--r--src/lib/elm_slider.eo25
2 files changed, 38 insertions, 0 deletions
diff --git a/src/lib/elm_slider.c b/src/lib/elm_slider.c
index b69d8d8c5..d01ea49b6 100644
--- a/src/lib/elm_slider.c
+++ b/src/lib/elm_slider.c
@@ -1171,6 +1171,19 @@ _elm_slider_indicator_show_on_focus_get(Eo *obj EINA_UNUSED, Elm_Slider_Data *sd
1171 return (sd->indicator_visible_mode == ELM_SLIDER_INDICATOR_VISIBLE_MODE_ON_FOCUS); 1171 return (sd->indicator_visible_mode == ELM_SLIDER_INDICATOR_VISIBLE_MODE_ON_FOCUS);
1172} 1172}
1173 1173
1174EOLIAN static void
1175_elm_slider_indicator_visible_mode_set(Eo *obj EINA_UNUSED, Elm_Slider_Data *sd, Elm_Slider_Indicator_Visible_Mode indicator_visible_mode)
1176{
1177 if (sd->indicator_visible_mode == indicator_visible_mode) return;
1178 sd->indicator_visible_mode = indicator_visible_mode;
1179}
1180
1181EOLIAN static Elm_Slider_Indicator_Visible_Mode
1182_elm_slider_indicator_visible_mode_get(Eo *obj EINA_UNUSED, Elm_Slider_Data *sd)
1183{
1184 return sd->indicator_visible_mode;
1185}
1186
1174EOLIAN static Eina_Bool 1187EOLIAN static Eina_Bool
1175_elm_slider_elm_widget_focus_next_manager_is(Eo *obj EINA_UNUSED, Elm_Slider_Data *_pd EINA_UNUSED) 1188_elm_slider_elm_widget_focus_next_manager_is(Eo *obj EINA_UNUSED, Elm_Slider_Data *_pd EINA_UNUSED)
1176{ 1189{
diff --git a/src/lib/elm_slider.eo b/src/lib/elm_slider.eo
index b23f5db38..f90a7b4d9 100644
--- a/src/lib/elm_slider.eo
+++ b/src/lib/elm_slider.eo
@@ -330,6 +330,31 @@ class Elm_Slider (Elm_Layout, Elm_Interface_Atspi_Value,
330 double step; /*@ The step value. */ 330 double step; /*@ The step value. */
331 } 331 }
332 } 332 }
333 indicator_visible_mode {
334 set {
335 /*@
336 Set the visible mode of indicator.
337
338 @see elm_slider_indicator_visible_mode_get() for more details.
339
340 @ingroup Slider
341 */
342 }
343 get {
344 /*@
345 Get the visible mode of indicator.
346
347 @return The indicator visible mode.
348
349 @see elm_slider_indicator_visible_mode_set() for more details.
350
351 @ingroup Slider
352 */
353 }
354 values {
355 Elm_Slider_Indicator_Visible_Mode indicator_visible_mode; /*@ The indicator visible mode. */
356 }
357 }
333 indicator_format_function { 358 indicator_format_function {
334 set { 359 set {
335 /*@ 360 /*@