summaryrefslogtreecommitdiff
path: root/src/lib/efl
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2018-11-23 19:30:36 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2018-11-23 21:43:54 +0900
commit6cc7c1b83043ee0fed40a6bd130b56a8516ecf60 (patch)
tree90d456fe5abc92cb694dfa6649a8bbc1a5b08457 /src/lib/efl
parent424bd60084cc5906a3375a1a38ffba9066f5ff73 (diff)
efl_interpolator: change Efl.Interpolator class to interface
Since Efl.Interpolator's subclasses are used as interpolator class, Efl.Interpolator class is changed to be an interface. This change allows Efl.Canvas.Animation to have Efl.Interpolator as its property in efl_canvas_animation.eo.
Diffstat (limited to 'src/lib/efl')
-rw-r--r--src/lib/efl/CMakeLists.txt1
-rw-r--r--src/lib/efl/Efl.h1
-rw-r--r--src/lib/efl/interfaces/efl_interfaces_main.c1
-rw-r--r--src/lib/efl/interfaces/efl_interpolator.eo13
-rw-r--r--src/lib/efl/interfaces/meson.build1
5 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/efl/CMakeLists.txt b/src/lib/efl/CMakeLists.txt
index 0c03b5c672..7f1672907a 100644
--- a/src/lib/efl/CMakeLists.txt
+++ b/src/lib/efl/CMakeLists.txt
@@ -29,6 +29,7 @@ set(PUBLIC_EO_FILES
29 interfaces/efl_image_load.eo 29 interfaces/efl_image_load.eo
30 interfaces/efl_input_device.eo 30 interfaces/efl_input_device.eo
31 interfaces/efl_input_types.eot 31 interfaces/efl_input_types.eot
32 interfaces/efl_interpolator.eo
32 interfaces/efl_io_buffer.eo 33 interfaces/efl_io_buffer.eo
33 interfaces/efl_io_closer.eo 34 interfaces/efl_io_closer.eo
34 interfaces/efl_io_positioner.eo 35 interfaces/efl_io_positioner.eo
diff --git a/src/lib/efl/Efl.h b/src/lib/efl/Efl.h
index 6cebb21dae..8548ac95c8 100644
--- a/src/lib/efl/Efl.h
+++ b/src/lib/efl/Efl.h
@@ -117,6 +117,7 @@ typedef Efl_Gfx_Path_Command_Type Efl_Gfx_Path_Command;
117 117
118/* Core interface */ 118/* Core interface */
119#include "interfaces/efl_animator.eo.h" 119#include "interfaces/efl_animator.eo.h"
120#include "interfaces/efl_interpolator.eo.h"
120 121
121/* Graphics */ 122/* Graphics */
122#include "interfaces/efl_gfx_entity.eo.h" 123#include "interfaces/efl_gfx_entity.eo.h"
diff --git a/src/lib/efl/interfaces/efl_interfaces_main.c b/src/lib/efl/interfaces/efl_interfaces_main.c
index f5b8634d68..a21d7505aa 100644
--- a/src/lib/efl/interfaces/efl_interfaces_main.c
+++ b/src/lib/efl/interfaces/efl_interfaces_main.c
@@ -61,6 +61,7 @@
61 61
62#include "interfaces/efl_model.eo.c" 62#include "interfaces/efl_model.eo.c"
63#include "interfaces/efl_animator.eo.c" 63#include "interfaces/efl_animator.eo.c"
64#include "interfaces/efl_interpolator.eo.c"
64#include "interfaces/efl_orientation.eo.c" 65#include "interfaces/efl_orientation.eo.c"
65#include "interfaces/efl_ui_base.eo.c" 66#include "interfaces/efl_ui_base.eo.c"
66#include "interfaces/efl_ui_direction.eo.c" 67#include "interfaces/efl_ui_direction.eo.c"
diff --git a/src/lib/efl/interfaces/efl_interpolator.eo b/src/lib/efl/interfaces/efl_interpolator.eo
new file mode 100644
index 0000000000..4c25d9c026
--- /dev/null
+++ b/src/lib/efl/interfaces/efl_interpolator.eo
@@ -0,0 +1,13 @@
1interface Efl.Interpolator ()
2{
3 [[Efl interpolator interface]]
4 methods {
5 interpolate {
6 [[Interpolate the given value.]]
7 return: double; [[Output value calculated by interpolating the input value.]]
8 params {
9 @in progress: double; [[Input value mapped from 0.0 to 1.0.]]
10 }
11 }
12 }
13}
diff --git a/src/lib/efl/interfaces/meson.build b/src/lib/efl/interfaces/meson.build
index 012bc12ff2..03d88e2aac 100644
--- a/src/lib/efl/interfaces/meson.build
+++ b/src/lib/efl/interfaces/meson.build
@@ -71,6 +71,7 @@ pub_eo_files = [
71 'efl_gfx_size_hint.eo', 71 'efl_gfx_size_hint.eo',
72 'efl_model.eo', 72 'efl_model.eo',
73 'efl_animator.eo', 73 'efl_animator.eo',
74 'efl_interpolator.eo',
74 'efl_orientation.eo', 75 'efl_orientation.eo',
75 'efl_container.eo', 76 'efl_container.eo',
76 'efl_content.eo', 77 'efl_content.eo',