summaryrefslogtreecommitdiff
path: root/src/lib/ewe_ruler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ewe_ruler.c')
-rw-r--r--src/lib/ewe_ruler.c58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/lib/ewe_ruler.c b/src/lib/ewe_ruler.c
index e2caf26..a9194b8 100644
--- a/src/lib/ewe_ruler.c
+++ b/src/lib/ewe_ruler.c
@@ -258,7 +258,7 @@ _ewe_ruler_horizontal_set(Eo *obj,
258} 258}
259 259
260EOLIAN static Eina_Bool 260EOLIAN static Eina_Bool
261_ewe_ruler_horizontal_get(Eo *obj EINA_UNUSED, Ewe_Ruler_Smart_Data *sd) 261_ewe_ruler_horizontal_get(const Eo *obj EINA_UNUSED, Ewe_Ruler_Smart_Data *sd)
262{ 262{
263 return sd->horizontal; 263 return sd->horizontal;
264} 264}
@@ -285,7 +285,7 @@ _ewe_ruler_step_set(Eo *obj,
285} 285}
286 286
287EOLIAN static unsigned int 287EOLIAN static unsigned int
288_ewe_ruler_step_get(Eo *obj EINA_UNUSED, 288_ewe_ruler_step_get(const Eo *obj EINA_UNUSED,
289 Ewe_Ruler_Smart_Data *sd, 289 Ewe_Ruler_Smart_Data *sd,
290 Ewe_Ruler_Scale *scale) 290 Ewe_Ruler_Scale *scale)
291{ 291{
@@ -309,7 +309,7 @@ _ewe_ruler_value_step_set(Eo *obj,
309} 309}
310 310
311EOLIAN static double 311EOLIAN static double
312_ewe_ruler_value_step_get(Eo *obj EINA_UNUSED, 312_ewe_ruler_value_step_get(const Eo *obj EINA_UNUSED,
313 Ewe_Ruler_Smart_Data *sd, 313 Ewe_Ruler_Smart_Data *sd,
314 Ewe_Ruler_Scale *scale) 314 Ewe_Ruler_Scale *scale)
315{ 315{
@@ -335,7 +335,7 @@ _ewe_ruler_zero_offset_set(Eo *obj,
335} 335}
336 336
337EOLIAN static int 337EOLIAN static int
338_ewe_ruler_zero_offset_get(Eo *obj EINA_UNUSED, 338_ewe_ruler_zero_offset_get(const Eo *obj EINA_UNUSED,
339 Ewe_Ruler_Smart_Data *sd, 339 Ewe_Ruler_Smart_Data *sd,
340 Ewe_Ruler_Scale *scale) 340 Ewe_Ruler_Scale *scale)
341{ 341{
@@ -361,7 +361,7 @@ _ewe_ruler_format_set(Eo *obj,
361} 361}
362 362
363EOLIAN static const char * 363EOLIAN static const char *
364_ewe_ruler_format_get(Eo *obj EINA_UNUSED, 364_ewe_ruler_format_get(const Eo *obj EINA_UNUSED,
365 Ewe_Ruler_Smart_Data *sd, 365 Ewe_Ruler_Smart_Data *sd,
366 Ewe_Ruler_Scale *scale) 366 Ewe_Ruler_Scale *scale)
367{ 367{
@@ -371,10 +371,10 @@ _ewe_ruler_format_get(Eo *obj EINA_UNUSED,
371} 371}
372 372
373EOLIAN static Eina_Bool 373EOLIAN static Eina_Bool
374_ewe_ruler_style_set(Eo *obj, 374_ewe_ruler_scale_style_set(Eo *obj,
375 Ewe_Ruler_Smart_Data *sd, 375 Ewe_Ruler_Smart_Data *sd,
376 Ewe_Ruler_Scale *scale, 376 Ewe_Ruler_Scale *scale,
377 const char *style) 377 const char *style)
378{ 378{
379 if (!scale) scale = eina_list_data_get(sd->scales); 379 if (!scale) scale = eina_list_data_get(sd->scales);
380 if (!scale) return EINA_FALSE; 380 if (!scale) return EINA_FALSE;
@@ -394,9 +394,9 @@ _ewe_ruler_style_set(Eo *obj,
394} 394}
395 395
396EOLIAN static const char * 396EOLIAN static const char *
397_ewe_ruler_style_get(Eo *obj EINA_UNUSED, 397_ewe_ruler_scale_style_get(const Eo *obj EINA_UNUSED,
398 Ewe_Ruler_Smart_Data *sd, 398 Ewe_Ruler_Smart_Data *sd,
399 Ewe_Ruler_Scale *scale) 399 Ewe_Ruler_Scale *scale)
400{ 400{
401 if (!scale) scale = eina_list_data_get(sd->scales); 401 if (!scale) scale = eina_list_data_get(sd->scales);
402 if (!scale) return 0; 402 if (!scale) return 0;
@@ -453,7 +453,7 @@ _ewe_ruler_scale_del(Eo *obj EINA_UNUSED,
453} 453}
454 454
455EOLIAN static Eina_Bool 455EOLIAN static Eina_Bool
456_ewe_ruler_scale_visible_get(Eo *obj EINA_UNUSED, 456_ewe_ruler_scale_visible_get(const Eo *obj EINA_UNUSED,
457 Ewe_Ruler_Smart_Data *sd, 457 Ewe_Ruler_Smart_Data *sd,
458 Ewe_Ruler_Scale *scale) 458 Ewe_Ruler_Scale *scale)
459{ 459{
@@ -495,7 +495,7 @@ _ewe_ruler_scale_visible_set(Eo *obj EINA_UNUSED,
495} 495}
496 496
497EOLIAN static Eina_Bool 497EOLIAN static Eina_Bool
498_ewe_ruler_scale_middle_mark_get(Eo *obj EINA_UNUSED, 498_ewe_ruler_scale_middle_mark_get(const Eo *obj EINA_UNUSED,
499 Ewe_Ruler_Smart_Data *sd, 499 Ewe_Ruler_Smart_Data *sd,
500 Ewe_Ruler_Scale *scale) 500 Ewe_Ruler_Scale *scale)
501{ 501{
@@ -597,7 +597,7 @@ _ewe_ruler_marker_size_set(Eo *obj,
597} 597}
598 598
599EOLIAN static int 599EOLIAN static int
600_ewe_ruler_marker_size_get(Eo *obj EINA_UNUSED, 600_ewe_ruler_marker_size_get(const Eo *obj EINA_UNUSED,
601 Ewe_Ruler_Smart_Data *sd EINA_UNUSED, 601 Ewe_Ruler_Smart_Data *sd EINA_UNUSED,
602 Ewe_Ruler_Marker *marker) 602 Ewe_Ruler_Marker *marker)
603{ 603{
@@ -614,7 +614,7 @@ _ewe_ruler_marker_text_set(Eo *obj EINA_UNUSED,
614} 614}
615 615
616EOLIAN static const char * 616EOLIAN static const char *
617_ewe_ruler_marker_text_get(Eo *obj EINA_UNUSED, 617_ewe_ruler_marker_text_get(const Eo *obj EINA_UNUSED,
618 Ewe_Ruler_Smart_Data *sd EINA_UNUSED, 618 Ewe_Ruler_Smart_Data *sd EINA_UNUSED,
619 Ewe_Ruler_Marker *marker) 619 Ewe_Ruler_Marker *marker)
620{ 620{
@@ -668,7 +668,7 @@ _ewe_ruler_marker_relative_set(Eo *obj,
668} 668}
669 669
670EOLIAN static double 670EOLIAN static double
671_ewe_ruler_marker_relative_get(Eo *obj EINA_UNUSED, 671_ewe_ruler_marker_relative_get(const Eo *obj EINA_UNUSED,
672 Ewe_Ruler_Smart_Data *sd, 672 Ewe_Ruler_Smart_Data *sd,
673 Ewe_Ruler_Marker *marker, 673 Ewe_Ruler_Marker *marker,
674 Ewe_Ruler_Scale *scale) 674 Ewe_Ruler_Scale *scale)
@@ -709,7 +709,7 @@ _ewe_ruler_marker_absolute_set(Eo *obj,
709} 709}
710 710
711EOLIAN static int 711EOLIAN static int
712_ewe_ruler_marker_absolute_get(Eo *obj EINA_UNUSED, 712_ewe_ruler_marker_absolute_get(const Eo *obj EINA_UNUSED,
713 Ewe_Ruler_Smart_Data *sd EINA_UNUSED, 713 Ewe_Ruler_Smart_Data *sd EINA_UNUSED,
714 Ewe_Ruler_Marker *marker) 714 Ewe_Ruler_Marker *marker)
715{ 715{
@@ -721,7 +721,7 @@ _ewe_ruler_marker_absolute_get(Eo *obj EINA_UNUSED,
721} 721}
722 722
723EOLIAN static Eina_Bool 723EOLIAN static Eina_Bool
724_ewe_ruler_marker_visible_get(Eo *obj EINA_UNUSED, 724_ewe_ruler_marker_visible_get(const Eo *obj EINA_UNUSED,
725 Ewe_Ruler_Smart_Data *sd EINA_UNUSED, 725 Ewe_Ruler_Smart_Data *sd EINA_UNUSED,
726 Ewe_Ruler_Marker *marker) 726 Ewe_Ruler_Marker *marker)
727{ 727{
@@ -772,7 +772,7 @@ _ewe_ruler_marker_style_set(Eo *obj,
772} 772}
773 773
774EOLIAN static const char * 774EOLIAN static const char *
775_ewe_ruler_marker_style_get(Eo *obj EINA_UNUSED, 775_ewe_ruler_marker_style_get(const Eo *obj EINA_UNUSED,
776 Ewe_Ruler_Smart_Data *sd EINA_UNUSED, 776 Ewe_Ruler_Smart_Data *sd EINA_UNUSED,
777 Ewe_Ruler_Marker *marker) 777 Ewe_Ruler_Marker *marker)
778{ 778{
@@ -786,7 +786,7 @@ static void
786_ewe_ruler_show(Eo* obj, Ewe_Ruler_Smart_Data *sd) 786_ewe_ruler_show(Eo* obj, Ewe_Ruler_Smart_Data *sd)
787{ 787{
788 if (sd->ruler_visible) return; 788 if (sd->ruler_visible) return;
789 efl_gfx_visible_set(efl_super(obj, MY_CLASS), EINA_TRUE); 789 efl_gfx_entity_visible_set(efl_super(obj, MY_CLASS), EINA_TRUE);
790 790
791 Ewe_Ruler_Scale *scale; 791 Ewe_Ruler_Scale *scale;
792 Ewe_Ruler_Marker *marker; 792 Ewe_Ruler_Marker *marker;
@@ -823,7 +823,7 @@ static void
823_ewe_ruler_hide(Eo* obj, Ewe_Ruler_Smart_Data *sd) 823_ewe_ruler_hide(Eo* obj, Ewe_Ruler_Smart_Data *sd)
824{ 824{
825 if (!sd->ruler_visible) return; 825 if (!sd->ruler_visible) return;
826 efl_gfx_visible_set(efl_super(obj, MY_CLASS), EINA_FALSE); 826 efl_gfx_entity_visible_set(efl_super(obj, MY_CLASS), EINA_FALSE);
827 827
828 Ewe_Ruler_Scale *scale; 828 Ewe_Ruler_Scale *scale;
829 Ewe_Ruler_Marker *marker; 829 Ewe_Ruler_Marker *marker;
@@ -847,7 +847,7 @@ _ewe_ruler_hide(Eo* obj, Ewe_Ruler_Smart_Data *sd)
847} 847}
848 848
849EOLIAN static void 849EOLIAN static void
850_ewe_ruler_efl_gfx_visible_set(Eo *obj, Ewe_Ruler_Smart_Data *sd, Eina_Bool vis) 850_ewe_ruler_efl_gfx_entity_visible_set(Eo *obj, Ewe_Ruler_Smart_Data *sd, Eina_Bool vis)
851{ 851{
852 if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_VISIBLE, 0, vis)) 852 if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_VISIBLE, 0, vis))
853 return; 853 return;
@@ -859,14 +859,14 @@ _ewe_ruler_efl_gfx_visible_set(Eo *obj, Ewe_Ruler_Smart_Data *sd, Eina_Bool vis)
859} 859}
860 860
861EOLIAN static void 861EOLIAN static void
862_ewe_ruler_efl_gfx_position_set(Eo *obj, 862_ewe_ruler_efl_gfx_entity_position_set(Eo *obj,
863 Ewe_Ruler_Smart_Data *sd, 863 Ewe_Ruler_Smart_Data *sd,
864 Eina_Position2D pos) 864 Eina_Position2D pos)
865{ 865{
866 if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_MOVE, 0, pos.x, pos.y)) 866 if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_MOVE, 0, pos.x, pos.y))
867 return; 867 return;
868 868
869 efl_gfx_position_set(efl_super(obj, MY_CLASS), pos); 869 efl_gfx_entity_position_set(efl_super(obj, MY_CLASS), pos);
870 evas_object_move(obj, pos.x, pos.y); 870 evas_object_move(obj, pos.x, pos.y);
871 871
872 evas_object_move(sd->clip, pos.x, pos.y); 872 evas_object_move(sd->clip, pos.x, pos.y);
@@ -879,7 +879,7 @@ _ewe_ruler_efl_gfx_position_set(Eo *obj,
879} 879}
880 880
881EOLIAN static void 881EOLIAN static void
882_ewe_ruler_efl_gfx_size_set(Eo *obj, 882_ewe_ruler_efl_gfx_entity_size_set(Eo *obj,
883 Ewe_Ruler_Smart_Data *sd, 883 Ewe_Ruler_Smart_Data *sd,
884 Eina_Size2D size) 884 Eina_Size2D size)
885{ 885{
@@ -896,7 +896,7 @@ _ewe_ruler_efl_gfx_size_set(Eo *obj,
896 896
897 evas_object_smart_changed(obj); 897 evas_object_smart_changed(obj);
898 898
899 efl_gfx_size_set(efl_super(obj, MY_CLASS), size); 899 efl_gfx_entity_size_set(efl_super(obj, MY_CLASS), size);
900} 900}
901 901
902EOLIAN static void 902EOLIAN static void
@@ -954,11 +954,11 @@ _ewe_ruler_efl_canvas_group_group_calculate(Eo *obj EINA_UNUSED,
954} 954}
955 955
956EOLIAN static Efl_Ui_Theme_Apply 956EOLIAN static Efl_Ui_Theme_Apply
957_ewe_ruler_elm_widget_theme_apply(Eo *obj, Ewe_Ruler_Smart_Data *sd) 957_ewe_ruler_efl_ui_widget_theme_apply(Eo *obj, Ewe_Ruler_Smart_Data *sd)
958{ 958{
959 Efl_Ui_Theme_Apply int_ret = EFL_UI_THEME_APPLY_FAILED; 959 Efl_Ui_Theme_Apply int_ret = EFL_UI_THEME_APPLY_FAILED;
960 int count; 960 int count;
961 int_ret = elm_obj_widget_theme_apply(efl_super(obj, MY_CLASS)); 961 int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
962 if (int_ret == EFL_UI_THEME_APPLY_FAILED) return EFL_UI_THEME_APPLY_FAILED; 962 if (int_ret == EFL_UI_THEME_APPLY_FAILED) return EFL_UI_THEME_APPLY_FAILED;
963 963
964 Ewe_Ruler_Scale *scale; 964 Ewe_Ruler_Scale *scale;