Commit Graph

46452 Commits

Author SHA1 Message Date
Ji-Youn Park 28add49a80 Elm_Glview: fix wrong parameter type 2016-03-17 20:14:55 +08:30
Ji-Youn Park 9dd69c849e Elm_Glveiw: add legacy API to .h file 2016-03-17 17:38:55 +08:30
Ji-Youn Park 570d532f11 elm_glview: eo-fication for set function
remove elm_glveiw_XXX_set function and create event
render_set-render
init_set->created
resize_set-> resized
del_set -> destroyed
2016-03-17 16:50:44 +08:30
Ji-Youn Park 47172d7274 Elm_glview: remove elm_glview_size_set.
move elm_glview_size_set to legacy wrapper
2016-03-17 16:50:32 +08:30
Ji-Youn Park e2efc6d6d1 Elm_glveiw: change elm_glview_draw_request_set to elm_glview_draw_request.
change draw_reqeuest property to method.
2016-03-17 16:50:16 +08:30
Ji-Youn Park 36af2dfcd4 Elm_glview: change method from changed_set to draw_request_set
changed_set method is already used in Evas.Object_Smart.
elm_glview_changed_set requests Elm_glview for drawing, so change the API to
elm_glview_draw_request_set.
2016-03-17 16:50:00 +08:30
Jean-Philippe Andre 0ac87d6a91 Efl.Canvas.Image: Add forgotten files!
Oh...
2016-03-17 14:14:06 +09:00
Jean-Philippe Andre ca65f66fc0 Efl.Canvas.Surface: Fix linking of inexisting functions
The EO files specified some functions that were not implemented.
Somehow this links fine with recent GCC but older versions have
trouble.
2016-03-17 14:02:26 +09:00
Jean-Philippe Andre 03b147dc17 Examples: Fix usage of evas image apis 2016-03-17 13:55:01 +09:00
Jean-Philippe Andre 612fc42f49 Elm.Image: Improve error message after load failure
"Things are going bad for <path> (<internal pointer>)" was pretty
useless, and confusing to some people.

Also, simplify code wrt. returning a bool...
2016-03-17 13:55:01 +09:00
Jean-Philippe Andre 8c398c365c Evas.Image: Simplify inheritance tree of image classes
This is a bit artificial, as all image objects are still based on
the Evas.Image main class. The inheritance tree alone does not
give much information on what features are supported by which
class (eg. only Efl.Canvas.Image supports the file interface for
file_set).
2016-03-17 13:10:35 +09:00
Jean-Philippe Andre 8367f497b8 Evas.Image: Create Efl.Canvas.Image for file & data images
This replaces standard Evas_Object_Image when it is used "normally",
ie. it's an image from a file or from a pixel buffer. All other APIs
(proxy, snapshot, 3d, gl, ...) are disabled on this object.

Also, reduce number of failing calls when the object is not a legacy
object, but a legacy function is called. This is because a lot of
image APIs are called internally using the legacy APIs, often in
order to reset the state of the image object (eg. set file to NULL,
etc...)
2016-03-17 13:10:35 +09:00
Jean-Philippe Andre edafd4ec34 Evas: Improve EVAS_OBJECT_LEGACY_API a bit more
This now calls EINA_SAFETY_ERROR which makes it easy to then
break inside _eina_legacy_error.
2016-03-17 13:10:35 +09:00
Jean-Philippe Andre 6ac68c9252 Evas.Image: Move all legacy EAPI out of evas_object_image.c
Some of these functions are still be in use by the new EO objects,
like data_set/get/copy_set.
2016-03-17 13:10:35 +09:00
Jean-Philippe Andre 6b03d46d54 Evas.Image: Fix ERR message (invalid call)
There was an unintended change from a silent return to EINA_SAFETY
inside _evas_object_image_free(). This avoids calling the function
altogether.
2016-03-17 13:10:35 +09:00
Jean Guyomarc'h 49b966b653 docs: properly ends doxygen groups 2016-03-16 23:25:04 +01:00
Jean Guyomarc'h 52f0f1bfb1 docs: fix invalid end of group 2016-03-16 23:18:04 +01:00
Stefan Schmidt 407a717200 docs: bring back docs from eo files by switching to the new group name
During the migration of docs to the eo file the group name changed to have a
Elm_ prefix which resulted in our docs not including this group and not showing
any of the docs in there. Switching to the new name fixes this.

Having this prefix makes sense especially as we are now merging elm into efl.

Hopefully that will be the last change.

@fix

