Commit Graph

1242 Commits

Author SHA1 Message Date
Jean-Philippe Andre 4cbc120247 Evas doc: Add example for padding_set (filters)
With preview and all.
2014-05-09 16:57:39 +09:00
Jean-Philippe Andre 3608a03818 Evas doc: Move filters examples to Lua
Part 1: auto-generated examples with previews
2014-05-09 16:57:39 +09:00
WooHyun Jung c04b28d9de ecore/example: Modify the explanation of ecore evas extn plug example. 2014-05-09 13:34:38 +09:00
Savio Sena 69017b2e3b eolian_cxx: fix install-examples and (post-install) compilation.
Summary:
This patch fixes T1226 by adding a Makefile.examples to
examples/eolian_cxx. It also fixes a bug in bin/eolian_cxx: the
include paths were not being correctly generated for directories
outside EFL tree.

Reviewers: cedric, smohanty, stefan_schmidt, stefan

CC: uartie, wayland-efl, felipealmeida, raster, woohyun, cedric

Maniphest Tasks: T1226

Differential Revision: https://phab.enlightenment.org/D824

Signed-off-by: Cedric Bail <cedric.bail@free.fr>
2014-05-07 23:40:46 +02:00
Felipe Magno de Almeida a4cdc43c03 eolian_cxx: fix compilation of examples out-of-tree
Summary: Changed erroneous top_builddir for include paths for eolian_gen tool.

Reviewers: cedric, stefan_schmidt, stefan

CC: cedric

Differential Revision: https://phab.enlightenment.org/D830

Signed-off-by: Cedric Bail <cedric.bail@free.fr>
2014-05-07 23:37:47 +02:00
ChunEon Park 394aa81e5c evas/evas3d: removed export of evas_3d_node_add() and apply eo to examples.
but still i don't like eo apis used in app side (if it's only way)
we should export legacy apis for convenience.

lets decide this policy later.
2014-05-07 22:36:34 +09:00
ChunEon Park 6582c3539b evas/evas3d: call eo_unref() after eo_add().
since eo default ref count is 1 and increased by canvas parent again,
they should be unref() called if they wanna deleted automatically.

I wonder if evas unref the objects while it removes the objects from it's list,
then user don't need to call eo_unref() manually which may cause a mistake in usage.
2014-05-07 19:36:45 +09:00
Jaehyun Cho c27ffaf8dc evas-3d: Fix typo in evas-3d-pick.c
Summary: Fix typo with eo_do in evas-3d-pick.c

Reviewers: Hermet

Reviewed By: Hermet

CC: cedric

Differential Revision: https://phab.enlightenment.org/D828
2014-05-07 19:22:52 +09:00
ChunEon Park 2758b20556 evas/evas3d - adjust examples window size. 2014-05-07 16:55:50 +09:00
ChunEon Park 58d87b53ab evas/evas3d: set gl backened forcely in the examples
Right now, evas 3d doesn't support software renderer,
we set the gl backened forcely.
2014-05-07 15:35:36 +09:00
Savio Sena 96c2844b54 examples: fix the include paths of eina example.
Summary:
"make examples" was failing for parallel build set-ups (i.e.,
top_builddir != top_srcdir).

Reviewers: cedric, smohanty, stefan_schmidt, stefan

CC: felipealmeida, cedric

Differential Revision: https://phab.enlightenment.org/D825

Signed-off-by: Cedric Bail <cedric.bail@free.fr>
2014-05-06 23:41:12 +02:00
Stefan Schmidt 47724c5bd4 examples: Fix install for eolian_cxx examples
Remove reference to non existing Makefile.example to let the install
succeed.

Fixes T1226
2014-05-06 09:56:46 +02:00
Savio Sena 8af864eb65 eolian-cxx: Fixed the generation .eo.h path.
Summary: This patch fixes T1225

Reviewers: uartie

CC: uartie, wayland-efl, felipealmeida, cedric, smohanty, raster, stefan_schmidt, stefan, woohyun

Maniphest Tasks: T1225

Differential Revision: https://phab.enlightenment.org/D821
2014-05-05 13:09:28 -07:00
Felipe Magno de Almeida 8c78a0c320 eolian-cxx: fix make distcheck and automake files for Eolian C++
Summary:
Fixed distcheck for Eolian C++. Made the generated files as
nodist so it doesn't get picked up for generation way too
early.

