platform/upstream/efl.git
9 years agoeina: don't return NULL silently when creating new tilers
Mike Blumenkrantz [Thu, 2 Jul 2015 18:18:06 +0000 (14:18 -0400)]
eina: don't return NULL silently when creating new tilers

9 years agoEvas gl_common: Fix up error handling
WooHyun Jung [Thu, 2 Jul 2015 12:54:51 +0000 (21:54 +0900)]
Evas gl_common: Fix up error handling

9 years agoecore animators - improve accuracy by having a thread do animator timing
Carsten Haitzler (Rasterman) [Thu, 2 Jul 2015 09:24:18 +0000 (18:24 +0900)]
ecore animators - improve accuracy by having a thread do animator timing

this will cause animators to be more accurate now with timing coming
from a dedicated thread whose only reason in life is to trigger timed
wakeups. the wakeup time is even adjusted with fmod to the exact
frametime slot that is expected

9 years agoRevert "Evas gl_cocoa: remove code duplicated from gl_generic"
Jean-Philippe Andre [Thu, 2 Jul 2015 07:00:40 +0000 (16:00 +0900)]
Revert "Evas gl_cocoa: remove code duplicated from gl_generic"

This reverts commit 681c8b0ec25a0a00325d32aa0f0178434bb54ae7.

@cedric pointed me out that gl_cocoa doesn't depend on gl_generic,
so this commit was not very smart.

9 years agoEvas.Image: Simplify logic (trivial change)
Jean-Philippe Andre [Thu, 2 Jul 2015 06:41:06 +0000 (15:41 +0900)]
Evas.Image: Simplify logic (trivial change)

9 years agoEvas.Image: Deprecate some functions and remove from Eo
Jean-Philippe Andre [Thu, 2 Jul 2015 05:26:44 +0000 (14:26 +0900)]
Evas.Image: Deprecate some functions and remove from Eo

This patch deprecates the following functions:
- evas_object_image_data_convert
- evas_object_image_pixels_import
- evas_object_image_reload

I could not find any place where they are used.

The old documentation is kept in the header, but not as a doxygen
anymore.

9 years agoEvas: Replace image_map_surface_free by common image_free
Jean-Philippe Andre [Thu, 2 Jul 2015 03:04:02 +0000 (12:04 +0900)]
Evas: Replace image_map_surface_free by common image_free

Those two functions were doing exactly the same thing[1], which
is free an image, so this commit only attempts to simplify the code
a little bit.

[1] Actually image_map_surface_free() might even not have worked
properly with cserve2 sw (calling unload instead of close).

9 years agoEvas gl_cocoa: remove code duplicated from gl_generic
Jean-Philippe Andre [Thu, 2 Jul 2015 02:56:36 +0000 (11:56 +0900)]
Evas gl_cocoa: remove code duplicated from gl_generic

Remove the two functions:
- image_data_get
- image_data_put

9 years agoEvas: Implement image_data_get for FBO images
Jean-Philippe Andre [Thu, 2 Jul 2015 02:52:16 +0000 (11:52 +0900)]
Evas: Implement image_data_get for FBO images

9 years agoecore-wl: disable session recovery
Mike Blumenkrantz [Wed, 1 Jul 2015 16:11:55 +0000 (12:11 -0400)]
ecore-wl: disable session recovery

this is guaranteed to crash in 100% of use cases.

9 years agoEvas Textblock: Add obstacle objects feature
Daniel Hirt [Wed, 1 Jul 2015 15:24:31 +0000 (16:24 +0100)]
Evas Textblock: Add obstacle objects feature

Summary:
Introducing a new feature for Evas Textblock. This allows the layout to
wrap around other evas objects.
The following API is added:
 - obstacle_add
 - obstacle_del
 - obstacle_update
Evas objects can now serve as textblock obstacles, if positioned and
visible on the text area. The text will wrap around the obstacles
according to the wrapping mode set to it.

This also modifies the current wrapping code to handle obstacle wrap
points as well. The wrap index query function is modified so that
forward-scanning (specific cases) may be disabled when treating
obstacle wrap point.

RTL text is currently unsupported by this feature.
Consult added docs and example for usage.

@feature

Test Plan: Evas example and test in evas_suite are provided with this.

Reviewers: tasn

Subscribers: raster, JackDanielZ, cedric

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

