aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/edje (follow)
Commit message (Collapse)AuthorAgeFilesLines
* edje: fix NULL ptr dereferenceAmitesh Singh2017-12-011-2/+2
| | | | Fixes CID 1383425
* edje legacy: replace Edje_Object with Evas_ObjectAmitesh Singh2017-11-301-134/+134
|
* edje: fix the typo in prev commitAmitesh Singh2017-11-301-1/+1
|
* Efl.Ui.Base: remove base_scale.get{} from interface.Amitesh Singh2017-11-303-10/+6
| | | | base_scale for edje would be legacy now.
* efl: Introduce interface Efl.DupJean-Philippe Andre2017-11-301-1/+1
| | | | | | | | A few classes allow their objects to be duplicated, so they should all use the same interface. Also, rename VG's dup to copy_from as it's not conforming to the definition of dup.
* evas: Implement scale API in proper EO fashionJean-Philippe Andre2017-11-302-12/+12
| | | | | | | | | | | | | | This removes the internal function pointer for scale_update. This makes all relevant classes implement the scale API in EO. This removes the duplicate function in Efl.Canvas.Object and only uses the one from Efl.Ui.Base interface. This *seems* to be working as expected. Fingers crossed! PS: I don't like the name Efl.Ui.Base. It's an interface for a few common API's between Gfx, Canvas and UI levels... Maybe scale simply doesn't belong there.
* edje: Move perspective to legacyJean-Philippe Andre2017-11-304-152/+159
| | | | | | | | | | | | Note: Edje.Perspective is not bound to EO, and this is the only reason why I'm moving this to legacy only. Marking as beta would mean the legacy APIs would not be generated, so that would have almost the same effect as moving to legacy. It would be nice to actually support this in EO, though this seems like a rarely used feature. Ref T5315
* edje: Move text_change_cb to legacy onlyJean-Philippe Andre2017-11-294-26/+29
| | | | | | | | | | | This should probably be replaced by a well defined signal. Note: If edje sends signals on swallow/unswallow and text set/unset we could simplify some of the elementary code, eg. for button's icon handling. The theme should be handling the padding automatically, it's not the elementary widget's role Ref T5315
* edje: Move "preload" to legacy onlyJean-Philippe Andre2017-11-293-22/+23
| | | | | | | | | EO file API is still in flux, especially wrt. async loading. Let's just keep this in legacy for now. A few more patches and Edje.Object will reach its final form. Ref T5315
* edje: Implement Efl.File.load_errorJean-Philippe Andre2017-11-293-31/+16
| | | | Don't create a new function with the same name, it's absurd.
* efl: Split Efl.Container and Efl.ContentJean-Philippe Andre2017-11-207-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | When I first implemented the Efl.Container interface I made a mistake of mixing "single slot" content API's with "multiple children" content API's. This should fix that, by separating API's that are for a single part and those that deal with a list of children. Efl.Content: Single slot. This will be used a lot by efl_part() objects, and for the default content of widgets (eg. the window content). Efl.Container: Multiple children. Used by lists, boxes, layouts (edje/elm), etc... I didn't see any class that implemented both interfaces (note: Layout implements Container and Button implements Content, so technically Button implements both through inheritance). For now the eo_prefix is not changed in Efl.Container. I wonder if it should be reset (to efl_container) or not. This would only affect the C API. Ref T5328
* edje: last improvement of _edje_hash_find_helper speed by reducing call to ↵Cedric BAIL2017-11-131-0/+9
| | | | eina split function.
* edje: cache last string search miss to reduce useless call to ↵Cedric BAIL2017-11-132-1/+11
| | | | eina_str_split_full by 3.
* edje: cleanup life cycle of buffer in _edje_hash_find_helper.Cedric BAIL2017-11-131-4/+3
|
* edje: add event for inform about circular dependencyVyacheslav Reutskiy2017-11-132-1/+2
| | | | | | | This commit add the event "circular,dependency" for edje object. Given event is called when edje found the circular dependency between parts in object. This event will be usefull and informative paired with Edje_Edit API.
* Revert "Edje: use textblock by default"Carsten Haitzler (Rasterman)2017-11-115-523/+188
| | | | | | | | | | | | | | This reverts commit ef3d2120bfa58f9247a441602bd30f13cc7f225a. This breaks E. pager ono my right screen looks like: http://devs.enlightenment.org/~raster/shot-2017-11-11_12-13-14.png on my left screen shellf keeps swapping between 2 dizes wobbling back and forth every frame eating cpu and making it "blurry"... note - theme is the flat one in devs/raster/theme/flat2 branch. so this change certainly breaks something...
* Edje: use textblock by defaultDaniel Hirt2017-11-105-188/+523
| | | | | | | | | | | | | | | | | | | | | | As most of you know, TEXT part was, up to this point, an Evas.Text object. This patch merges TEXT and TEXTBLOCK both to use Efl.Canvas.Text. Code is added to emulate what TEXT did that TEXTBLOCK did not. I believe we can move forward with TEXT, and deperacate TEXTBLOCK from the EDC. You can also set markup to TEXT parts. Exactness seems to show some differences, but further examination shows that it's due to difference in how width is calculated in Efl.Canvas.Text. The results seem correct. Be sure to report of any breakage via Phabricator or contact me directly. I am running E with this and did not stumble upon any crashes or visual bugs. Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* Edje: move textblock handling to a separate sourceDaniel Hirt2017-11-103-577/+595
| | | | Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* edje: Oops. Remove edje_global include as well.Jean-Philippe Andre2017-11-081-1/+0
|
* edje: Hide edje_global from the rest of the worldJean-Philippe Andre2017-11-085-28/+50
| | | | | | | | | | Call provider_find on the loop (or basically any object) with the color/text/size class interface instead, to find it. The main loop is the main holder of those objects. Note: This makes use of provider_find instead of direct access to the variable, in order to self-test the code. In theory release builds will not do this and user directly the variable.
* Efl: add class interfaces (color/text/size)Jee-Yong Um2017-11-089-292/+347
| | | | | | | | | | Summary: implement Efl.Gfx.Class interface Reviewers: jpeg, cedric Subscribers: taxi2se, herdsman Differential Revision: https://phab.enlightenment.org/D4403
* evas/vg: changed the efl_vg_dup api signature.subhransu mohanty2017-11-081-3/+1
| | | | | | | | Reviewers: jpeg, cedric Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5440
* edje: don't return negative width and height from _parts_extendsYoungbok Shin2017-11-061-2/+5
| | | | | | | | | | | | | | | | Summary: It should return width and height with positive values or zero. @fix Test Plan: make check Reviewers: raster, jpeg, cedric Reviewed By: raster Subscribers: jiin.moon Differential Revision: https://phab.enlightenment.org/D5422
* eo files: convert various to use @crefDaniel Kolesa2017-11-021-1/+1
|
* evas: Move evas_canvas.eo to legacy-onlyJean-Philippe Andre2017-11-013-4/+4
| | | | | | | | | This isn't meant to be installed. The canvas API in EO is based around the interfaces Efl.Canvas and the widget Efl.Ui.Win. Anything else is not EO (eg: ecore_evas, evas, ...) Note: evas_canvas3d is the last remaining thing that is installed along EO files, but those are all beta APIs.
* evas vg: Add FIXME and fix strbuf useJean-Philippe Andre2017-10-271-4/+9
| | | | | | | | | | This is the result of a really quick review of the new VG code. Most of it was moved around, but this merge includes the following: - Move logic from edje to evas - Create static lib for common VG handling - Add file_set() API - Add a basic VG cache in evas side - Add savers modules, implement loaders and savers.
* edje: cleanup old implementation of handling svg file.subhransu mohanty2017-10-274-1129/+2
|
* edje: use the file_set api from vg canvas to load and parse svg file.subhransu mohanty2017-10-271-40/+25
|
* evas: add set function for root_node property.subhransu mohanty2017-10-231-4/+1
| | | | | | | | | | | | | | | | | | | | Summary: Currently user ask for the root_node from the evas_vg object and then attach its tree by setting the root node as parent. With this change this process will be explicit. user has to set the root node to the evas_vg object and the object will take the ownership of the tree. User can query the current vg_tree by root_node_get api. Test Plan: Fixed the test app to reflects this change. Reviewers: jpeg, cedric Reviewed By: jpeg, cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5347 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
* edje: add missing documentation.Bowon Ryu2017-10-231-0/+8
| | | | | | | | | | Summary: This adds missing doxgen documentation for Edje_Common.h Test Plan: API Doxygen Revision Reviewers: cedric, jpeg, myoungwoon Differential Revision: https://phab.enlightenment.org/D5345
* edje: Use EO's beta auto_unref API for partsJean-Philippe Andre2017-10-188-157/+100
| | | | This simplifies code and avoids unwanted leaks.
* edje: correct the usage of EINA_SIZE2DThiep Ha2017-10-181-6/+6
| | | | | The usage of EINA_SIZE2D macro as left hand side variable does not save the size value. The Eina_Size2D should be used.
* edje_edit: duplicate assignment to variable.Subodh Kumar2017-10-161-6/+0
| | | | | | | | | | | | | | | | Summary: Avoid duplicate assignment to same variable. @fix Reviewers: cedric, jpeg Reviewed By: cedric, jpeg Subscribers: shilpasingh, jpeg Differential Revision: https://phab.enlightenment.org/D5275 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* edje: no case is defined for Preprocessor Flag "EDJE_EXTRA_MODULE_NAME". So ↵Prince Kumar Dubey2017-10-131-5/+1
| | | | | | | | | | | | removing it to avoid printf warning. Reviewers: raster, cedric Subscribers: rajeshps, jpeg Differential Revision: https://phab.enlightenment.org/D5298 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
* eo: Simplify debug_name_overrideJean-Philippe Andre2017-10-131-3/+2
| | | | | | | | | | | | Simply pass in the strbuf and don't expect the callee to own it. This makes things simpler and safer (it'll crash only if the callee frees said strbuf, and shouldn't leak). efl_ebug_name is new in the upcoming release, EFL 1.21. Realised this after talking with Amitesh. Thanks. See 999dbd9764426890c0e11841358f9219082b89b2 And c4769ff8989bab2b745017b843f073e5737e91e0
* edje_object: Mark access_part_iterate as @betaJean-Philippe Andre2017-10-122-1/+2
| | | | | | | This may be internal... Not sure we need this exposed outside of the ATSPI layer, really. Marking as beta for now. Ref T5315
* Revert "edje: moved from edje_multisense.c to Ecore_Audio.h for select the ↵Carsten Haitzler (Rasterman)2017-10-071-3/+9
| | | | | | | | type of render." This reverts commit c1c424a4075a85375c83f4c137b74c9919c5fc57. revert edje multisense changes to match ecore audio revert
* evas: remove use of engine image_load from Evas.Canvas3D.Texture.Cedric Bail2017-10-041-1/+1
|
* edje: remove duplicated code and rely on Efl.File { set; get; } mixin.Cedric Bail2017-10-044-84/+8
|
* edje: moved from edje_multisense.c to Ecore_Audio.h for select the type of ↵Ivan Furs2017-10-031-9/+3
| | | | | | | | | | | | | | render. Reviewers: NikaWhite, raster, cedric, vtorri, rimmed Reviewed By: NikaWhite, vtorri Subscribers: artem.popov, cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5096 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* Canvas layout: fix Efl.text (non-legacy) TEXT partsDaniel Hirt2017-10-021-15/+9
| | | | | | | Current implementation should also support TEXT parts (like button) with usage of efl_text_set. Follow-up to 0061a4bb349e6c8e122913791bf83f7f40b0cede.
* Canvas layout: improve legacy code paths for Efl.TextDaniel Hirt2017-10-013-17/+28
| | | | | | Better handling of specific cases where you want to efl_text_set on a TEXTBLOCK part. Follow-up to af1595fd0160f76de82cddeb2576143f65492c0b.
* Canvas layout: fix legacy text setDaniel Hirt2017-10-011-2/+2
| | | | | | | | Keep the legacy code path when using edje_object_part_text_set. Fixes e's notification that got broken after 3642b3ae679e3bedba4155fb9e54b44483b3b9e1. Also, limit new efl_text_markup set to TEXTBLOCK parts.
* edje entry: fill content info when text is deleted by imf eventYoungbok Shin2017-09-291-3/+10
| | | | | | | | | | | | Summary: There was missing info when text is deleted by _edje_entry_imf_event_delete_surrounding_cb(). @fix Test Plan: N/A Reviewers: kimcinoo, raster, cedric, jpeg, herdsman Differential Revision: https://phab.enlightenment.org/D5240
* Canvas layout: support markup for efl_partDaniel Hirt2017-09-284-17/+89
| | | | | | | | | | | Users can now do either: efl_text_set(efl_part(obj, "part"), "text"); efl_text_markup_set(efl_part(obj, "part"), "text"); Also have efl_text_get/markup_get. Using markup_set will allow to choose whether to set a markup or a text to the text part.
* edje - fix check return of _edje_fetchCarsten Haitzler (Rasterman)2017-09-281-5/+6
| | | | fixes CID 1381326
* eolian: rename generic_value to any_valueDaniel Kolesa2017-09-221-1/+1
|
* EFL For WIN32: Replace HAVE_EVIL define with _WIN32Vincent 'vtorri' Torri2017-09-221-1/+1
|
* edje: Add part_type_get APIJean-Philippe Andre2017-09-218-68/+106
| | | | | | | | | | | | For now I made this EO-only but this definitely could be expose in legacy API as well. This simply gives exact information about the type of part, after doing a recursive search. Edit Edit doesn't do a recursive search, only a direct one, which can yield invalid results (eg. RECT or NONE instead of TEXT in case of "elm.units.max" for a slider). @feature
* Edje: move selection-related part_text API to legacyDaniel Hirt2017-09-203-84/+99
|