Reviewers: cedric, seoz

CC: cedric

Maniphest Tasks: T1220

Differential Revision: https://phab.enlightenment.org/D820

Signed-off-by: Cedric Bail <cedric.bail@free.fr>
2014-05-04 12:21:30 +02:00
Savio Sena c4dba109db eolian_cxx: initial version of the EFL C++ Bindings Generator.
Summary:
This patch adds 'eolian_cxx' -- a C++ bindings generator --
to the EFL tree. Eolian Cxx uses Eolian API to read .eo files and generate
.eo.hh. It relies/depends on Eo Cxx and Eina Cxx (both non-generated
bindings).

src/bin/eolian_cxx: The eolian_cxx program.
src/lib/eolian_cxx: A header-only library that implements the C++ code
generation that binds the .eo classes.

=Examples=

src/examples/eolian_cxx/eolian_cxx_simple_01.cc: The simplest example,
it just uses some "dummy" generated C++ classes.

src/examples/eolian_cxx/eolian_cxx_inherit_01.cc: Illustrates how
pure C++ classes inherit from .eo generated classes.

src/examples/evas/evas_cxx_rectangle.cc: More realistic example using
the generated bindings Evas Cxx. Still a bit shallow because we don't
have full fledged .eo descriptions yet, but will be improved.

=Important=

The generated code is not supported and not a stable API/ABI. It is
here to gather people interest and get review before we set things in
stone for release 1.11.

@feature

Reviewers: cedric, smohanty, raster, stefan_schmidt

CC: felipealmeida, JackDanielZ, cedric, stefan

Differential Revision: https://phab.enlightenment.org/D805

Signed-off-by: Cedric Bail <cedric.bail@free.fr>
2014-05-03 00:56:32 +02:00
Cedric Bail aa6f23f508 evas: don't track Evas_3D examples. 2014-05-01 12:05:37 +02:00
Cedric Bail 53260b8037 evas: fix Evas_3D examples to use Eo API. 2014-05-01 12:05:32 +02:00
ChunEon Park 756fce31dc evas/evas3d: rewrite evas-3d-md2 example with eo based. 2014-04-30 22:02:23 +09:00
ChunEon Park c8488f46bb evas/evas3d: rewrite evas-3d-cube2 example with eo based. 2014-04-30 21:40:47 +09:00
ChunEon Park f2d0858680 evas/evas3d: cleanup cube example code.
fixed eo grammar error.
added static keywords for internal variables.
include eo header explicitly.
fixed indentation.
2014-04-30 21:36:04 +09:00
ChunEon Park b466aea498 evas/evas3d: removed unnecessary header include. 2014-04-30 21:11:48 +09:00
ChunEon Park c2868c6af2 evas/evas_3d: rewrite evas_3d_cube eo based.
still evas_3d_node_add() call should be changed to eo_add().
2014-04-30 20:37:20 +09:00
ChunEon Park ffa810a8a7 ecore/example: --warning.
use scanf() return value for removing compiling warning.
2014-04-29 14:04:10 +09:00
ChunEon Park eaab033561 evas/evas3d: rename 3d_scene_set()/get() to scene_set()/get()
if eolian generates c++ apis, the method name will be started with

numberic character that wont' be accepted by c++ language.

so renamed.
2014-04-25 19:53:18 +09:00
ChunEon Park 62778c8935 evas3d: forget evas_3d.h. it's merged to evas.h
Conflicts:

	src/lib/evas/Evas_3D.h