9 years agoelua: remove obsolete xgettext wrapper
Daniel Kolesa [Wed, 1 Jul 2015 13:49:44 +0000 (14:49 +0100)]
elua: remove obsolete xgettext wrapper

9 years agoEvas image: Remove useless piece of code
Jean-Philippe Andre [Wed, 1 Jul 2015 05:19:25 +0000 (14:19 +0900)]
Evas image: Remove useless piece of code

Not only is it useless, it is very likely to make the function call
fail (data_get is quite likely to fail with GL).

9 years agoEdje: Embed verbatim scripts for Efl.Gfx.Filters
Jean-Philippe Andre [Tue, 30 Jun 2015 10:26:20 +0000 (19:26 +0900)]
Edje: Embed verbatim scripts for Efl.Gfx.Filters

This is now like the other embedded scripts, where a verbatim
string is parsed. The syntax is now:

filters {
   filter {
      name: "filter0";
      file: "filter.lua";
   }
   filter {
      name: "filter1";
      script {
         blend {}
      }
   }
   filter.file: "file.lua"; // name is "file.lua"
}

Thanks @raster for the quick review.

9 years agoEvas: Make Evas.Image.save() work with all images
Jean-Philippe Andre [Tue, 30 Jun 2015 06:37:55 +0000 (15:37 +0900)]
Evas: Make Evas.Image.save() work with all images

This includes proxies, 3d scenes and normal images.
There is still a problem as the GL engine returns NULL on
data_get.

This kinda goes against the EO API declaration as
eo_obj is used as a mutable argument, but internal data was
already modified before this patch.

TODO: Draw maps, filters, etc... in a dedicated surface to save
      them as they truly are (ie. filtered images).

9 years agoevas-fb: Fix compiler warnings about suggested parentheses
Chris Michael [Tue, 30 Jun 2015 13:25:23 +0000 (09:25 -0400)]
evas-fb: Fix compiler warnings about suggested parentheses

Summary: Gcc suggested parens around the truth value here, however
as some developers don't like overly used parens, just modify the code
slightly to not use an if on the assignment line.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore: Fix typo in since tag.
Amitesh Singh [Tue, 30 Jun 2015 10:08:09 +0000 (15:38 +0530)]
ecore: Fix typo in since tag.

9 years agoecore_imf: check parameter of ecore_imf_module_register ()
Jihoon Kim [Tue, 30 Jun 2015 07:43:37 +0000 (16:43 +0900)]
ecore_imf: check parameter of ecore_imf_module_register ()

9 years agoecore_imf: fix wrong return type of ecore_imf_context_input_panel_return_key_type_get
Jihoon Kim [Tue, 30 Jun 2015 07:39:56 +0000 (16:39 +0900)]
ecore_imf: fix wrong return type of ecore_imf_context_input_panel_return_key_type_get

@fix

9 years agoEvas filters: Force filter redraw if object changed
Jean-Philippe Andre [Tue, 30 Jun 2015 02:45:55 +0000 (11:45 +0900)]
Evas filters: Force filter redraw if object changed

Somehow I broke this when introducing the eo mixin.
This is what broke @cedric's work on the snapshot widget!

TODO: Verify that the contents changed, and not just X,Y.

9 years agoEvas filters: Fix color(0xrrggbb) to be opaque by default
Jean-Philippe Andre [Tue, 30 Jun 2015 01:33:29 +0000 (10:33 +0900)]
Evas filters: Fix color(0xrrggbb) to be opaque by default

For compatibility with previous behaviour and with what the doc
says, make sure default alpha is 255 and not 0.

This way color(0) is black and not transparent

9 years agodoc: Fixup EDC documentation about filters & examples
Jean-Philippe Andre [Mon, 29 Jun 2015 10:52:56 +0000 (19:52 +0900)]
doc: Fixup EDC documentation about filters & examples

9 years agoEdje: Fix test case (after syntax change)
Jean-Philippe Andre [Mon, 29 Jun 2015 10:06:26 +0000 (19:06 +0900)]
Edje: Fix test case (after syntax change)

Filters now belong to one of the filters sections:
- filters
- collections.filters
- collections.group.filters

9 years agoEdje: Use bsearch() to find filters as fast as possible
Jean-Philippe Andre [Mon, 29 Jun 2015 08:51:42 +0000 (17:51 +0900)]
Edje: Use bsearch() to find filters as fast as possible

