summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-09-27 10:06:30 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-09-30 10:01:00 +0200
commitbcb6734166cc9e15c5979dae1404b4db6806b4a5 (patch)
tree9ef194396a8d23a06f006f7750aa215f04c49b89
parent839b0f7d61fe17cd61ab7b01dff5036c43025d2c (diff)
efl/canvas: add Efl_Canvas.h
this includes all the efl.canvas headers and adds some compilation tests for the header to the unit test suite ref T8274 Differential Revision: https://phab.enlightenment.org/D10226
-rw-r--r--src/lib/evas/Efl_Canvas.h116
-rw-r--r--src/lib/evas/meson.build1
-rw-r--r--src/tests/evas/efl_test_canvas.c2
-rw-r--r--src/tests/evas/efl_test_canvas2.c2
-rw-r--r--src/tests/evas/efl_test_canvas3.c2
-rw-r--r--src/tests/evas/meson.build5
6 files changed, 127 insertions, 1 deletions
diff --git a/src/lib/evas/Efl_Canvas.h b/src/lib/evas/Efl_Canvas.h
new file mode 100644
index 0000000000..66fe692a72
--- /dev/null
+++ b/src/lib/evas/Efl_Canvas.h
@@ -0,0 +1,116 @@
1#ifndef _EFL_CANVAS_H
2#define _EFL_CANVAS_H
3
4#include <Efl_Config.h>
5
6#include <Eina.h>
7
8#include <Eo.h>
9/* This include has been added to support Eo in Evas */
10#include <Efl.h>
11#ifdef EAPI
12# undef EAPI
13#endif
14
15#ifdef _WIN32
16# ifdef EFL_BUILD
17# ifdef DLL_EXPORT
18# define EAPI __declspec(dllexport)
19# else
20# define EAPI
21# endif
22# else
23# define EAPI __declspec(dllimport)
24# endif
25#else
26# ifdef __GNUC__
27# if __GNUC__ >= 4
28# define EAPI __attribute__ ((visibility("default")))
29# else
30# define EAPI
31# endif
32# else
33# define EAPI
34# endif
35#endif
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41#include <interfaces/efl_gfx_types.eot.h>
42#include <interfaces/efl_gfx_path.eo.h>
43#include <interfaces/efl_input_types.eot.h>
44#include <interfaces/efl_text_types.eot.h>
45#include <canvas/efl_canvas_animation_types.eot.h>
46#include <gesture/efl_canvas_gesture_types.eot.h>
47
48#include <gesture/efl_canvas_gesture.eo.h>
49#include <gesture/efl_canvas_gesture_touch.eo.h>
50#include <gesture/efl_canvas_gesture_recognizer.eo.h>
51#include <gesture/efl_canvas_gesture_manager.eo.h>
52#include <canvas/efl_canvas_object.eo.h>
53
54#include <canvas/efl_canvas_animation_alpha.eo.h>
55#include <canvas/efl_canvas_animation.eo.h>
56#include <canvas/efl_canvas_animation_group.eo.h>
57#include <canvas/efl_canvas_animation_group_parallel.eo.h>
58#include <canvas/efl_canvas_animation_group_sequential.eo.h>
59#include <canvas/efl_canvas_animation_player.eo.h>
60#include <canvas/efl_canvas_animation_rotate.eo.h>
61#include <canvas/efl_canvas_animation_scale.eo.h>
62#include <canvas/efl_canvas_animation_translate.eo.h>
63#include <canvas/efl_canvas_event_grabber.eo.h>
64#include <canvas/efl_canvas_group.eo.h>
65#include <canvas/efl_canvas_image.eo.h>
66#include <canvas/efl_canvas_image_internal.eo.h>
67#include <canvas/efl_canvas_polygon.eo.h>
68#include <canvas/efl_canvas_proxy.eo.h>
69#include <canvas/efl_canvas_rectangle.eo.h>
70/* FIXME: this uses EVAS types in its API and is broken.
71#include <canvas/efl_canvas_scene3d.eo.h>
72*/
73#include <canvas/efl_canvas_snapshot.eo.h>
74#include <canvas/efl_canvas_text.eo.h>
75#include <canvas/efl_canvas_text_factory.eo.h>
76#include <canvas/efl_canvas_vg_node.eo.h>
77#include <canvas/efl_canvas_vg_container.eo.h>
78#include <canvas/efl_canvas_vg_gradient.eo.h>
79#include <canvas/efl_canvas_vg_gradient_linear.eo.h>
80#include <canvas/efl_canvas_vg_gradient_radial.eo.h>
81#include <canvas/efl_canvas_vg_image.eo.h>
82#include <canvas/efl_canvas_vg_object.eo.h>
83#include <canvas/efl_canvas_vg_shape.eo.h>
84#include <canvas/efl_gfx_mapping.eo.h>
85
86#include <canvas/efl_input_clickable.eo.h>
87#include <canvas/efl_input_event.eo.h>
88#include <canvas/efl_input_focus.eo.h>
89#include <canvas/efl_input_hold.eo.h>
90#include <canvas/efl_input_interface.eo.h>
91#include <canvas/efl_input_key.eo.h>
92#include <canvas/efl_input_pointer.eo.h>
93#include <canvas/efl_input_state.eo.h>
94
95#include <gesture/efl_canvas_gesture_double_tap.eo.h>
96#include <gesture/efl_canvas_gesture_flick.eo.h>
97#include <gesture/efl_canvas_gesture_long_tap.eo.h>
98#include <gesture/efl_canvas_gesture_momentum.eo.h>
99#include <gesture/efl_canvas_gesture_recognizer_double_tap.eo.h>
100#include <gesture/efl_canvas_gesture_recognizer_flick.eo.h>
101#include <gesture/efl_canvas_gesture_recognizer_long_tap.eo.h>
102#include <gesture/efl_canvas_gesture_recognizer_momentum.eo.h>
103#include <gesture/efl_canvas_gesture_recognizer_tap.eo.h>
104#include <gesture/efl_canvas_gesture_recognizer_triple_tap.eo.h>
105#include <gesture/efl_canvas_gesture_recognizer_zoom.eo.h>
106#include <gesture/efl_canvas_gesture_tap.eo.h>
107#include <gesture/efl_canvas_gesture_triple_tap.eo.h>
108#include <gesture/efl_canvas_gesture_zoom.eo.h>
109#include <gesture/efl_gesture_events.eo.h>
110
111
112#ifdef __cplusplus
113}
114#endif
115#undef EAPI
116#endif
diff --git a/src/lib/evas/meson.build b/src/lib/evas/meson.build
index 3f39e294b5..e1165bebc2 100644
--- a/src/lib/evas/meson.build
+++ b/src/lib/evas/meson.build
@@ -85,6 +85,7 @@ evas_header_src = [
85 'Evas_GL.h', 85 'Evas_GL.h',
86 'Evas_Legacy.h', 86 'Evas_Legacy.h',
87 'Evas_Loader.h', 87 'Evas_Loader.h',
88 'Efl_Canvas.h',
88] 89]
89 90
90evas_include_directories += [ 91evas_include_directories += [
diff --git a/src/tests/evas/efl_test_canvas.c b/src/tests/evas/efl_test_canvas.c
new file mode 100644
index 0000000000..3621e4cd5a
--- /dev/null
+++ b/src/tests/evas/efl_test_canvas.c
@@ -0,0 +1,2 @@
1#undef EFL_BETA_API_SUPPORT
2#include "Efl_Canvas.h"
diff --git a/src/tests/evas/efl_test_canvas2.c b/src/tests/evas/efl_test_canvas2.c
new file mode 100644
index 0000000000..5d7eaa36c1
--- /dev/null
+++ b/src/tests/evas/efl_test_canvas2.c
@@ -0,0 +1,2 @@
1#define EFL_NOLEGACY_API_SUPPORT
2#include "Efl_Canvas.h"
diff --git a/src/tests/evas/efl_test_canvas3.c b/src/tests/evas/efl_test_canvas3.c
new file mode 100644
index 0000000000..317c472c58
--- /dev/null
+++ b/src/tests/evas/efl_test_canvas3.c
@@ -0,0 +1,2 @@
1//#define EFL_BETA_API_SUPPORT defined by build system already
2#include "Efl_Canvas.h"
diff --git a/src/tests/evas/meson.build b/src/tests/evas/meson.build
index 602a9b9f16..62d744a5db 100644
--- a/src/tests/evas/meson.build
+++ b/src/tests/evas/meson.build
@@ -17,7 +17,10 @@ evas_suite_src = [
17 'evas_test_focus.c', 17 'evas_test_focus.c',
18 'evas_test_events.c', 18 'evas_test_events.c',
19 'evas_tests_helpers.h', 19 'evas_tests_helpers.h',
20 'evas_suite.h' 20 'evas_suite.h',
21 'efl_test_canvas.c',
22 'efl_test_canvas2.c',
23 'efl_test_canvas3.c',
21] 24]
22 25
23evas_suite = executable('evas_suite', 26evas_suite = executable('evas_suite',