Ref T3109
2016-03-16 22:52:23 +01:00
Stefan Schmidt 6dcd4f6287 docs: bring back docs from eo files by switching to the new group name
During the migration of docs to the eo file the group name changed to have a
Elm_ prefix which resulted in our docs not including this group and not showing
any of the docs in there. Switching to the new name fixes this.

Having this prefix makes sense especially as we are now merging elm into efl.

This did not only affect the widget but also our container. Infrastructure is
up next. Hopefully that will be the last change.

@fix

Ref T3109
2016-03-16 21:52:09 +01:00
Stefan Schmidt e981bfc4e8 cxx: follow eoid to eo_self rename in cxx generator and bindings
Bringing efl back to a building state with cxx enabled.
2016-03-16 21:11:17 +01:00
Stefan Schmidt 536a64c447 docs: bring back docs from eo files by switching to the new group name
During the migration of docs to the eo file the group name changed to have a
Elm_ prefix which resulted in our docs not including this group and not showing
any of the docs in there. Switching to the new name fixes this.

Having this prefix makes sense especially as we are now merging elm into efl.

@fix

Fixes T3109
2016-03-16 21:00:37 +01:00
Mike Blumenkrantz dcebc67ab9 label: add themes for left and right aligned text
@feature
2016-03-16 12:13:22 -04:00
Chris Michael 7cbd8c7b93 evas: Fix incorrect expression in efl_canvas_surface_x11
This patch fixes an issue detected by Coverity where 'obj' is written
twice with the same value

CID1353363

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-03-16 09:24:20 -04:00
Chris Michael df12843512 evas: Fix incorrect expression in efl_canvas_surface_tbm
This patch fixes an issue detected by Coverity where 'obj' is written
twice with the same value

CID1353365

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-03-16 09:22:46 -04:00
Chris Michael 114d010fc1 evas: Fix incorrect expression in efl_canvas_surface_wayland
This patch fixes an issue detected by Coverity where 'obj' is written
twice with the same value

CID1353365

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-03-16 09:21:08 -04:00
Oleksandr Shcherbina 296e8c22b0 evas.canvas3d: support static LOD technic
Summary:
Main flow: add several meshes(with different number of polygons) in one node,
enable LOD for node, set boundary distances to choose need mesh depend on distance
to the camera node, render only need mesh. Add API's enable lod in
evas_canvas3d_node module and set boundary distance to module
evas_canvas3d_mesh module Refactored function evas_canvas3d_node_mesh_collect
to calculate distance. Refactored _scene_render to have possibility pass to the
render only need LOD mesh.

Reviewers: cedric, Hermet, raster

Subscribers: jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2016-03-15 12:49:39 -07:00
jiin.moon cdb7286485 evas: some changes for preload thread dead lock issue
Summary:
Add spin lock to access to new flag can check to
status of the preload

Reviewers: jpeg, cedric, jypark

Subscribers: raster

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2016-03-15 11:57:25 -07:00
taehyub 374a102573 interface_scrollable: fix the getting scroll view port size
Summary:
In auto scroller mode, both of vbar and hbar of scroller is created when scroller content size is getting large.
At the state, If we make hbar disappear by resizing scroller content, vbar size is set to small.
Because at the moment, the width and height of elm.swallow.content of sid->edje_obj are zero.

@fix

Test Plan:
1. set scroller auto mode
2. make vbar and hbar by resizing scroller content
3. make hbar disappear by resizing scroller content
4. see the vbar size whether it is correct or not

Reviewers: Hermet, Jaehyun_Cho, NikaWhite, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2016-03-15 11:49:53 -07:00
Jee-Yong Um bdde588b16 edje: remove redundant fetch code in file.set method
Summary:
Edje data structure is passed as a parameter, but in file.set method
_edje_fetch() is called one more time unnecessarily.

Reviewers: cedric, jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2016-03-15 11:39:59 -07:00
Jee-Yong Um afb49ec096 edje_cc: remove unnecessary internal function
Summary:
This internal function was made for checking non-existence of
Edje Part when handling insert_before/after attributes.
However, checking is implemented in different way and this function
is not used anywhere.

Reviewers: cedric

Subscribers: jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2016-03-15 11:31:33 -07:00
Jee-Yong Um 4c2628b03e edje: fix wrong char in error message
Summary: fix wrong char in error message of _edje_real_part_image_set()

Reviewers: cedric, jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2016-03-15 11:29:54 -07:00
Jee-Yong Um a91d5e8f72 edje_cc: fix typo in error message
Summary: meaningless suffix is attached to a word in error message.

Reviewers: cedric