edje_cc ensures that the filters are in order by name

9 years agoEdje: Replace index() by strchr()
Jean-Philippe Andre [Mon, 29 Jun 2015 08:00:57 +0000 (17:00 +0900)]
Edje: Replace index() by strchr()

Thanks vtorri for pointing out the build break on windows and
that index() is deprecated.

9 years agoEdje: Add proper filters section in the EDJ file
Jean-Philippe Andre [Mon, 29 Jun 2015 07:47:00 +0000 (16:47 +0900)]
Edje: Add proper filters section in the EDJ file

Don't [ab]use the file data section for filter scripts, instead
create a proper section for them. The rest of the behaviour stays
the same.

9 years agodoc: EDC reference: Add specific doc for group.data
Jean-Philippe Andre [Fri, 26 Jun 2015 02:48:57 +0000 (11:48 +0900)]
doc: EDC reference: Add specific doc for group.data

Group.data does not support "file", only "item". This doc
explains that.

Should Group.Data support file instead?

9 years agoEdje: Use array instead of hash for filters data
Jean-Philippe Andre [Fri, 26 Jun 2015 01:40:27 +0000 (10:40 +0900)]
Edje: Use array instead of hash for filters data

Yeah that was totally overkill and pure laziness on my side.

Despite having the EO API for the filters still in beta,
I want to the EDC API and EDJ binary formats to stay compatible,
so let's get it right before the release :)

9 years agoRevert "evas: add keysym member to key event structs"
Mike Blumenkrantz [Mon, 29 Jun 2015 17:12:10 +0000 (13:12 -0400)]
Revert "evas: add keysym member to key event structs"

This reverts commit b7c89d23252d34c1d9efecc27dc835aa8df3c50d.

this was audited and found to be impractical due to portability concerns

9 years agoRevert "ecore-input: add keysym to Ecore_Event_Key struct"
Mike Blumenkrantz [Mon, 29 Jun 2015 17:11:47 +0000 (13:11 -0400)]
Revert "ecore-input: add keysym to Ecore_Event_Key struct"

This reverts commit c3f3c4eba80f0a7f388de608f2b1566213e73603.

this was audited and found to be impractical due to portability concerns

9 years agoecore-x: add ecore_x_keysym_get()
Mike Blumenkrantz [Mon, 29 Jun 2015 17:09:56 +0000 (13:09 -0400)]
ecore-x: add ecore_x_keysym_get()

this is a less invasive solution for retrieving a keysym. X keysyms are
not portable, and so this function should not be used for any code which
is meant to run on other platforms.

@feature

9 years agoecore_x_xi2: remove build warning
Ji-Youn Park [Mon, 29 Jun 2015 15:58:24 +0000 (00:58 +0900)]
ecore_x_xi2: remove build warning

9 years agoecore_wl: Hookup wl listener for uuid event from session recovery protocol
Stefan Schmidt [Fri, 20 Mar 2015 13:13:59 +0000 (14:13 +0100)]
ecore_wl: Hookup wl listener for uuid event from session recovery protocol

This should listen for events containing the assigned UUID from the compositor.

9 years agoecore_wl: Add generated session-recovery-protocol files to build
Stefan Schmidt [Fri, 20 Mar 2015 12:28:08 +0000 (13:28 +0100)]
ecore_wl: Add generated session-recovery-protocol files to build

For now these are generated externally by wayland-scanner and added here.
Also keep the original xml protocol file here for now.

This covers the client side for applications while the server side code
sits with E as compositor.

9 years agoecore_x_xi2: add small code to check device id
Ji-Youn Park [Mon, 29 Jun 2015 15:02:47 +0000 (00:02 +0900)]
ecore_x_xi2: add small code to check device id

cancel event only can be dealed in touch device.

9 years agoecore_x_xi2: fix only ecore input handler deals touch cancel event
Ji-Youn Park [Mon, 29 Jun 2015 14:09:33 +0000 (23:09 +0900)]
ecore_x_xi2: fix only ecore input handler deals touch cancel event

X gives only one cancel event in one touch device even though several touch point.
move code related with touch cancel to input hander function

9 years agoEvas textblock: Fix it->x value during layout
Daniel Hirt [Mon, 29 Jun 2015 10:21:55 +0000 (13:21 +0300)]
Evas textblock: Fix it->x value during layout

