lib/ecore/efl_io_file.eo \
lib/ecore/efl_io_copier.eo \
lib/ecore/efl_io_buffered_stream.eo \
- lib/ecore/efl_interpolator_linear.eo \
- lib/ecore/efl_interpolator_accelerate.eo \
- lib/ecore/efl_interpolator_decelerate.eo \
- lib/ecore/efl_interpolator_sinusoidal.eo \
- lib/ecore/efl_interpolator_divisor.eo \
- lib/ecore/efl_interpolator_bounce.eo \
- lib/ecore/efl_interpolator_spring.eo \
- lib/ecore/efl_interpolator_cubic_bezier.eo \
+ lib/ecore/efl_linear_interpolator.eo \
+ lib/ecore/efl_accelerate_interpolator.eo \
+ lib/ecore/efl_decelerate_interpolator.eo \
+ lib/ecore/efl_sinusoidal_interpolator.eo \
+ lib/ecore/efl_divisor_interpolator.eo \
+ lib/ecore/efl_bounce_interpolator.eo \
+ lib/ecore/efl_spring_interpolator.eo \
+ lib/ecore/efl_cubic_bezier_interpolator.eo \
lib/ecore/efl_model_item.eo \
lib/ecore/efl_model_container.eo \
lib/ecore/efl_model_container_item.eo \
lib/ecore/efl_model_composite_selection.c \
lib/ecore/efl_model_accessor_view.c \
lib/ecore/efl_model_accessor_view_private.h \
-lib/ecore/efl_interpolator_linear.c \
-lib/ecore/efl_interpolator_accelerate.c \
-lib/ecore/efl_interpolator_decelerate.c \
-lib/ecore/efl_interpolator_sinusoidal.c \
-lib/ecore/efl_interpolator_divisor.c \
-lib/ecore/efl_interpolator_bounce.c \
-lib/ecore/efl_interpolator_spring.c \
-lib/ecore/efl_interpolator_cubic_bezier.c \
+lib/ecore/efl_linear_interpolator.c \
+lib/ecore/efl_accelerate_interpolator.c \
+lib/ecore/efl_decelerate_interpolator.c \
+lib/ecore/efl_sinusoidal_interpolator.c \
+lib/ecore/efl_divisor_interpolator.c \
+lib/ecore/efl_bounce_interpolator.c \
+lib/ecore/efl_spring_interpolator.c \
+lib/ecore/efl_cubic_bezier_interpolator.c \
lib/ecore/efl_task.c \
lib/ecore/efl_exe.c \
lib/ecore/efl_thread.c \
if (index == 0)
{
- interp = efl_add(EFL_INTERPOLATOR_LINEAR_CLASS, win);
+ interp = efl_add(EFL_LINEAR_INTERPOLATOR_CLASS, win);
}
else if (index == 1)
{
- interp = efl_add(EFL_INTERPOLATOR_SINUSOIDAL_CLASS, win);
- efl_interpolator_sinusoidal_factor_set(interp, 1.0);
+ interp = efl_add(EFL_SINUSOIDAL_INTERPOLATOR_CLASS, win);
+ efl_sinusoidal_interpolator_factor_set(interp, 1.0);
}
else if (index == 2)
{
- interp = efl_add(EFL_INTERPOLATOR_DECELERATE_CLASS, win);
- efl_interpolator_decelerate_factor_set(interp, 1.0);
+ interp = efl_add(EFL_DECELERATE_INTERPOLATOR_CLASS, win);
+ efl_decelerate_interpolator_factor_set(interp, 1.0);
}
else if (index == 3)
{
- interp = efl_add(EFL_INTERPOLATOR_ACCELERATE_CLASS, win);
- efl_interpolator_accelerate_factor_set(interp, 1.0);
+ interp = efl_add(EFL_ACCELERATE_INTERPOLATOR_CLASS, win);
+ efl_accelerate_interpolator_factor_set(interp, 1.0);
}
else if (index == 4)
{
- interp = efl_add(EFL_INTERPOLATOR_DIVISOR_CLASS, win);
- efl_interpolator_divisor_factors_set(interp, 1.0, 1.0);
+ interp = efl_add(EFL_DIVISOR_INTERPOLATOR_CLASS, win);
+ efl_divisor_interpolator_factors_set(interp, 1.0, 1.0);
}
else if (index == 5)
{
- interp = efl_add(EFL_INTERPOLATOR_BOUNCE_CLASS, win);
- efl_interpolator_bounce_factors_set(interp, 1.0, 1.0);
+ interp = efl_add(EFL_BOUNCE_INTERPOLATOR_CLASS, win);
+ efl_bounce_interpolator_factors_set(interp, 1.0, 1.0);
}
else if (index == 6)
{
- interp = efl_add(EFL_INTERPOLATOR_SPRING_CLASS, win);
- efl_interpolator_spring_factors_set(interp, 1.0, 1.0);
+ interp = efl_add(EFL_SPRING_INTERPOLATOR_CLASS, win);
+ efl_spring_interpolator_factors_set(interp, 1.0, 1.0);
}
return interp;
efl_loop_timer.eo
efl_loop_user.eo
efl_promise.eo
- efl_interpolator_linear.eo
- efl_interpolator_accelerate.eo
- efl_interpolator_decelerate.eo
- efl_interpolator_sinusoidal.eo
- efl_interpolator_divisor.eo
- efl_interpolator_bounce.eo
- efl_interpolator_spring.eo
- efl_interpolator_cubic_bezier.eo
+ efl_linear_interpolator.eo
+ efl_accelerate_interpolator.eo
+ efl_decelerate_interpolator.eo
+ efl_sinusoidal_interpolator.eo
+ efl_divisor_interpolator.eo
+ efl_bounce_interpolator.eo
+ efl_spring_interpolator.eo
+ efl_cubic_bezier_interpolator.eo
)
set(PUBLIC_HEADERS
#include "efl_loop_fd.eo.h"
#include "efl_loop_handler.eo.h"
-#include "efl_interpolator_linear.eo.h"
-#include "efl_interpolator_accelerate.eo.h"
-#include "efl_interpolator_decelerate.eo.h"
-#include "efl_interpolator_sinusoidal.eo.h"
-#include "efl_interpolator_divisor.eo.h"
-#include "efl_interpolator_bounce.eo.h"
-#include "efl_interpolator_spring.eo.h"
-#include "efl_interpolator_cubic_bezier.eo.h"
+#include "efl_linear_interpolator.eo.h"
+#include "efl_accelerate_interpolator.eo.h"
+#include "efl_decelerate_interpolator.eo.h"
+#include "efl_sinusoidal_interpolator.eo.h"
+#include "efl_divisor_interpolator.eo.h"
+#include "efl_bounce_interpolator.eo.h"
+#include "efl_spring_interpolator.eo.h"
+#include "efl_cubic_bezier_interpolator.eo.h"
/* We ue the factory pattern here, so you shouldn't call eo_add directly. */
EAPI Eo *efl_main_loop_get(void);
--- /dev/null
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include "Ecore.h"
+#include "ecore_private.h"
+
+#define MY_CLASS EFL_ACCELERATE_INTERPOLATOR_CLASS
+
+typedef struct _Efl_Accelerate_Interpolator_Data Efl_Accelerate_Interpolator_Data;
+
+struct _Efl_Accelerate_Interpolator_Data
+{
+ double factor;
+};
+
+EOLIAN static double
+_efl_accelerate_interpolator_efl_interpolator_interpolate(Eo *eo_obj EINA_UNUSED,
+ Efl_Accelerate_Interpolator_Data *pd EINA_UNUSED,
+ double progress)
+{
+ if ((progress < 0.0) || (progress > 1.0))
+ return progress;
+
+ return ecore_animator_pos_map(progress, ECORE_POS_MAP_ACCELERATE_FACTOR,
+ pd->factor, 0);
+}
+
+EOLIAN static void
+_efl_accelerate_interpolator_factor_set(Eo *eo_obj EINA_UNUSED,
+ Efl_Accelerate_Interpolator_Data *pd,
+ double factor)
+{
+ pd->factor = factor;
+}
+
+EOLIAN static double
+_efl_accelerate_interpolator_factor_get(const Eo *eo_obj EINA_UNUSED,
+ Efl_Accelerate_Interpolator_Data *pd EINA_UNUSED)
+{
+ return pd->factor;
+}
+
+EOLIAN static Efl_Object *
+_efl_accelerate_interpolator_efl_object_constructor(Eo *eo_obj,
+ Efl_Accelerate_Interpolator_Data *pd)
+{
+ eo_obj = efl_constructor(efl_super(eo_obj, MY_CLASS));
+
+ pd->factor = 1.0;
+
+ return eo_obj;
+}
+
+#include "efl_accelerate_interpolator.eo.c"
-class Efl.Interpolator_Accelerate (Efl.Object, Efl.Interpolator)
+class Efl.Accelerate_Interpolator (Efl.Object, Efl.Interpolator)
{
[[Efl accelerate interpolator class
output = 1 - sin(Pi / 2 + input * Pi / 2);
]]
- data: Efl_Interpolator_Accelerate_Data;
+ data: Efl_Accelerate_Interpolator_Data;
methods {
@property factor {
[[Factor property]]
#include "Ecore.h"
#include "ecore_private.h"
-#define MY_CLASS EFL_INTERPOLATOR_BOUNCE_CLASS
+#define MY_CLASS EFL_BOUNCE_INTERPOLATOR_CLASS
-typedef struct _Efl_Interpolator_Bounce_Data Efl_Interpolator_Bounce_Data;
+typedef struct _Efl_Bounce_Interpolator_Data Efl_Bounce_Interpolator_Data;
-struct _Efl_Interpolator_Bounce_Data
+struct _Efl_Bounce_Interpolator_Data
{
double factor[2];
};
EOLIAN static double
-_efl_interpolator_bounce_efl_interpolator_interpolate(Eo *eo_obj EINA_UNUSED,
- Efl_Interpolator_Bounce_Data *pd EINA_UNUSED,
+_efl_bounce_interpolator_efl_interpolator_interpolate(Eo *eo_obj EINA_UNUSED,
+ Efl_Bounce_Interpolator_Data *pd EINA_UNUSED,
double progress)
{
if ((progress < 0.0) || (progress > 1.0))
}
EOLIAN static void
-_efl_interpolator_bounce_factors_set(Eo *eo_obj EINA_UNUSED,
- Efl_Interpolator_Bounce_Data *pd,
+_efl_bounce_interpolator_factors_set(Eo *eo_obj EINA_UNUSED,
+ Efl_Bounce_Interpolator_Data *pd,
double factor1, double factor2)
{
pd->factor[0] = factor1;
}
EOLIAN static void
-_efl_interpolator_bounce_factors_get(const Eo *eo_obj EINA_UNUSED,
- Efl_Interpolator_Bounce_Data *pd,
+_efl_bounce_interpolator_factors_get(const Eo *eo_obj EINA_UNUSED,
+ Efl_Bounce_Interpolator_Data *pd,
double *factor1, double *factor2)
{
if (factor1)
}
EOLIAN static Efl_Object *
-_efl_interpolator_bounce_efl_object_constructor(Eo *eo_obj,
- Efl_Interpolator_Bounce_Data *pd)
+_efl_bounce_interpolator_efl_object_constructor(Eo *eo_obj,
+ Efl_Bounce_Interpolator_Data *pd)
{
eo_obj = efl_constructor(efl_super(eo_obj, MY_CLASS));
return eo_obj;
}
-#include "efl_interpolator_bounce.eo.c"
+#include "efl_bounce_interpolator.eo.c"
-class Efl.Interpolator_Bounce (Efl.Object, Efl.Interpolator)
+class Efl.Bounce_Interpolator (Efl.Object, Efl.Interpolator)
{
[[Efl bounce interpolator class]]
- data: Efl_Interpolator_Bounce_Data;
+ data: Efl_Bounce_Interpolator_Data;
methods {
@property factors {
[[Factors property]]
#include "Ecore.h"
#include "ecore_private.h"
-#define MY_CLASS EFL_INTERPOLATOR_CUBIC_BEZIER_CLASS
+#define MY_CLASS EFL_CUBIC_BEZIER_INTERPOLATOR_CLASS
-typedef struct _Efl_Interpolator_Cubic_Bezier_Data Efl_Interpolator_Cubic_Bezier_Data;
+typedef struct _Efl_Cubic_Bezier_Interpolator_Data Efl_Cubic_Bezier_Interpolator_Data;
-struct _Efl_Interpolator_Cubic_Bezier_Data
+struct _Efl_Cubic_Bezier_Interpolator_Data
{
double factor[4];
};
EOLIAN static double
-_efl_interpolator_cubic_bezier_efl_interpolator_interpolate(Eo *eo_obj EINA_UNUSED,
- Efl_Interpolator_Cubic_Bezier_Data *pd EINA_UNUSED,
+_efl_cubic_bezier_interpolator_efl_interpolator_interpolate(Eo *eo_obj EINA_UNUSED,
+ Efl_Cubic_Bezier_Interpolator_Data *pd EINA_UNUSED,
double progress)
{
if ((progress < 0.0) || (progress > 1.0))
}
EOLIAN static void
-_efl_interpolator_cubic_bezier_factors_set(Eo *eo_obj EINA_UNUSED,
- Efl_Interpolator_Cubic_Bezier_Data *pd,
+_efl_cubic_bezier_interpolator_factors_set(Eo *eo_obj EINA_UNUSED,
+ Efl_Cubic_Bezier_Interpolator_Data *pd,
double factor1, double factor2,
double factor3, double factor4)
{
}
EOLIAN static void
-_efl_interpolator_cubic_bezier_factors_get(const Eo *eo_obj EINA_UNUSED,
- Efl_Interpolator_Cubic_Bezier_Data *pd,
+_efl_cubic_bezier_interpolator_factors_get(const Eo *eo_obj EINA_UNUSED,
+ Efl_Cubic_Bezier_Interpolator_Data *pd,
double *factor1, double *factor2,
double *factor3, double *factor4)
{
}
EOLIAN static Efl_Object *
-_efl_interpolator_cubic_bezier_efl_object_constructor(Eo *eo_obj,
- Efl_Interpolator_Cubic_Bezier_Data *pd)
+_efl_cubic_bezier_interpolator_efl_object_constructor(Eo *eo_obj,
+ Efl_Cubic_Bezier_Interpolator_Data *pd)
{
eo_obj = efl_constructor(efl_super(eo_obj, MY_CLASS));
return eo_obj;
}
-#include "efl_interpolator_cubic_bezier.eo.c"
+#include "efl_cubic_bezier_interpolator.eo.c"
-class Efl.Interpolator_Cubic_Bezier (Efl.Object, Efl.Interpolator)
+class Efl.Cubic_Bezier_Interpolator (Efl.Object, Efl.Interpolator)
{
[[Efl cubic_bezier interpolator class]]
- data: Efl_Interpolator_Cubic_Bezier_Data;
+ data: Efl_Cubic_Bezier_Interpolator_Data;
methods {
@property factors {
[[Factors property]]
--- /dev/null
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include "Ecore.h"
+#include "ecore_private.h"
+
+#define MY_CLASS EFL_DECELERATE_INTERPOLATOR_CLASS
+
+typedef struct _Efl_Decelerate_Interpolator_Data Efl_Decelerate_Interpolator_Data;
+
+struct _Efl_Decelerate_Interpolator_Data
+{
+ double factor;
+};
+
+EOLIAN static double
+_efl_decelerate_interpolator_efl_interpolator_interpolate(Eo *eo_obj EINA_UNUSED,
+ Efl_Decelerate_Interpolator_Data *pd EINA_UNUSED,
+ double progress)
+{
+ if ((progress < 0.0) || (progress > 1.0))
+ return progress;
+
+ return ecore_animator_pos_map(progress, ECORE_POS_MAP_DECELERATE_FACTOR,
+ pd->factor, 0);
+}
+
+EOLIAN static void
+_efl_decelerate_interpolator_factor_set(Eo *eo_obj EINA_UNUSED,
+ Efl_Decelerate_Interpolator_Data *pd,
+ double factor)
+{
+ pd->factor = factor;
+}
+
+EOLIAN static double
+_efl_decelerate_interpolator_factor_get(const Eo *eo_obj EINA_UNUSED,
+ Efl_Decelerate_Interpolator_Data *pd EINA_UNUSED)
+{
+ return pd->factor;
+}
+
+EOLIAN static Efl_Object *
+_efl_decelerate_interpolator_efl_object_constructor(Eo *eo_obj,
+ Efl_Decelerate_Interpolator_Data *pd)
+{
+ eo_obj = efl_constructor(efl_super(eo_obj, MY_CLASS));
+
+ pd->factor = 1.0;
+
+ return eo_obj;
+}
+
+#include "efl_decelerate_interpolator.eo.c"
-class Efl.Interpolator_Decelerate (Efl.Object, Efl.Interpolator)
+class Efl.Decelerate_Interpolator (Efl.Object, Efl.Interpolator)
{
[[Efl decelerate interpolator class
output = sin(input * Pi / 2);
]]
- data: Efl_Interpolator_Decelerate_Data;
+ data: Efl_Decelerate_Interpolator_Data;
methods {
@property factor {
[[Factor property]]
#include "Ecore.h"
#include "ecore_private.h"
-#define MY_CLASS EFL_INTERPOLATOR_DIVISOR_CLASS
+#define MY_CLASS EFL_DIVISOR_INTERPOLATOR_CLASS
-typedef struct _Efl_Interpolator_Divisor_Data Efl_Interpolator_Divisor_Data;
+typedef struct _Efl_Divisor_Interpolator_Data Efl_Divisor_Interpolator_Data;
-struct _Efl_Interpolator_Divisor_Data
+struct _Efl_Divisor_Interpolator_Data
{
double factor[2];
};
EOLIAN static double
-_efl_interpolator_divisor_efl_interpolator_interpolate(Eo *eo_obj EINA_UNUSED,
- Efl_Interpolator_Divisor_Data *pd EINA_UNUSED,
+_efl_divisor_interpolator_efl_interpolator_interpolate(Eo *eo_obj EINA_UNUSED,
+ Efl_Divisor_Interpolator_Data *pd EINA_UNUSED,
double progress)
{
if ((progress < 0.0) || (progress > 1.0))
}
EOLIAN static void
-_efl_interpolator_divisor_factors_set(Eo *eo_obj EINA_UNUSED,
- Efl_Interpolator_Divisor_Data *pd,
+_efl_divisor_interpolator_factors_set(Eo *eo_obj EINA_UNUSED,
+ Efl_Divisor_Interpolator_Data *pd,
double factor1, double factor2)
{
pd->factor[0] = factor1;
}
EOLIAN static void
-_efl_interpolator_divisor_factors_get(const Eo *eo_obj EINA_UNUSED,
- Efl_Interpolator_Divisor_Data *pd,
+_efl_divisor_interpolator_factors_get(const Eo *eo_obj EINA_UNUSED,
+ Efl_Divisor_Interpolator_Data *pd,
double *factor1, double *factor2)
{
if (factor1)
}
EOLIAN static Efl_Object *
-_efl_interpolator_divisor_efl_object_constructor(Eo *eo_obj,
- Efl_Interpolator_Divisor_Data *pd)
+_efl_divisor_interpolator_efl_object_constructor(Eo *eo_obj,
+ Efl_Divisor_Interpolator_Data *pd)
{
eo_obj = efl_constructor(efl_super(eo_obj, MY_CLASS));
return eo_obj;
}
-#include "efl_interpolator_divisor.eo.c"
+#include "efl_divisor_interpolator.eo.c"
-class Efl.Interpolator_Divisor (Efl.Object, Efl.Interpolator)
+class Efl.Divisor_Interpolator (Efl.Object, Efl.Interpolator)
{
[[Efl divisor interpolator class]]
- data: Efl_Interpolator_Divisor_Data;
+ data: Efl_Divisor_Interpolator_Data;
methods {
@property factors {
[[Factors property]]
+++ /dev/null
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "Ecore.h"
-#include "ecore_private.h"
-
-#define MY_CLASS EFL_INTERPOLATOR_ACCELERATE_CLASS
-
-typedef struct _Efl_Interpolator_Accelerate_Data Efl_Interpolator_Accelerate_Data;
-
-struct _Efl_Interpolator_Accelerate_Data
-{
- double factor;
-};
-
-EOLIAN static double
-_efl_interpolator_accelerate_efl_interpolator_interpolate(Eo *eo_obj EINA_UNUSED,
- Efl_Interpolator_Accelerate_Data *pd EINA_UNUSED,
- double progress)
-{
- if ((progress < 0.0) || (progress > 1.0))
- return progress;
-
- return ecore_animator_pos_map(progress, ECORE_POS_MAP_ACCELERATE_FACTOR,
- pd->factor, 0);
-}
-
-EOLIAN static void
-_efl_interpolator_accelerate_factor_set(Eo *eo_obj EINA_UNUSED,
- Efl_Interpolator_Accelerate_Data *pd,
- double factor)
-{
- pd->factor = factor;
-}
-
-EOLIAN static double
-_efl_interpolator_accelerate_factor_get(const Eo *eo_obj EINA_UNUSED,
- Efl_Interpolator_Accelerate_Data *pd EINA_UNUSED)
-{
- return pd->factor;
-}
-
-EOLIAN static Efl_Object *
-_efl_interpolator_accelerate_efl_object_constructor(Eo *eo_obj,
- Efl_Interpolator_Accelerate_Data *pd)
-{
- eo_obj = efl_constructor(efl_super(eo_obj, MY_CLASS));
-
- pd->factor = 1.0;
-
- return eo_obj;
-}
-
-#include "efl_interpolator_accelerate.eo.c"
+++ /dev/null
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "Ecore.h"
-#include "ecore_private.h"
-
-#define MY_CLASS EFL_INTERPOLATOR_DECELERATE_CLASS
-
-typedef struct _Efl_Interpolator_Decelerate_Data Efl_Interpolator_Decelerate_Data;
-
-struct _Efl_Interpolator_Decelerate_Data
-{
- double factor;
-};
-
-EOLIAN static double
-_efl_interpolator_decelerate_efl_interpolator_interpolate(Eo *eo_obj EINA_UNUSED,
- Efl_Interpolator_Decelerate_Data *pd EINA_UNUSED,
- double progress)
-{
- if ((progress < 0.0) || (progress > 1.0))
- return progress;
-
- return ecore_animator_pos_map(progress, ECORE_POS_MAP_DECELERATE_FACTOR,
- pd->factor, 0);
-}
-
-EOLIAN static void
-_efl_interpolator_decelerate_factor_set(Eo *eo_obj EINA_UNUSED,
- Efl_Interpolator_Decelerate_Data *pd,
- double factor)
-{
- pd->factor = factor;
-}
-
-EOLIAN static double
-_efl_interpolator_decelerate_factor_get(const Eo *eo_obj EINA_UNUSED,
- Efl_Interpolator_Decelerate_Data *pd EINA_UNUSED)
-{
- return pd->factor;
-}
-
-EOLIAN static Efl_Object *
-_efl_interpolator_decelerate_efl_object_constructor(Eo *eo_obj,
- Efl_Interpolator_Decelerate_Data *pd)
-{
- eo_obj = efl_constructor(efl_super(eo_obj, MY_CLASS));
-
- pd->factor = 1.0;
-
- return eo_obj;
-}
-
-#include "efl_interpolator_decelerate.eo.c"
+++ /dev/null
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "Ecore.h"
-#include "ecore_private.h"
-
-#define MY_CLASS EFL_INTERPOLATOR_LINEAR_CLASS
-
-typedef struct _Efl_Interpolator_Linear_Data Efl_Interpolator_Linear_Data;
-
-struct _Efl_Interpolator_Linear_Data
-{
-};
-
-EOLIAN static double
-_efl_interpolator_linear_efl_interpolator_interpolate(Eo *eo_obj EINA_UNUSED,
- Efl_Interpolator_Linear_Data *pd EINA_UNUSED,
- double progress)
-{
- if ((progress < 0.0) || (progress > 1.0))
- return progress;
-
- return ecore_animator_pos_map(progress, ECORE_POS_MAP_LINEAR, 0, 0);
-}
-
-#include "efl_interpolator_linear.eo.c"
+++ /dev/null
-class Efl.Interpolator_Linear (Efl.Object, Efl.Interpolator)
-{
- [[Efl linear interpolator class]]
- data: Efl_Interpolator_Linear_Data;
- implements {
- Efl.Interpolator.interpolate;
- }
-}
+++ /dev/null
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "Ecore.h"
-#include "ecore_private.h"
-
-#define MY_CLASS EFL_INTERPOLATOR_SINUSOIDAL_CLASS
-
-typedef struct _Efl_Interpolator_Sinusoidal_Data Efl_Interpolator_Sinusoidal_Data;
-
-struct _Efl_Interpolator_Sinusoidal_Data
-{
- double factor;
-};
-
-EOLIAN static double
-_efl_interpolator_sinusoidal_efl_interpolator_interpolate(Eo *eo_obj EINA_UNUSED,
- Efl_Interpolator_Sinusoidal_Data *pd EINA_UNUSED,
- double progress)
-{
- if ((progress < 0.0) || (progress > 1.0))
- return progress;
-
- return ecore_animator_pos_map(progress, ECORE_POS_MAP_SINUSOIDAL_FACTOR,
- pd->factor, 0);
-}
-
-EOLIAN static void
-_efl_interpolator_sinusoidal_factor_set(Eo *eo_obj EINA_UNUSED,
- Efl_Interpolator_Sinusoidal_Data *pd,
- double factor)
-{
- pd->factor = factor;
-}
-
-EOLIAN static double
-_efl_interpolator_sinusoidal_factor_get(const Eo *eo_obj EINA_UNUSED,
- Efl_Interpolator_Sinusoidal_Data *pd EINA_UNUSED)
-{
- return pd->factor;
-}
-
-EOLIAN static Efl_Object *
-_efl_interpolator_sinusoidal_efl_object_constructor(Eo *eo_obj,
- Efl_Interpolator_Sinusoidal_Data *pd)
-{
- eo_obj = efl_constructor(efl_super(eo_obj, MY_CLASS));
-
- pd->factor = 1.0;
-
- return eo_obj;
-}
-
-#include "efl_interpolator_sinusoidal.eo.c"
--- /dev/null
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include "Ecore.h"
+#include "ecore_private.h"
+
+#define MY_CLASS EFL_LINEAR_INTERPOLATOR_CLASS
+
+typedef struct _Efl_Linear_Interpolator_Data Efl_Linear_Interpolator_Data;
+
+struct _Efl_Linear_Interpolator_Data
+{
+};
+
+EOLIAN static double
+_efl_linear_interpolator_efl_interpolator_interpolate(Eo *eo_obj EINA_UNUSED,
+ Efl_Linear_Interpolator_Data *pd EINA_UNUSED,
+ double progress)
+{
+ if ((progress < 0.0) || (progress > 1.0))
+ return progress;
+
+ return ecore_animator_pos_map(progress, ECORE_POS_MAP_LINEAR, 0, 0);
+}
+
+#include "efl_linear_interpolator.eo.c"
--- /dev/null
+class Efl.Linear_Interpolator (Efl.Object, Efl.Interpolator)
+{
+ [[Efl linear interpolator class]]
+ data: Efl_Linear_Interpolator_Data;
+ implements {
+ Efl.Interpolator.interpolate;
+ }
+}
--- /dev/null
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include "Ecore.h"
+#include "ecore_private.h"
+
+#define MY_CLASS EFL_SINUSOIDAL_INTERPOLATOR_CLASS
+
+typedef struct _Efl_Sinusoidal_Interpolator_Data Efl_Sinusoidal_Interpolator_Data;
+
+struct _Efl_Sinusoidal_Interpolator_Data
+{
+ double factor;
+};
+
+EOLIAN static double
+_efl_sinusoidal_interpolator_efl_interpolator_interpolate(Eo *eo_obj EINA_UNUSED,
+ Efl_Sinusoidal_Interpolator_Data *pd EINA_UNUSED,
+ double progress)
+{
+ if ((progress < 0.0) || (progress > 1.0))
+ return progress;
+
+ return ecore_animator_pos_map(progress, ECORE_POS_MAP_SINUSOIDAL_FACTOR,
+ pd->factor, 0);
+}
+
+EOLIAN static void
+_efl_sinusoidal_interpolator_factor_set(Eo *eo_obj EINA_UNUSED,
+ Efl_Sinusoidal_Interpolator_Data *pd,
+ double factor)
+{
+ pd->factor = factor;
+}
+
+EOLIAN static double
+_efl_sinusoidal_interpolator_factor_get(const Eo *eo_obj EINA_UNUSED,
+ Efl_Sinusoidal_Interpolator_Data *pd EINA_UNUSED)
+{
+ return pd->factor;
+}
+
+EOLIAN static Efl_Object *
+_efl_sinusoidal_interpolator_efl_object_constructor(Eo *eo_obj,
+ Efl_Sinusoidal_Interpolator_Data *pd)
+{
+ eo_obj = efl_constructor(efl_super(eo_obj, MY_CLASS));
+
+ pd->factor = 1.0;
+
+ return eo_obj;
+}
+
+#include "efl_sinusoidal_interpolator.eo.c"
-class Efl.Interpolator_Sinusoidal (Efl.Object, Efl.Interpolator)
+class Efl.Sinusoidal_Interpolator (Efl.Object, Efl.Interpolator)
{
[[Efl sinusoidal interpolator class
output = (1 - cos(input * Pi)) / 2;
]]
- data: Efl_Interpolator_Sinusoidal_Data;
+ data: Efl_Sinusoidal_Interpolator_Data;
methods {
@property factor {
[[Factor property]]
#include "Ecore.h"
#include "ecore_private.h"
-#define MY_CLASS EFL_INTERPOLATOR_SPRING_CLASS
+#define MY_CLASS EFL_SPRING_INTERPOLATOR_CLASS
-typedef struct _Efl_Interpolator_Spring_Data Efl_Interpolator_Spring_Data;
+typedef struct _Efl_Spring_Interpolator_Data Efl_Spring_Interpolator_Data;
-struct _Efl_Interpolator_Spring_Data
+struct _Efl_Spring_Interpolator_Data
{
double factor[2];
};
EOLIAN static double
-_efl_interpolator_spring_efl_interpolator_interpolate(Eo *obj EINA_UNUSED,
- Efl_Interpolator_Spring_Data *pd EINA_UNUSED,
+_efl_spring_interpolator_efl_interpolator_interpolate(Eo *obj EINA_UNUSED,
+ Efl_Spring_Interpolator_Data *pd EINA_UNUSED,
double progress)
{
if ((progress < 0.0) || (progress > 1.0))
}
EOLIAN static void
-_efl_interpolator_spring_factors_set(Eo *eo_obj EINA_UNUSED,
- Efl_Interpolator_Spring_Data *pd,
+_efl_spring_interpolator_factors_set(Eo *eo_obj EINA_UNUSED,
+ Efl_Spring_Interpolator_Data *pd,
double factor1, double factor2)
{
pd->factor[0] = factor1;
}
EOLIAN static void
-_efl_interpolator_spring_factors_get(const Eo *eo_obj EINA_UNUSED,
- Efl_Interpolator_Spring_Data *pd,
+_efl_spring_interpolator_factors_get(const Eo *eo_obj EINA_UNUSED,
+ Efl_Spring_Interpolator_Data *pd,
double *factor1, double *factor2)
{
if (factor1)
}
EOLIAN static Efl_Object *
-_efl_interpolator_spring_efl_object_constructor(Eo *eo_obj,
- Efl_Interpolator_Spring_Data *pd)
+_efl_spring_interpolator_efl_object_constructor(Eo *eo_obj,
+ Efl_Spring_Interpolator_Data *pd)
{
eo_obj = efl_constructor(efl_super(eo_obj, MY_CLASS));
return eo_obj;
}
-#include "efl_interpolator_spring.eo.c"
+#include "efl_spring_interpolator.eo.c"
-class Efl.Interpolator_Spring (Efl.Object, Efl.Interpolator)
+class Efl.Spring_Interpolator (Efl.Object, Efl.Interpolator)
{
[[Efl spring interpolator class]]
- data: Efl_Interpolator_Spring_Data;
+ data: Efl_Spring_Interpolator_Data;
methods {
@property factors {
[[Factors property]]
'efl_io_file.eo',
'efl_io_copier.eo',
'efl_io_buffered_stream.eo',
- 'efl_interpolator_linear.eo',
- 'efl_interpolator_accelerate.eo',
- 'efl_interpolator_decelerate.eo',
- 'efl_interpolator_sinusoidal.eo',
- 'efl_interpolator_divisor.eo',
- 'efl_interpolator_bounce.eo',
- 'efl_interpolator_spring.eo',
- 'efl_interpolator_cubic_bezier.eo',
+ 'efl_linear_interpolator.eo',
+ 'efl_accelerate_interpolator.eo',
+ 'efl_decelerate_interpolator.eo',
+ 'efl_sinusoidal_interpolator.eo',
+ 'efl_divisor_interpolator.eo',
+ 'efl_bounce_interpolator.eo',
+ 'efl_spring_interpolator.eo',
+ 'efl_cubic_bezier_interpolator.eo',
'efl_loop_message_future_handler.eo',
'efl_loop_message_future.eo',
'efl_model_item.eo',
'efl_model_composite_selection.c',
'efl_model_accessor_view.c',
'efl_model_accessor_view_private.h',
- 'efl_interpolator_linear.c',
- 'efl_interpolator_accelerate.c',
- 'efl_interpolator_decelerate.c',
- 'efl_interpolator_sinusoidal.c',
- 'efl_interpolator_divisor.c',
- 'efl_interpolator_bounce.c',
- 'efl_interpolator_spring.c',
- 'efl_interpolator_cubic_bezier.c',
+ 'efl_linear_interpolator.c',
+ 'efl_accelerate_interpolator.c',
+ 'efl_decelerate_interpolator.c',
+ 'efl_sinusoidal_interpolator.c',
+ 'efl_divisor_interpolator.c',
+ 'efl_bounce_interpolator.c',
+ 'efl_spring_interpolator.c',
+ 'efl_cubic_bezier_interpolator.c',
'ecore_main_timechanges.c',
'ecore_pipe.c',
'ecore_poller.c',