2014-04-25 17:16:16 +09:00
Subhransu Sekhar Mohanty 5a82a1ed36 Evas: 3D: Change the api name from t3d_scene to 3d_scene as the eolian issue got fixed. 2014-04-25 16:47:32 +09:00
Taekyun Kim aa477c628d Evas: 3D: Add missing image file for example evas-3d-proxy 2014-04-25 16:47:12 +09:00
Taekyun Kim 8d5bfa26e3 Evas: 3D: Updated proxy texture example 2014-04-25 16:42:03 +09:00
Taekyun Kim 0fdd31b981 Evas: 3D: Refined proxy texture implementation
Added new APIs for controlling source object's visibility.
Fixed bugs related to updating proxy textures.
2014-04-25 16:20:24 +09:00
Taekyun Kim b61ceab457 Evas: 3D: Example: MD2 mesh file example
MD2 model file is from http://mb.srb2.org/showthread.php?t=34800
Thanks to Jeck Jim.
2014-04-25 16:19:10 +09:00
Taekyun Kim d4f32b9874 Evas: 3D: Example: Picking example 2014-04-25 16:19:05 +09:00
Taekyun Kim fb67bba733 Evas: 3D: Example: Proxy texture example 2014-04-25 16:18:58 +09:00
Taekyun Kim 475e3001b4 Evas: 3D: Example: Rotating Cube 2
Demonstrating key frame material animation and normal mapping.
2014-04-25 16:18:50 +09:00
Taekyun Kim 1763281956 Evas: 3D: Example: Rotating cube 2014-04-25 16:18:39 +09:00
Daniel Zaoui 50a2ac332b Eo: adapt examples to Eo2.
It includes Eo and Evas porting to Eo2.
2014-04-23 07:56:20 +03:00
Daniel Zaoui d0f5f62666 Eo2: Fix other forgotten ret. 2014-04-11 05:02:54 +03:00
Tom Hacohen 1823adf9b3 Eo: EO_BASE_CLASS->EO_CLASS. 2014-04-10 04:20:21 +01:00
Tom Hacohen b2ef2119d0 Eo: eo_base's data_*->key_data_*. 2014-04-10 04:20:21 +01:00
Cedric Bail e335184d78 ecore_avahi: remove useless printf. 2014-02-28 19:58:25 -03:00
Stefan Schmidt 6cd9fdb400 examples/eina: Check return value of eina_iterator_next
If we define an API with warn_unused_result we should actually
check the result in our examples.
2014-02-28 14:37:53 +01:00
Stefan Schmidt 08ebf05e67 examples: Use EINA_UNUSED in examples to silence a ton of warning
First step to get the examples compiling output in a useful state.
With all the warning noise one would never see the important messages.

If you add new code please make sure its warning free.
2014-02-28 14:37:53 +01:00
Stefan Schmidt 1a7282efb6 examples/evas: Set a proper format string for fprintf
Instead of abusing the format string we should set it.
Was made aware of this problme by chinmaya061 in
https://phab.enlightenment.org/D585

@fix
2014-02-28 12:17:52 +01:00
Cedric Bail 55b44da0d9 ecore_avahi: add an avahi browse example (that doesn't work yet). 2014-02-27 20:09:09 -03:00
Cedric Bail 3364026e82 Revert "evas example: fix warning in compilation of evas-box.c."
This reverts commit 442d880cf6168cb5f13ce7dd566de6bb7bd987d6.

Sorry mixed command of pull/push here.
2014-02-27 11:10:35 -03:00
chinmaya c15cd4eb5b evas example: fix warning in compilation of evas-box.c.
Summary: The warning was "format not a string literal and no format arguments [-Wformat-security]".

Test Plan: gcc -o evas-box evas-box.c `pkg-config --libs --cflags evas ecore ecore-evas eina`

Reviewers: singh.amitesh, seoz, stefan_schmidt

CC: cedric, stefan_schmidt

Differential Revision: https://phab.enlightenment.org/D585

Signed-off-by: Cedric Bail <cedric.bail@free.fr>
2014-02-27 11:09:20 -03:00
Cedric Bail 832d0aec0d eina_cxx: oops forgotten path. 2014-02-26 14:42:29 -03:00
Cedric Bail 641819886e eina_cxx: don't track generated example binary. 2014-02-25 18:36:17 -03:00
Cedric Bail e3f26012fa eina_cxx: remove left over from when Boost was a dependency. 2014-02-25 18:35:04 -03:00
Felipe Magno de Almeida dc7b1cc1cf eina: add a C++ bindings to Eina @feature.
The goal of this library is to make the life of C++ developers easier
when having to manipulate Eina datatype by providing a layer to abstract
those data type in C++. Check examples for now. Documentation will come
soon, but we are pushing that rather sooner to get feedback on those bindings.

As you will notice, this library is just composed of headers. There is no .so
and we do think it is better this way. Reducing ABI and API stability issue for
applications developers who are the primary target of this binding.

Also please note that you will need to have C++11 to use this binding.

Signed-off-by: Cedric Bail <cedric.bail@free.fr>
2014-02-25 18:05:01 -03:00
Daniel Juyung Seo ed0d7bf906 ecore_evas_object_example: Added cursor unset example. 2014-02-24 16:01:37 +09:00