This updates it->x when visiting each item in the line layout code,
as it was always 0, even when it was used during item rollback.
Fortunately, in the above case a 0 value was actually expected, so
this does not actually affect current behavior.

This fix is mainly for consistency and future development.

9 years agoEvas textblock: Fix infinite loop case
Daniel Hirt [Sun, 28 Jun 2015 12:02:28 +0000 (15:02 +0300)]
Evas textblock: Fix infinite loop case

This fixes a case with wrapping, where the text has a mixture of 'none'
and 'word' wrapping modes, and the layout function decides to
roll-back a few items.
The test case is added to the evas_suite.
This might not be a common case, or even a case we had defined a proper
behavior to, but since it causes an infinite loop, it needs to be fixed.

@fix

9 years agoefreetd_ipc: fix shadow warning
Daniel Kolesa [Mon, 29 Jun 2015 13:28:01 +0000 (14:28 +0100)]
efreetd_ipc: fix shadow warning

9 years agoevas_engine_software_x11: fix incorrect enumeration type warning
Daniel Kolesa [Mon, 29 Jun 2015 13:27:02 +0000 (14:27 +0100)]
evas_engine_software_x11: fix incorrect enumeration type warning

9 years agoedje: fix extra parens warning with clang
Daniel Kolesa [Mon, 29 Jun 2015 13:19:57 +0000 (14:19 +0100)]
edje: fix extra parens warning with clang

9 years agoecore_imf_evas: warnings--
Daniel Kolesa [Mon, 29 Jun 2015 13:18:40 +0000 (14:18 +0100)]
ecore_imf_evas: warnings--

9 years agoedje: fix shadow warning
Daniel Kolesa [Mon, 29 Jun 2015 13:13:58 +0000 (14:13 +0100)]
edje: fix shadow warning

9 years agoeina: add quaternion test in eina suite and fix the test case errors
Vivek Ellur [Mon, 29 Jun 2015 12:24:21 +0000 (14:24 +0200)]
eina: add quaternion test in eina suite and fix the test case errors

Summary:
Fixed eina_test_quaternion_conjugate and eina_test_quaternion_matrix which
were failing and also added the quaternion test in eina suite

Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com>
Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_con: eoify ecore_con_eet functions.
Srivardhan Hebbar [Mon, 29 Jun 2015 12:21:13 +0000 (14:21 +0200)]
ecore_con: eoify ecore_con_eet functions.

Summary:
Depends on D2602
Made all functions eo.

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: opaque value does not change even if image data be changed
jiin.moon [Mon, 29 Jun 2015 11:55:57 +0000 (13:55 +0200)]
evas: opaque value does not change even if image data be changed

Summary:
opaque value keeps previous image's value
when image data be changed by file_set/mmap_set api

@fix

Test Plan:
1) Make a evas rectangle object has color
2) Make a evas image object with jpg file.
3) Replace image data with png file by evas_object_image_file_set.

Reviewers: Hermet, cedric, jypark

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoEo: Remove redundant semicolon.
Tom Hacohen [Mon, 29 Jun 2015 11:52:40 +0000 (12:52 +0100)]
Eo: Remove redundant semicolon.

Thanks to Vincent Torri for spotting this one.

9 years agoEmotion: Adding Eo test for emotion
Avi Levin [Sun, 14 Jun 2015 08:46:59 +0000 (11:46 +0300)]
Emotion: Adding Eo test for emotion

This test is exactly like the existing legacy one but works
with Eo invocations.

9 years agoemotion: revert changes to emotion test as discussed on ML and chat
Avi Levin [Thu, 11 Jun 2015 12:20:13 +0000 (15:20 +0300)]
emotion: revert changes to emotion test as discussed on ML and chat

We want a separate test for Eo callbacks, as we still want to verify
legacy callbacks.

9 years agoEvas textblock: Fix the newly added test to use ck_assert_int_eq.
Tom Hacohen [Fri, 26 Jun 2015 14:24:56 +0000 (15:24 +0100)]
Evas textblock: Fix the newly added test to use ck_assert_int_eq.

9 years agoEvas textblock: Fix issue with line_coord_set and y before the first line.
Tom Hacohen [Fri, 26 Jun 2015 14:11:17 +0000 (15:11 +0100)]
Evas textblock: Fix issue with line_coord_set and y before the first line.

Let's assume we have a textblock with one paragraph at y = 3 and h = 50
At the moment, passing 60 (after the paragraph) to line_coord_set picks
the last line, however passing 0, just fails. This fixes that.

