aboutsummaryrefslogtreecommitdiffstats
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
parentGenlist: make reordered item selected (diff)
downloadelementary-8ea5cb6c7f8b0cf5a4b978820f2dd83c2c24579a.tar.gz
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
return (sd->indicator_visible_mode == ELM_SLIDER_INDICATOR_VISIBLE_MODE_ON_FOCUS);
}
+EOLIAN static void
+_elm_slider_indicator_visible_mode_set(Eo *obj EINA_UNUSED, Elm_Slider_Data *sd, Elm_Slider_Indicator_Visible_Mode indicator_visible_mode)
+{
+ if (sd->indicator_visible_mode == indicator_visible_mode) return;
+ sd->indicator_visible_mode = indicator_visible_mode;
+}
+
+EOLIAN static Elm_Slider_Indicator_Visible_Mode
+_elm_slider_indicator_visible_mode_get(Eo *obj EINA_UNUSED, Elm_Slider_Data *sd)
+{
+ return sd->indicator_visible_mode;
+}
+
EOLIAN static Eina_Bool
_elm_slider_elm_widget_focus_next_manager_is(Eo *obj EINA_UNUSED, Elm_Slider_Data *_pd EINA_UNUSED)
{
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,
double step; /*@ The step value. */
}
}
+ indicator_visible_mode {
+ set {
+ /*@
+ Set the visible mode of indicator.
+
+ @see elm_slider_indicator_visible_mode_get() for more details.
+
+ @ingroup Slider
+ */
+ }
+ get {
+ /*@
+ Get the visible mode of indicator.
+
+ @return The indicator visible mode.
+
+ @see elm_slider_indicator_visible_mode_set() for more details.
+
+ @ingroup Slider
+ */
+ }
+ values {
+ Elm_Slider_Indicator_Visible_Mode indicator_visible_mode; /*@ The indicator visible mode. */
+ }
+ }
indicator_format_function {
set {
/*@