diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-10-31 16:36:32 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-11-01 11:22:33 +0900 |
commit | 9cec14918c089d94a742cb067872181dd452b7ef (patch) | |
tree | 59fd6ae40189a1c9e500d795ae09bc88076b3096 /src/lib | |
parent | b8ca1272aee00314ca2cfb10214f36590084f6f0 (diff) |
evas: Move evas_canvas.eo to legacy-only
This isn't meant to be installed. The canvas API in EO is based around
the interfaces Efl.Canvas and the widget Efl.Ui.Win. Anything else is
not EO (eg: ecore_evas, evas, ...)
Note: evas_canvas3d is the last remaining thing that is installed along
EO files, but those are all beta APIs.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/edje/edje_entry.c | 2 | ||||
-rw-r--r-- | src/lib/edje/edje_program.c | 4 | ||||
-rw-r--r-- | src/lib/edje/edje_smart.c | 2 | ||||
-rw-r--r-- | src/lib/elementary/efl_ui_win.c | 2 | ||||
-rw-r--r-- | src/lib/elementary/elm_cnp.c | 2 | ||||
-rw-r--r-- | src/lib/elementary/els_tooltip.c | 4 | ||||
-rw-r--r-- | src/lib/evas/Evas_Eo.h | 2 | ||||
-rw-r--r-- | src/lib/evas/Evas_Internal.h | 4 | ||||
-rw-r--r-- | src/lib/evas/canvas/efl_input_event.c | 1 | ||||
-rw-r--r-- | src/lib/evas/include/evas_private.h | 1 |
10 files changed, 14 insertions, 10 deletions
diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c index 5f7fb7437b..3fa1299abb 100644 --- a/src/lib/edje/edje_entry.c +++ b/src/lib/edje/edje_entry.c | |||
@@ -4594,7 +4594,7 @@ _edje_entry_imf_default_focused_rp_get(Edje *ed) | |||
4594 | Evas *e; | 4594 | Evas *e; |
4595 | 4595 | ||
4596 | e = evas_object_evas_get(ed->obj); | 4596 | e = evas_object_evas_get(ed->obj); |
4597 | seat = evas_canvas_default_device_get(e, EFL_INPUT_DEVICE_TYPE_SEAT); | 4597 | seat = evas_default_device_get(e, EFL_INPUT_DEVICE_TYPE_SEAT); |
4598 | seat_name = _edje_seat_name_get(ed, seat); | 4598 | seat_name = _edje_seat_name_get(ed, seat); |
4599 | 4599 | ||
4600 | return _edje_focused_part_get(ed, seat_name); | 4600 | return _edje_focused_part_get(ed, seat_name); |
diff --git a/src/lib/edje/edje_program.c b/src/lib/edje/edje_program.c index 705ac4da65..a231f244ac 100644 --- a/src/lib/edje/edje_program.c +++ b/src/lib/edje/edje_program.c | |||
@@ -595,7 +595,7 @@ _edje_part_focus_set(Edje *ed, const char *seat_name, Edje_Real_Part *rp) | |||
595 | else /* Use default seat name */ | 595 | else /* Use default seat name */ |
596 | { | 596 | { |
597 | e = evas_object_evas_get(ed->obj); | 597 | e = evas_object_evas_get(ed->obj); |
598 | seat = evas_canvas_default_device_get(e, EFL_INPUT_DEVICE_TYPE_SEAT); | 598 | seat = evas_default_device_get(e, EFL_INPUT_DEVICE_TYPE_SEAT); |
599 | sname = eina_stringshare_ref(_edje_seat_name_get(ed, seat)); | 599 | sname = eina_stringshare_ref(_edje_seat_name_get(ed, seat)); |
600 | } | 600 | } |
601 | 601 | ||
@@ -983,7 +983,7 @@ low_mem_current: | |||
983 | Evas *e; | 983 | Evas *e; |
984 | 984 | ||
985 | e = evas_object_evas_get(ed->obj); | 985 | e = evas_object_evas_get(ed->obj); |
986 | seat = evas_canvas_default_device_get(e, EFL_INPUT_DEVICE_TYPE_SEAT); | 986 | seat = evas_default_device_get(e, EFL_INPUT_DEVICE_TYPE_SEAT); |
987 | } | 987 | } |
988 | if (!pr->targets) | 988 | if (!pr->targets) |
989 | { | 989 | { |
diff --git a/src/lib/edje/edje_smart.c b/src/lib/edje/edje_smart.c index 7515d0a421..8b01b4eb03 100644 --- a/src/lib/edje/edje_smart.c +++ b/src/lib/edje/edje_smart.c | |||
@@ -33,7 +33,7 @@ _edje_object_efl_object_constructor(Eo *obj, Edje *ed) | |||
33 | efl_canvas_group_clipped_set(obj, EINA_TRUE); | 33 | efl_canvas_group_clipped_set(obj, EINA_TRUE); |
34 | obj = efl_constructor(efl_super(obj, MY_CLASS)); | 34 | obj = efl_constructor(efl_super(obj, MY_CLASS)); |
35 | efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY); | 35 | efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY); |
36 | ed->base.evas = efl_provider_find(obj, EVAS_CANVAS_CLASS); | 36 | ed->base.evas = evas_object_evas_get(obj); |
37 | ed->base.clipper = (Evas_Object *) efl_canvas_group_clipper_get(obj); | 37 | ed->base.clipper = (Evas_Object *) efl_canvas_group_clipper_get(obj); |
38 | ed->duration_scale = 1.0; | 38 | ed->duration_scale = 1.0; |
39 | _edje_lib_ref(); | 39 | _edje_lib_ref(); |
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c index 58b7fc1171..4904a13e10 100644 --- a/src/lib/elementary/efl_ui_win.c +++ b/src/lib/elementary/efl_ui_win.c | |||
@@ -4138,7 +4138,7 @@ _elm_win_frame_cb_menu(void *data, | |||
4138 | int x, y, wx, wy; | 4138 | int x, y, wx, wy; |
4139 | 4139 | ||
4140 | if (!sd->wl.win) return; | 4140 | if (!sd->wl.win) return; |
4141 | evas_canvas_pointer_canvas_xy_get(sd->evas, &x, &y); | 4141 | evas_pointer_canvas_xy_get(sd->evas, &x, &y); |
4142 | ecore_wl2_window_geometry_get(sd->wl.win, &wx, &wy, NULL, NULL); | 4142 | ecore_wl2_window_geometry_get(sd->wl.win, &wx, &wy, NULL, NULL); |
4143 | if (x < 0) x += wx; | 4143 | if (x < 0) x += wx; |
4144 | if (y < 0) y += wy; | 4144 | if (y < 0) y += wy; |
diff --git a/src/lib/elementary/elm_cnp.c b/src/lib/elementary/elm_cnp.c index 39528de8cb..e7ac5cb625 100644 --- a/src/lib/elementary/elm_cnp.c +++ b/src/lib/elementary/elm_cnp.c | |||
@@ -2922,7 +2922,7 @@ _wl_default_seat_get(Ecore_Wl2_Window *win, Evas_Object *obj) | |||
2922 | return input; | 2922 | return input; |
2923 | } | 2923 | } |
2924 | 2924 | ||
2925 | seat = evas_canvas_default_device_get(evas_object_evas_get(obj), EFL_INPUT_DEVICE_TYPE_SEAT); | 2925 | seat = evas_default_device_get(evas_object_evas_get(obj), EFL_INPUT_DEVICE_TYPE_SEAT); |
2926 | EINA_SAFETY_ON_NULL_RETURN_VAL(seat, NULL); | 2926 | EINA_SAFETY_ON_NULL_RETURN_VAL(seat, NULL); |
2927 | return ecore_wl2_display_input_find(ecore_wl2_window_display_get(win), | 2927 | return ecore_wl2_display_input_find(ecore_wl2_window_display_get(win), |
2928 | evas_device_seat_id_get(seat)); | 2928 | evas_device_seat_id_get(seat)); |
diff --git a/src/lib/elementary/els_tooltip.c b/src/lib/elementary/els_tooltip.c index 84fe835afa..4eaea65cf7 100644 --- a/src/lib/elementary/els_tooltip.c +++ b/src/lib/elementary/els_tooltip.c | |||
@@ -544,14 +544,14 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt) | |||
544 | &basex, &basey, &cw, &ch); | 544 | &basex, &basey, &cw, &ch); |
545 | elm_win_screen_position_get(elm_widget_top_get(tt->owner), | 545 | elm_win_screen_position_get(elm_widget_top_get(tt->owner), |
546 | &cx, &cy); | 546 | &cx, &cy); |
547 | evas_canvas_pointer_canvas_xy_get(tt->evas, &px, &py); | 547 | evas_pointer_canvas_xy_get(tt->evas, &px, &py); |
548 | cx -= basex; | 548 | cx -= basex; |
549 | cy -= basey; | 549 | cy -= basey; |
550 | } | 550 | } |
551 | else | 551 | else |
552 | { | 552 | { |
553 | evas_output_size_get(tt->evas, &cw, &ch); | 553 | evas_output_size_get(tt->evas, &cw, &ch); |
554 | evas_canvas_pointer_canvas_xy_get(tt->evas, &px, &py); | 554 | evas_pointer_canvas_xy_get(tt->evas, &px, &py); |
555 | } | 555 | } |
556 | TTDBG("SCREEN: cw=%d,ch=%d\n", cw, ch); | 556 | TTDBG("SCREEN: cw=%d,ch=%d\n", cw, ch); |
557 | 557 | ||
diff --git a/src/lib/evas/Evas_Eo.h b/src/lib/evas/Evas_Eo.h index dbd65e1555..fcc7fc67fe 100644 --- a/src/lib/evas/Evas_Eo.h +++ b/src/lib/evas/Evas_Eo.h | |||
@@ -4,8 +4,6 @@ | |||
4 | 4 | ||
5 | #ifdef EFL_EO_API_SUPPORT | 5 | #ifdef EFL_EO_API_SUPPORT |
6 | 6 | ||
7 | #include "canvas/evas_canvas.eo.h" | ||
8 | |||
9 | /** | 7 | /** |
10 | * @ingroup Evas_Object_Rectangle | 8 | * @ingroup Evas_Object_Rectangle |
11 | * | 9 | * |
diff --git a/src/lib/evas/Evas_Internal.h b/src/lib/evas/Evas_Internal.h index 2a84270917..09cc2c8f4e 100644 --- a/src/lib/evas/Evas_Internal.h +++ b/src/lib/evas/Evas_Internal.h | |||
@@ -63,6 +63,10 @@ EOAPI void efl_canvas_object_type_set(Eo *obj, const char *type); | |||
63 | EOAPI void efl_canvas_group_add(Eo *obj); | 63 | EOAPI void efl_canvas_group_add(Eo *obj); |
64 | EOAPI void efl_canvas_group_del(Eo *obj); | 64 | EOAPI void efl_canvas_group_del(Eo *obj); |
65 | EOAPI void efl_canvas_group_clipped_set(Eo *obj, Eina_Bool unclipped); | 65 | EOAPI void efl_canvas_group_clipped_set(Eo *obj, Eina_Bool unclipped); |
66 | EOAPI void evas_canvas_touch_point_list_nth_xy_get(Eo *obj, unsigned int n, double *x, double *y); | ||
67 | EOAPI void evas_canvas_seat_focus_in(Eo *obj, Efl_Input_Device *seat); | ||
68 | EOAPI void evas_canvas_seat_focus_out(Eo *obj, Efl_Input_Device *seat); | ||
69 | EOAPI Eo* evas_canvas_seat_focus_get(const Eo *obj, Efl_Input_Device *seat); | ||
66 | 70 | ||
67 | EOAPI void *efl_input_legacy_info_get(const Eo *obj); | 71 | EOAPI void *efl_input_legacy_info_get(const Eo *obj); |
68 | EOAPI Eo *efl_input_instance_get(const Eo *obj, Efl_Object *owner, void **priv); | 72 | EOAPI Eo *efl_input_instance_get(const Eo *obj, Efl_Object *owner, void **priv); |
diff --git a/src/lib/evas/canvas/efl_input_event.c b/src/lib/evas/canvas/efl_input_event.c index 745ab8f8ca..f18eb3d136 100644 --- a/src/lib/evas/canvas/efl_input_event.c +++ b/src/lib/evas/canvas/efl_input_event.c | |||
@@ -6,6 +6,7 @@ | |||
6 | 6 | ||
7 | #include <Evas.h> | 7 | #include <Evas.h> |
8 | #include <Evas_Internal.h> | 8 | #include <Evas_Internal.h> |
9 | #include "canvas/evas_canvas.eo.h" | ||
9 | 10 | ||
10 | #define EFL_INTERNAL_UNSTABLE | 11 | #define EFL_INTERNAL_UNSTABLE |
11 | #include "interfaces/efl_common_internal.h" | 12 | #include "interfaces/efl_common_internal.h" |
diff --git a/src/lib/evas/include/evas_private.h b/src/lib/evas/include/evas_private.h index 2cedf01807..ebc14a44c9 100644 --- a/src/lib/evas/include/evas_private.h +++ b/src/lib/evas/include/evas_private.h | |||
@@ -50,6 +50,7 @@ | |||
50 | #define ENFN obj->layer->evas->engine.func | 50 | #define ENFN obj->layer->evas->engine.func |
51 | #define ENC _evas_engine_context(obj->layer->evas) | 51 | #define ENC _evas_engine_context(obj->layer->evas) |
52 | 52 | ||
53 | #include "canvas/evas_canvas.eo.h" | ||
53 | #include "canvas/evas_text.eo.h" | 54 | #include "canvas/evas_text.eo.h" |
54 | #include "canvas/evas_textgrid.eo.h" | 55 | #include "canvas/evas_textgrid.eo.h" |
55 | #include "canvas/evas_line.eo.h" | 56 | #include "canvas/evas_line.eo.h" |