Thanks to Vladyslav Shevchenko for reporting it in D2574.

@fix

9 years agoEvas textblock: Add a failing test for line_coord_set.
Vladyslav Shevchenko [Fri, 26 Jun 2015 13:50:22 +0000 (14:50 +0100)]
Evas textblock: Add a failing test for line_coord_set.

See more information in the next commit.

This commit message was edited by TAsn, and only the test case preserved
from the original commit in D2574.

9 years agoevas_canvas3d_material: convert docs
Daniel Kolesa [Fri, 26 Jun 2015 13:35:39 +0000 (14:35 +0100)]
evas_canvas3d_material: convert docs

9 years agoevas_line: convert docs
Daniel Kolesa [Fri, 26 Jun 2015 13:00:36 +0000 (14:00 +0100)]
evas_line: convert docs

9 years agoecore_evas: fix iconified state set bug
Ji-Youn Park [Fri, 26 Jun 2015 10:18:09 +0000 (19:18 +0900)]
ecore_evas: fix iconified state set bug

if app set iconified state false, ecore evas call activate instead of show.

9 years agoecore-evas-extn : map shm for sharing render pixels conservatively
Carsten Haitzler (Rasterman) [Fri, 26 Jun 2015 08:37:24 +0000 (17:37 +0900)]
ecore-evas-extn : map shm for sharing render pixels conservatively

@fix

before we mapped these segmentsa read+write for the user or read+write
for EVERYONE if system. this now creates the file as r+w for the user
and +ro for everyone only IF system, and clients voluntarily map
read-only to avoid possible memory corrupting of pixels from the
client side. not more secure for clients, but nicer. defintiely more
secure for system services.

9 years agoecore_x_xi2: fix crash if device info is NULL.
Ji-Youn Park [Fri, 26 Jun 2015 04:42:56 +0000 (13:42 +0900)]
ecore_x_xi2: fix crash if device info is NULL.

_ecore_x_input_device_lookup can return NULL.
@fix

9 years agoEdje tests: Fix compilation warning
Jean-Philippe Andre [Fri, 26 Jun 2015 00:09:03 +0000 (09:09 +0900)]
Edje tests: Fix compilation warning

Thanks Stefan for the report.

I don't really like putting all those -DBLA_BETA or #define BLA_BETA
everywhere, though. Maybe the @beta flag is not required since the
EO APIs are still beta?

See: 04466193558ed23f4af3da4a5381aa75ea6e13e5

9 years agoRevert "ecore-wayland: Update xdg shell protocol file"
Chris Michael [Thu, 25 Jun 2015 19:14:56 +0000 (15:14 -0400)]
Revert "ecore-wayland: Update xdg shell protocol file"

This reverts commit 5793a62fc839af489263c918b78adb7765f8566d.

Reverted due to wrong version being pushed

9 years agoecore-wayland: Update xdg shell protocol file
Chris Michael [Thu, 25 Jun 2015 19:11:31 +0000 (15:11 -0400)]
ecore-wayland: Update xdg shell protocol file

Summary: This was a file that should have been updated with
the bump to xdg_shell version 5 however it was not pushed with that
update.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoedje_cc: Fix dereference before null check
Chris Michael [Thu, 25 Jun 2015 18:59:28 +0000 (14:59 -0400)]
edje_cc: Fix dereference before null check

Summary: Fix Coverity CID1302700 which reports a dereference before
null check. Basically, it is safe to call free() with a possible NULL
value so we can remove the 'if' check here.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoedje_cc: Fix dereference null return value
Chris Michael [Thu, 25 Jun 2015 18:55:44 +0000 (14:55 -0400)]
edje_cc: Fix dereference null return value

Summary: Fix Coverity CID1308232 which reports that we may be passing
NULL to strcmp here as the function _parse_param_get May return NULL.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoedje_cc: Fix formatting
Chris Michael [Thu, 25 Jun 2015 18:54:38 +0000 (14:54 -0400)]
edje_cc: Fix formatting

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoevas: fix shooter example
perepelits.m [Thu, 25 Jun 2015 14:22:00 +0000 (16:22 +0200)]
evas: fix shooter example

Summary: Disable atlas flag for all objects, fix motion algorithm, add primitives.

Reviewers: Hermet, raster, cedric

