Compare commits
84 Commits
master
...
devs/felip
Author | SHA1 | Date |
---|---|---|
|
78fc05ac91 | 9 years ago |
|
d7cfdd0557 | 9 years ago |
|
0afccbf4e1 | 9 years ago |
|
e03125e56d | 9 years ago |
|
c58e2e4047 | 9 years ago |
|
309e04e44a | 9 years ago |
|
ef428b5c31 | 9 years ago |
|
c3e798cfd0 | 9 years ago |
|
bc5d56877e | 9 years ago |
|
3434b132b8 | 9 years ago |
|
2360632b37 | 9 years ago |
|
55a7eae96f | 9 years ago |
|
2a2cc7260c | 9 years ago |
|
c9984a38ad | 9 years ago |
|
428f271bcf | 9 years ago |
|
93c095a3fb | 9 years ago |
|
f097281c9d | 9 years ago |
|
08f95c4bfe | 9 years ago |
|
9dccf53084 | 9 years ago |
|
fb28488bdc | 9 years ago |
|
691498bfa6 | 9 years ago |
|
3f1b05bd0b | 9 years ago |
|
9ee8b2a45b | 9 years ago |
|
4a6fb1ef93 | 9 years ago |
|
f1ea8fafa1 | 9 years ago |
|
d1d04667ad | 9 years ago |
|
cc37a06018 | 9 years ago |
|
c43478a984 | 9 years ago |
|
b4070dde1c | 9 years ago |
|
d810de418e | 9 years ago |
|
a67e3ea4b9 | 9 years ago |
|
21216c5dff | 9 years ago |
|
46a88189ca | 9 years ago |
|
ad066eb17e | 9 years ago |
|
bbb7e27b03 | 9 years ago |
|
99d7f53948 | 9 years ago |
|
a61c25ee27 | 9 years ago |
|
583d48e392 | 9 years ago |
|
365de8d7d3 | 9 years ago |
|
762466f0e0 | 9 years ago |
|
f051eef702 | 9 years ago |
|
d9a9594744 | 9 years ago |
|
acc4a6f195 | 9 years ago |
|
26a234effd | 9 years ago |
|
ce1d410301 | 9 years ago |
|
12e33a9c12 | 9 years ago |
|
95e8ec6f9e | 9 years ago |
|
d90d23bdd6 | 9 years ago |
|
095e9141b7 | 9 years ago |
|
0691d96d6c | 9 years ago |
|
ab1945dc31 | 9 years ago |
|
e60ba2ee1f | 9 years ago |
|
7975d43856 | 9 years ago |
|
2edb6402d6 | 9 years ago |
|
a6d52a1876 | 9 years ago |
|
7a3096883d | 9 years ago |
|
6940737f17 | 9 years ago |
|
f1ce0c028f | 9 years ago |
|
7e8108ad75 | 9 years ago |
|
a9145b99c8 | 9 years ago |
|
23aefd6470 | 9 years ago |
|
2351346646 | 9 years ago |
|
22f097ed64 | 9 years ago |
|
43516b12df | 9 years ago |
|
e4c333f3eb | 9 years ago |
|
f0dbeca426 | 9 years ago |
|
1a3b5e8d7d | 9 years ago |
|
9792784abd | 9 years ago |
|
1efc8c8a30 | 9 years ago |
|
c895eba3fd | 9 years ago |
|
3f32d142fc | 9 years ago |
|
bbb0568606 | 9 years ago |
|
ef9f34edfd | 9 years ago |
|
a35c3791ad | 9 years ago |
|
c7cabe8da6 | 9 years ago |
|
07b4407c26 | 9 years ago |
|
a4b7b0ba31 | 9 years ago |
|
bab92da5cf | 9 years ago |
|
6b928ebec4 | 9 years ago |
|
155888f2c5 | 9 years ago |
|
37bbc4fae5 | 9 years ago |
|
d29bf887ec | 9 years ago |
|
bebe73caa4 | 9 years ago |
|
8682064e4c | 9 years ago |
298 changed files with 13952 additions and 146 deletions
@ -0,0 +1,136 @@ |
||||
# ============================================================================ |
||||
# http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_11.html |
||||
# ============================================================================ |
||||
# |
||||
# SYNOPSIS |
||||
# |
||||
# AX_CXX_COMPILE_STDCXX_11([ext|noext],[mandatory|optional]) |
||||
# |
||||
# DESCRIPTION |
||||
# |
||||
# Check for baseline language coverage in the compiler for the C++11 |
||||
# standard; if necessary, add switches to CXXFLAGS to enable support. |
||||
# |
||||
# The first argument, if specified, indicates whether you insist on an |
||||
# extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g. |
||||
# -std=c++11). If neither is specified, you get whatever works, with |
||||
# preference for an extended mode. |
||||
# |
||||
# The second argument, if specified 'mandatory' or if left unspecified, |
||||
# indicates that baseline C++11 support is required and that the macro |
||||
# should error out if no mode with that support is found. If specified |
||||
# 'optional', then configuration proceeds regardless, after defining |
||||
# HAVE_CXX11 if and only if a supporting mode is found. |
||||
# |
||||
# LICENSE |
||||
# |
||||
# Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com> |
||||
# Copyright (c) 2012 Zack Weinberg <zackw@panix.com> |
||||
# Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu> |
||||
# |
||||
# Copying and distribution of this file, with or without modification, are |
||||
# permitted in any medium without royalty provided the copyright notice |
||||
# and this notice are preserved. This file is offered as-is, without any |
||||
# warranty. |
||||
|
||||
#serial 3 |
||||
|
||||
m4_define([_EFL_CXX_COMPILE_STDCXX_11_testbody], [ |
||||
template <typename T> |
||||
struct check |
||||
{ |
||||
static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
||||
}; |
||||
|
||||
typedef check<check<bool>> right_angle_brackets; |
||||
|
||||
int a; |
||||
decltype(a) b; |
||||
|
||||
typedef check<int> check_type; |
||||
check_type c; |
||||
check_type&& cr = static_cast<check_type&&>(c); |
||||
|
||||
struct A { A(int); }; |
||||
struct B : A { using A::A; }; // inheriting constructors |
||||
|
||||
auto d = a; |
||||
]) |
||||
|
||||
AC_DEFUN([EFL_CXX_COMPILE_STDCXX_11], [dnl |
||||
m4_if([$1], [], [], |
||||
[$1], [ext], [], |
||||
[$1], [noext], [], |
||||
[m4_fatal([invalid argument `$1' to AX_CXX_COMPILE_STDCXX_11])])dnl |
||||
m4_if([$2], [], [ax_cxx_compile_cxx11_required=true], |
||||
[$2], [mandatory], [ax_cxx_compile_cxx11_required=true], |
||||
[$2], [optional], [ax_cxx_compile_cxx11_required=false], |
||||
[m4_fatal([invalid second argument `$2' to AX_CXX_COMPILE_STDCXX_11])])dnl |
||||
AC_LANG_PUSH([C++])dnl |
||||
ac_success=no |
||||
AC_CACHE_CHECK(whether $CXX supports C++11 features by default, |
||||
ax_cv_cxx_compile_cxx11, |
||||
[AC_COMPILE_IFELSE([AC_LANG_SOURCE([_EFL_CXX_COMPILE_STDCXX_11_testbody])], |
||||
[ax_cv_cxx_compile_cxx11=yes], |
||||
[ax_cv_cxx_compile_cxx11=no])]) |
||||
if test x$ax_cv_cxx_compile_cxx11 = xyes; then |
||||
ac_success=yes |
||||
fi |
||||
|
||||
m4_if([$1], [noext], [], [dnl |
||||
if test x$ac_success = xno; then |
||||
for switch in -std=gnu++11; do |
||||
cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx11_$switch]) |
||||
AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch, |
||||
$cachevar, |
||||
[ac_save_CXXFLAGS="$CXXFLAGS" |
||||
CXXFLAGS="$CXXFLAGS $switch" |
||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([_EFL_CXX_COMPILE_STDCXX_11_testbody])], |
||||
[eval $cachevar=yes], |
||||
[eval $cachevar=no]) |
||||
CXXFLAGS="$ac_save_CXXFLAGS"]) |
||||
if eval test x\$$cachevar = xyes; then |
||||
CXXFLAGS="$CXXFLAGS $switch" |
||||
ac_success=yes |
||||
break |
||||
fi |
||||
done |
||||
fi]) |
||||
|
||||
m4_if([$1], [ext], [], [dnl |
||||
if test x$ac_success = xno; then |
||||
for switch in -std=c++11; do |
||||
cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx11_$switch]) |
||||
AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch, |
||||
$cachevar, |
||||
[ac_save_CXXFLAGS="$CXXFLAGS" |
||||
CXXFLAGS="$CXXFLAGS $switch" |
||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([_EFL_CXX_COMPILE_STDCXX_11_testbody])], |
||||
[eval $cachevar=yes], |
||||
[eval $cachevar=no]) |
||||
CXXFLAGS="$ac_save_CXXFLAGS"]) |
||||
if eval test x\$$cachevar = xyes; then |
||||
CXXFLAGS="$CXXFLAGS $switch" |
||||
ac_success=yes |
||||
break |
||||
fi |
||||
done |
||||
fi]) |
||||
AC_LANG_POP([C++]) |
||||
if test x$ax_cxx_compile_cxx11_required = xtrue; then |
||||
if test x$ac_success = xno; then |
||||
AC_MSG_ERROR([*** A compiler with support for C++11 language features is required.]) |
||||
fi |
||||
else |
||||
if test x$ac_success = xno; then |
||||
HAVE_CXX11=0 |
||||
AC_MSG_NOTICE([No compiler with C++11 support was found]) |
||||
else |
||||
HAVE_CXX11=1 |
||||
AC_DEFINE(HAVE_CXX11,1, |
||||
[define if the compiler supports basic C++11 syntax]) |
||||
fi |
||||
|
||||
AC_SUBST(HAVE_CXX11) |
||||
fi |
||||
]) |
@ -1,6 +1,14 @@ |
||||
#ifndef ABOUT_H |
||||
#define ABOUT_H |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
void about_start(void); |
||||
|
||||
#ifdef __cplusplus |
||||
} |
||||
#endif |
||||
|
||||
#endif |
||||
|
@ -0,0 +1,72 @@ |
||||
|
||||
#ifdef HAVE_CONFIG_H |
||||
# include <config.h> |
||||
#endif |
||||
|
||||
#include "Eo.h" |
||||
#include "Evas.h" |
||||
|
||||
#include "Eo.hh" |
||||
#include "Eina.hh" |
||||
#include "Evas.hh" |
||||
|
||||
#include "main.h" |
||||
|
||||
#define EXPEDITE_CXX_TEST_IMPL |
||||
#include "font_effect_blur_alpha_capi.h" |
||||
|
||||
/* standard var */ |
||||
static int done = 0; |
||||
extern int win_w, win_h; |
||||
/* private data */ |
||||
static evas::text *text; |
||||
static const int MAX_BLUR = 100; |
||||
|
||||
/* setup */ |
||||
static void _setup(void) |
||||
{ |
||||
int w,h; |
||||
evas::canvas canvas(::eo_ref(G_evas)); |
||||
evas::text *o = new evas::text(efl::eo::parent = canvas); |
||||
o->evas::object::color_set(0, 0, 0, 255); |
||||
o->font_set("Vera-Bold", 80); |
||||
o->text_set("Font Effect"); |
||||
o->visibility_set(true); |
||||
o->evas::object::size_get(&w, &h); |
||||
o->evas::object::position_set((win_w / 2) - (w / 2) - MAX_BLUR, (win_h / 2) - (h / 2) - MAX_BLUR); |
||||
text = o; |
||||
|
||||
done = 0; |
||||
} |
||||
|
||||
/* cleanup */ |
||||
static void _cleanup(void) |
||||
{ |
||||
text->visibility_set(false); |
||||
delete text; |
||||
} |
||||
|
||||
/* loop - do things */ |
||||
static void _loop(double t, int f) |
||||
{ |
||||
if (text) |
||||
{ |
||||
char buf[256]; |
||||
char *str = "padding_set(%d);blur(%d,color=black);"; |
||||
sprintf(buf, str, MAX_BLUR, ((f % MAX_BLUR) + 1)); |
||||
text->filter_program_set(buf); |
||||
} |
||||
FPS_STD(NAME); |
||||
} |
||||
|
||||
/* prepend special key handlers if interactive (before STD) */ |
||||
static void _key(char *key) |
||||
{ |
||||
KEY_STD; |
||||
} |
||||
|
||||
extern "C" void FNAME(void) |
||||
{ |
||||
ui_func_set(_key, _loop); |
||||
_setup(); |
||||
} |
@ -0,0 +1,30 @@ |
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
#undef FNAME |
||||
#undef NAME |
||||
#undef ICON |
||||
|
||||
/* metadata */ |
||||
#define FNAME font_effect_blur_alpha_cxx_start |
||||
#define NAME "(C++) Font Effect Blur (Alpha)" |
||||
#define ICON "text.png" |
||||
|
||||
#ifdef UI |
||||
_ui_menu_item_add(ICON, NAME, FNAME); |
||||
#endif |
||||
|
||||
#ifdef PROTO |
||||
void FNAME(void); |
||||
#endif |
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL |
||||
#undef FNAME |
||||
#undef NAME |
||||
#undef ICON |
||||
#endif |
||||
|
||||
#ifdef __cplusplus |
||||
} |
||||
#endif |
@ -0,0 +1,72 @@ |
||||
|
||||
#ifdef HAVE_CONFIG_H |
||||
# include <config.h> |
||||
#endif |
||||
|
||||
#include "Eo.h" |
||||
#include "Evas.h" |
||||
|
||||
#include "Eo.hh" |
||||
#include "Eina.hh" |
||||
#include "Evas.hh" |
||||
|
||||
#include "main.h" |
||||
|
||||
#define EXPEDITE_CXX_TEST_IMPL |
||||
#include "font_effect_blur_color_capi.h" |
||||
|
||||
/* standard var */ |
||||
static int done = 0; |
||||
extern int win_w, win_h; |
||||
/* private data */ |
||||
static evas::text *text; |
||||
static const int MAX_BLUR = 100; |
||||
|
||||
/* setup */ |
||||
static void _setup(void) |
||||
{ |
||||
evas::canvas canvas(::eo_ref(G_evas)); |
||||
int w, h; |
||||
|
||||
evas::text *o = new evas::text(efl::eo::parent = canvas); |
||||
o->evas::object::color_set(0, 0, 0, 255); |
||||
o->font_set("Vera-Bold", 80); |
||||
o->text_set("Font Effect"); |
||||
o->visibility_set(true); |
||||
o->evas::object::size_get(&w, &h); |
||||
o->evas::object::position_set((win_w / 2) - (w / 2) - MAX_BLUR, (win_h / 2) - (h / 2) - MAX_BLUR); |
||||
text = o; |
||||
done = 0; |
||||
} |
||||
|
||||
/* cleanup */ |
||||
static void _cleanup(void) |
||||
{ |
||||
text->visibility_set(false); |
||||
delete text; |
||||
} |
||||
|
||||
/* loop - do things */ |
||||
static void _loop(double t, int f) |
||||
{ |
||||
if (text) |
||||
{ |
||||
char buf[256]; |
||||
const char *str = "buffer:a(rgba);padding_set(%d);blend(dst=a,color=darkblue);blur(%d,src=a);"; |
||||
sprintf(buf, str, MAX_BLUR, ((f % MAX_BLUR) + 1)); |
||||
text->filter_program_set(buf); |
||||
} |
||||
FPS_STD(NAME); |
||||
} |
||||
|
||||
/* prepend special key handlers if interactive (before STD) */ |
||||
static void _key(char *key) |
||||
{ |
||||
KEY_STD; |
||||
} |
||||
|
||||
extern "C" void FNAME(void) |
||||
{ |
||||
ui_func_set(_key, _loop); |
||||
_setup(); |
||||
} |
@ -0,0 +1,31 @@ |
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
#undef FNAME |
||||
#undef NAME |
||||
#undef ICON |
||||
|
||||
/* metadata */ |
||||
#define FNAME font_effect_blur_color_cxx_start |
||||
#define NAME "(C++) Font Effect Blur (Color)" |
||||
#define ICON "text.png" |
||||
|
||||
#ifdef UI |
||||
_ui_menu_item_add(ICON, NAME, FNAME); |
||||
#endif |
||||
|
||||
#ifdef PROTO |
||||
void FNAME(void); |
||||
#endif |
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL |
||||
#undef FNAME |
||||
#undef NAME |
||||
#undef ICON |
||||
#endif |
||||
|
||||
#ifdef __cplusplus |
||||
} |
||||
#endif |
||||
|
@ -0,0 +1,80 @@ |
||||
|
||||
#ifdef HAVE_CONFIG_H |
||||
# include <config.h> |
||||
#endif |
||||
|
||||
#include "Eo.h" |
||||
#include "Evas.h" |
||||
|
||||
#include "Eo.hh" |
||||
#include "Eina.hh" |
||||
#include "Evas.hh" |
||||
|
||||
#include "main.h" |
||||
|
||||
#define EXPEDITE_CXX_TEST_IMPL |
||||
#include "image_blend_border_capi.h" |
||||
|
||||
static efl::eina::list<evas::image> images; |
||||
|
||||
/* standard var */ |
||||
static int done = 0; |
||||
|
||||
/* setup */ |
||||
static void _setup() |
||||
{ |
||||
evas::canvas canvas(::eo_ref(G_evas)); |
||||
for (int i = 0; i < OBNUM; i++) |
||||
{ |
||||
evas::image o(efl::eo::parent = canvas); |
||||
images.push_back(o); |
||||
eo_do(o._eo_ptr(), efl_file_set(build_path("bar.png"), NULL)); // XXX
|
||||
o.border_set(6, 6, 6, 6); |
||||
o.visibility_set(true); |
||||
} |
||||
done = 0; |
||||
} |
||||
|
||||
/* cleanup */ |
||||
static void _cleanup() |
||||
{ |
||||
for (evas::image& i : images) |
||||
i.parent_set(efl::eo::base(nullptr)); |
||||
images.clear(); |
||||
} |
||||
|
||||
/* loop - do things */ |
||||
static void _loop(double t, int f) |
||||
{ |
||||
Evas_Coord x, y, w, h, w0, h0; |
||||
int i = 0; |
||||
for (evas::image& img : images) |
||||
{ |
||||
w0 = 80; |
||||
h0 = 80; |
||||
w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2); |
||||
h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2); |
||||
x = (win_w / 2) - (w / 2); |
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2); |
||||
y = (win_h / 2) - (h / 2); |
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2); |
||||
img.evas::object::position_set(x, y); |
||||
img.evas::object::size_set(w, h); |
||||
img.fill_set(0, 0, w, h); |
||||
++i; |
||||
} |
||||
FPS_STD(NAME); |
||||
} |
||||
|
||||
/* prepend special key handlers if interactive (before STD) */ |
||||
static void _key(char *key) |
||||
{ |
||||
KEY_STD; |
||||
} |
||||
|
||||
extern "C" void FNAME(void) |
||||
{ |
||||
ui_func_set(_key, _loop); |
||||
_setup(); |
||||
} |
||||
|
@ -0,0 +1,32 @@ |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
#undef FNAME |
||||
#undef NAME |
||||
#undef ICON |
||||
|
||||
/* metadata */ |
||||
#define FNAME image_blend_border_cxx_start |
||||
#define NAME "(C++) Image Blend Border (C++)" |
||||
#define ICON "blend.png" |
||||
|
||||
#ifdef UI |
||||
_ui_menu_item_add(ICON, NAME, FNAME); |
||||
#endif |
||||
|
||||
#ifdef PROTO |
||||
void FNAME(void); |
||||
#endif |
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL |
||||
#undef FNAME |
||||
#undef NAME |
||||
#undef ICON |
||||
#endif |
||||
|
||||
#ifdef __cplusplus |
||||
} |
||||
#endif |
||||
|
@ -0,0 +1,81 @@ |
||||
|
||||
#ifdef HAVE_CONFIG_H |
||||
# include <config.h> |
||||
#endif |
||||
|
||||
#include "Eo.h" |
||||
#include "Evas.h" |
||||
|
||||
#include "Eo.hh" |
||||
#include "Eina.hh" |
||||
#include "Evas.hh" |
||||
|
||||
#include "main.h" |
||||
|
||||
#define EXPEDITE_CXX_TEST_IMPL |
||||
#include "image_blend_border_recolor_capi.h" |
||||
|
||||
efl::eina::list<evas::image> images; |
||||
|
||||
/* standard var */ |
||||
static int done = 0; |
||||
|
||||
/* setup */ |
||||
static void _setup(void) |
||||
{ |
||||
evas::canvas canvas(::eo_ref(G_evas)); |
||||
for (int i = 0; i < OBNUM; i++) |
||||
{ |
||||
evas::image o(efl::eo::parent = canvas); |
||||
images.push_back(o); |
||||
eo_do(o._eo_ptr(), efl_file_set(::build_path("pan.png"), NULL)); // XXX
|
||||
o.color_set(64, 64, 64, 255); |
||||
o.border_set(3, 3, 3, 3); |
||||
o.visibility_set(true); |
||||
} |
||||
done = 0; |
||||
} |
||||
|
||||
/* cleanup */ |
||||
static void _cleanup(void) |
||||
{ |
||||
for (evas::image& i : images) |
||||
i.parent_set(efl::eo::base(nullptr)); |
||||
images.clear(); |
||||
} |
||||
|
||||
/* loop - do things */ |
||||
static void _loop(double t, int f) |
||||
{ |
||||
int i = 0; |
||||
Evas_Coord x, y, w, h, w0, h0; |
||||
for (auto it = images.begin(), end = images.end(); it != end; it++, i++) |
||||
{ |
||||
w0 = 80; |
||||
h0 = 80; |
||||
w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2); |
||||
h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2); |
||||
x = (win_w / 2) - (w / 2); |
||||
x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2); |
||||
y = (win_h / 2) - (h / 2); |
||||
y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2); |
||||
|
||||
(*it).position_set(x, y); |
||||
(*it).evas::object::size_set(w, h); |
||||
(*it).fill_set(0, 0, w, h); |
||||
} |
||||
FPS_STD(NAME); |
||||
} |
||||
|
||||
/* prepend special key handlers if interactive (before STD) */ |
||||
static void _key(char *key) |
||||
{ |
||||
KEY_STD; |
||||
} |
||||
|
||||
extern "C" void FNAME(void) |
||||
{ |
||||
ui_func_set(_key, _loop); |
||||
_setup(); |
||||
} |
||||
|
@ -0,0 +1,32 @@ |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
#undef FNAME |
||||
#undef NAME |
||||
#undef ICON |
||||
|
||||
/* metadata */ |
||||
#define FNAME image_blend_border_recolor_cxx_start |
||||
#define NAME "(C++) Image Blend Border Recolor (C++)" |
||||
#define ICON "blend.png" |
||||
|
||||
#ifdef UI |
||||
_ui_menu_item_add(ICON, NAME, FNAME); |
||||
#endif |
||||
|
||||
#ifdef PROTO |
||||
void FNAME(void); |
||||
#endif |
||||
|
||||
#ifndef EXPEDITE_CXX_TEST_IMPL |
||||
#undef FNAME |
||||
#undef NAME |
||||
#undef ICON |
||||
#endif |
||||
|
||||
#ifdef __cplusplus |
||||
} |
||||
#endif |
||||
|
@ -0,0 +1,81 @@ |
||||
|
||||
#ifdef HAVE_CONFIG_H |
||||
# include <config.h> |
||||
#endif |
||||
|
||||
#include "Eo.h" |
||||
#include "Evas.h" |
||||
|
||||
#include "Eo.hh" |
||||
#include "Eina.hh" |
||||
#include "Evas.hh" |
||||
|
||||
#include "main.h" |
||||
|
||||
#define EXPEDITE_CXX_TEST_IMPL |
||||
#include "image_blend_fade_pow2_unscaled_capi.h" |
||||
|
||||
static efl::eina::list<evas::image> images; |
||||
|
||||
/* standard var */ |
||||
static int done = 0; |
||||
|
||||
/* setup */ |
||||
static void _setup(void) |
||||
{ |
||||
evas::canvas canvas(::eo_ref(G_evas)); |
||||