Subscribers: jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2016-03-15 11:24:31 -07:00
Hosang Kim 544bd91e5f edje_cc: fix group inheriting
Summary:
When edje_cc inherits group, group's script wasn't copied.
So base group and inherited groups use same pointer.
When edje_cc makes lookups for script, loopkups is overwritten.

Test Plan: elementary_test -> shown error log

Reviewers: Hermet, woohyun, cedric, raster

Subscribers: jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2016-03-15 11:23:32 -07:00
Oleksandr Shcherbina 48f75713e5 eina: fix eina vector in case output vector the same as target vector
Summary:
Use aditional temporary vector for intermedia results in case output vector
the same as target vector in functions:
eina_vector2_transform,
eina_vector2_homogeneous_direction_transform,
eina_vector3_cross_product,
eina_vector3_transform,
eina_vector3_homogeneous_direction_transform
It was in original version (in evas_vecN, module evas_3d_utils.h)
Enrich test suit for this case.

Reviewers: jpeg, cedric

Reviewed By: cedric

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2016-03-15 11:20:55 -07:00
Tom Hacohen d8f76f5fb6 Change elm according to the renaming of the eo_add() current object. 2016-03-15 15:30:32 +00:00
Tom Hacohen 8706d03b43 Change the EFL according to the renaming of the eo_add() current object. 2016-03-15 15:25:54 +00:00
Tom Hacohen bd2a9015c3 Eo: eo_add(), change current object's name (api).
It was temporarily eoid, change it to eo_self which is more
descriptive. In this process I also made it a macro to prepare
for the proposed changes on the ML for the fallback implementation
for compilers that don't support the compound statements returning
values gcc extension.
2016-03-15 15:22:17 +00:00
Jean-Philippe Andre caa7039b2c Elm.Image: Adapt to recent changes in Efl.Image 2016-03-15 14:07:39 +09:00
Jean-Philippe Andre 2b249423e7 Efl.Gfx.View: Try to document view_size
This is not easy as the view size might have different meanings.
Also, it's just not quite clear in my mind what it is :)
2016-03-15 11:27:15 +09:00
Jean-Philippe Andre b239098441 Efl.Image: Move alpha to Efl.Gfx.Buffer
The buffer class is more low-level and alpha is a pretty
common property. I still wonder how to share it with the canvas
and other things.

It doesn't belong to Efl.Gfx.Base since we could have plain old
buffers that are not evas objects (only in-memory buffers) but
Efl.Gfx.Base may also need the alpha flag.
2016-03-15 11:11:59 +09:00
Jean-Philippe Andre 97c9ced648 Efl.Gfx.Buffer: Simplify data_get/set
Remove alpha, l, r, t, b and output length. Those are simply
too many parameters, making the function too inconvenient to use.
2016-03-15 11:11:59 +09:00
Jean-Philippe Andre 055ea6445a Evas image: Move content_hint and scale_hint to Efl.Image 2016-03-15 11:11:59 +09:00
Jean-Philippe Andre 35f8d81d97 Evas image: Deprecate evas_object_image_alpha_mask_set 2016-03-15 11:11:59 +09:00
Jean-Philippe Andre b7e0eec089 Evas.Image: Fix legacy proxy API 2016-03-15 11:11:59 +09:00
Jean-Philippe Andre 0c95b69474 Evas.Image: Move native surfaces to Efl.Canvas.Surface
X11, TBM and Wayland support are implemented for now.
2016-03-15 11:11:59 +09:00
Jean-Philippe Andre 20b4d9dd6a Evas engines: Add internal functions for native images
- image_native_init
- image_native_shutdown

init() will be used to test whether the engine supports a
certain type of native image.

Note: Native image support is very much dependent on the engine,
and some stuff like opengl should work everywhere (even in sw
with osmesa) but that's not the case.
2016-03-15 11:11:59 +09:00
Jean-Philippe Andre a58a3532e3 Evas.Image: remove video surface
Video stuff should move to a proper player class. I still wonder
how exactly Tizen video should be handled, as they continue to
reject emotion.
2016-03-15 11:11:59 +09:00
Jean-Philippe Andre 8ec48dc268 Edje: Fix warning with clang
Annoying incomplete initializer warning. Apparently gcc/clang
don't consider {0} as good enough for "initialize everything to 0"
even though they do it.
2016-03-15 11:11:59 +09:00
Jean-Philippe Andre caf68f14af Examples: Update evas object eo example 2016-03-15 11:11:59 +09:00
Jean-Philippe Andre 7ddb73b177 Evas: Move 3d to Efl.Canvas.Scene3d
This still seems a bit redondant with the underlying
Evas.Canvas3d.Scene class.
2016-03-15 11:11:59 +09:00