Subscribers: cedric, artem.popov

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoedje: add "mask_flags" instruction for "part" block
Jee-Yong Um [Thu, 25 Jun 2015 14:02:41 +0000 (16:02 +0200)]
edje: add "mask_flags" instruction for "part" block

Summary:
Elementary widgets dealing with Evas Events usually mask event_flags with
EVAS_EVENT_FLAG_ON_HOLD, to show that this event is already handled.
However, widget like Elm_Button, it does not handle EVAS_CALLBACK_MOUSE_DOWN directly,
but it handles Edje_Signal instead, so there's no chance to mask event_flags.
Developers can block event propagation by putting rectangle the very last part of EDC,
but this instruction can help the case making elementary widget with only Edje_Signal handling.
This is not required essentially, so please check the necessity of this function.

Reviewers: Hermet, cedric

Reviewed By: cedric

Subscribers: cedric, Hermet

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoedje: implement methods for mouse_events with edje_part for Edje Embryo script.
Jee-Yong Um [Thu, 25 Jun 2015 13:56:48 +0000 (15:56 +0200)]
edje: implement methods for mouse_events with edje_part for Edje Embryo script.

Summary:
In edje_embryo.c, there are the list for supported methods in script.
However, methods listed from line 175 to 188 don't exist actually.
This patch implements 4 methods among them.
   set_mouse_events(part_id, ev)
   get_mouse_events(part_id)
   set_repeat_events(part_id, rep)
   get_repeat_events(part_id)

Reviewers: Hermet, woohyun, cedric

Reviewed By: cedric

Subscribers: cedric, Hermet

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeina: add test cases for eina matrix map and transform functions
Vivek Ellur [Thu, 25 Jun 2015 13:35:33 +0000 (15:35 +0200)]
eina: add test cases for eina matrix map and transform functions

Summary:
Added test cases for matrix map and transform functions

Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com>
Reviewers: stefan_schmidt, cedric

Reviewed By: stefan_schmidt, cedric

Subscribers: stefan_schmidt, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeolian_cxx: Fix C++ generated inheritance wrappers
Vitor Sousa [Thu, 25 Jun 2015 14:58:43 +0000 (15:58 +0100)]
eolian_cxx: Fix C++ generated inheritance wrappers

Summary:
Fix a bug that happens when a Eolian C++ wrapper have no default
constructor (because it have obligatory constructing methods) and it is
being used as a return of a inheritance wrappers.
Switched to a conversion of the native type as the default return, instead
of a value initialized wrapper.

Reviewers: q66, felipealmeida

Subscribers: cedric

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

9 years agoeolian/generator: constify all prototypes for @const functions
Daniel Kolesa [Thu, 25 Jun 2015 11:17:58 +0000 (12:17 +0100)]
eolian/generator: constify all prototypes for @const functions

Otherwise there would be conflicts in certain circumstances.

This also requires adding const on many existing functions,
and similar work is necessary in Elementary.

@fix

9 years agoector/software: Update the PIXEL_BIT to 8 for better quality.
Subhransu Mohanty [Thu, 25 Jun 2015 09:51:41 +0000 (18:51 +0900)]
ector/software: Update the PIXEL_BIT to 8 for better quality.

9 years agoeolian: try replacing '.' with locale specific decimal point
Daniel Kolesa [Thu, 25 Jun 2015 09:43:54 +0000 (10:43 +0100)]
eolian: try replacing '.' with locale specific decimal point

This fixes parsing of floating point number with locales that use
a comma as decimal separator, as strtof/strtod follows locale
specific conventions.

@fix

9 years agoDoc: Try to fix build on Ubuntu
Jean-Philippe Andre [Thu, 25 Jun 2015 08:50:12 +0000 (17:50 +0900)]
Doc: Try to fix build on Ubuntu

The error message was:
/usr/bin/ld: preview_text_filter.o: undefined reference to symbol 'efl_gfx_filter_program_set'
//home/batden/Enlightenment20/efl/src/lib/efl/.libs/libefl.so.1: error adding symbols: DSO missing from command line

9 years agoEvas filters: Add some crash safety
Jean-Philippe Andre [Thu, 25 Jun 2015 06:12:32 +0000 (15:12 +0900)]
Evas filters: Add some crash safety

9 years agoEvas filters: Use smooth scaling by default for proxies
Jean-Philippe Andre [Thu, 25 Jun 2015 06:02:44 +0000 (15:02 +0900)]
Evas filters: Use smooth scaling by default for proxies

Is it too slow? Then I guess a new API option will be required.

9 years agoEvas filters: Fix usage of proxy buffers (compatibility)
Jean-Philippe Andre [Thu, 25 Jun 2015 05:43:05 +0000 (14:43 +0900)]
Evas filters: Fix usage of proxy buffers (compatibility)

The previous API supported stuff like "mask{'image1'}" but image1
is now not a valid buffer name, as it's only the proxy source name.
This patch fixes the buffer lookup.

9 years agoEvas filters: Mark API as @beta
Jean-Philippe Andre [Thu, 25 Jun 2015 02:12:05 +0000 (11:12 +0900)]
Evas filters: Mark API as @beta

Until we're happy with it, keep the API as beta.

The EDC support should not change, and the Lua either, but the
API could potentially still change to accomodate for new needs
(vector graphics, anyone?). If we're happy with the current
interface, then we can remove the @beta flags.

9 years agoEvas filters: Add @protected tag where applicable
Jean-Philippe Andre [Tue, 23 Jun 2015 08:25:44 +0000 (17:25 +0900)]
Evas filters: Add @protected tag where applicable

The Evas.Filter interface is basically just an internal thing.

9 years agoEvas filters: Add explicit exec flag in data_set
Jean-Philippe Andre [Tue, 23 Jun 2015 07:40:51 +0000 (16:40 +0900)]
Evas filters: Add explicit exec flag in data_set

This flag should be set iif the string passed is to be executed
rather than assigned. This is used to pass complex arguments
as data, like tables (eg. color class).

9 years agoEvas filters: Remove overrides of methods from Evas.Filter
Jean-Philippe Andre [Tue, 23 Jun 2015 06:21:45 +0000 (15:21 +0900)]
Evas filters: Remove overrides of methods from Evas.Filter

Welp that was stupid to add them in the first place...

9 years agoEvas tests: Fix failing tests
Jean-Philippe Andre [Tue, 23 Jun 2015 03:38:53 +0000 (12:38 +0900)]
Evas tests: Fix failing tests

Syntax error in C and in Lua code.

9 years agoEdje tests: Add test case for embedded text filters
Jean-Philippe Andre [Tue, 23 Jun 2015 03:38:32 +0000 (12:38 +0900)]
Edje tests: Add test case for embedded text filters

9 years agoEdje & evas filters: Properly pass data from EDC to Lua
Jean-Philippe Andre [Tue, 23 Jun 2015 03:21:20 +0000 (12:21 +0900)]
Edje & evas filters: Properly pass data from EDC to Lua

Also fix a few issues

9 years agoEvas filters: Fix buffer_push and add support for color classes
Jean-Philippe Andre [Tue, 23 Jun 2015 02:44:54 +0000 (11:44 +0900)]
Evas filters: Fix buffer_push and add support for color classes

Makes sure that buffers don't override already existing
globals vars such as 'mask' (a function name). Yeah, it happened
to me.

CC support is a little bit hackish. Need to find a better way.

9 years agoEdje & evas filters: Add extra data from EDC to Lua program
Jean-Philippe Andre [Mon, 22 Jun 2015 12:52:16 +0000 (21:52 +0900)]
Edje & evas filters: Add extra data from EDC to Lua program

This also supports color classes (really rough implementation for
now, but the API should remain stable).

@feature

9 years agoEvas filters: Add name to the filters
Jean-Philippe Andre [Fri, 19 Jun 2015 08:38:28 +0000 (17:38 +0900)]
Evas filters: Add name to the filters

Deep down internally there was already a name, but no API could
really set it properly.
Here Edje will set the name of the filter based on the part name
or the data item name if relevant.

9 years agoEvas filters: Complete support for image filtering
Jean-Philippe Andre [Thu, 18 Jun 2015 12:45:21 +0000 (21:45 +0900)]
Evas filters: Complete support for image filtering

Reusing the new EO mixin, complete the support for image
filtering. This now adds support for edje state inside
the image filter.

9 years agoEvas tests: Fix failing test due to API change
Jean-Philippe Andre [Thu, 18 Jun 2015 10:15:16 +0000 (19:15 +0900)]
Evas tests: Fix failing test due to API change

The new Lua color function is more lax than before, and
invalid color names will default to black without failing.

9 years agoEvas filters: EO-ify the filters API
Jean-Philippe Andre [Wed, 17 Jun 2015 07:26:30 +0000 (16:26 +0900)]
Evas filters: EO-ify the filters API

This creates the new interface
 Efl.Gfx.Filter

And the implementation is a mixin (evas_filter_mixin.c):
 Evas.Filter

All the filter rendering code has now been moved to this
new file. TODO: Merge image filtering.

9 years agoEdje: Factorise filter code for TEXT and IMAGE
Jean-Philippe Andre [Wed, 17 Jun 2015 04:49:18 +0000 (13:49 +0900)]
Edje: Factorise filter code for TEXT and IMAGE

TODO: eo-ify the filter API properly and stabilize it.

9 years agoEdje: Move filter desc to common desc
Jean-Philippe Andre [Wed, 17 Jun 2015 02:21:47 +0000 (11:21 +0900)]
Edje: Move filter desc to common desc

This will be shared between IMAGE and TEXT.
In the future it can also be shared with PROXY and TEXTBLOCK.

9 years agoEdje/evas filters: Use EDJ data sections to store filters code
Jean-Philippe Andre [Tue, 16 Jun 2015 12:05:06 +0000 (21:05 +0900)]
Edje/evas filters: Use EDJ data sections to store filters code

Use the file data {item, file} block to embed filters code.
It can become especially useful to keep the filters as separated
Lua files, that will be embedded in the final edj file.

@feature

9 years agoEdje/evas filters: Add filter.source support
Jean-Philippe Andre [Tue, 16 Jun 2015 05:50:43 +0000 (14:50 +0900)]
Edje/evas filters: Add filter.source support

This should preserve ABI stability with earlier versions of
edje_cc while still providing more advanced control over
proxy bindings for evas filters from EDC.

Also fix proxy binding for filters.

@feature

9 years agoEdje/evas filters: Quick renaming of evas filters related stuff
Jean-Philippe Andre [Wed, 10 Jun 2015 05:11:04 +0000 (14:11 +0900)]
Edje/evas filters: Quick renaming of evas filters related stuff

9 years agoEvas filters: Fix blur from rgba to alpha
Jean-Philippe Andre [Mon, 15 Jun 2015 08:43:39 +0000 (17:43 +0900)]
Evas filters: Fix blur from rgba to alpha

9 years agoEvas filters: Reduce debugging with default compile opts
Jean-Philippe Andre [Tue, 9 Jun 2015 12:29:13 +0000 (21:29 +0900)]
Evas filters: Reduce debugging with default compile opts

When using debug compile flags, full-on filter debug will happen.

9 years agoEvas filters: Implement Lua classes for colors & buffer
Jean-Philippe Andre [Thu, 4 Jun 2015 10:42:38 +0000 (19:42 +0900)]
Evas filters: Implement Lua classes for colors & buffer

Reuse previous code for buffer. Keeps API stability.

The new class "color" is here for a more convenient color
representation. This way, colors can be represented in more
natural ways like: {r,g,b[,a]}, 0xaarrggbb, "red", "#rrggbb"

Class color is implemented in pure Lua, and adds a .lua file
to Evas' share folder.

9 years agoEvas filters: Create specific log domain
Jean-Philippe Andre [Wed, 3 Jun 2015 10:59:11 +0000 (19:59 +0900)]
Evas filters: Create specific log domain

This will improve the debug output of evas and specifically
allow setting "evas_filter" log level to a higher or lower
value depending on what you are debugging :)

9 years agoEvas filters: Pass edje state name & value to the filters
Jean-Philippe Andre [Thu, 28 May 2015 08:59:59 +0000 (17:59 +0900)]
Evas filters: Pass edje state name & value to the filters

From Edje, pass the current state info (name and value) as well
as the next state and the transition position when applicable.

9 years agoEvas filters: Pass object scale to Lua state
Jean-Philippe Andre [Thu, 28 May 2015 06:59:10 +0000 (15:59 +0900)]
Evas filters: Pass object scale to Lua state

9 years agoEvas filters: Implement table & function support for curve
Jean-Philippe Andre [Thu, 28 May 2015 05:37:10 +0000 (14:37 +0900)]
Evas filters: Implement table & function support for curve

Now the points can be specified by passing a table or a proper Lua
function. The previous functionality (parsing a string) is still
valid.