aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary/test_evas_snapshot.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* efl_ui_range_display: move events from spinMarcel Hollerbach2019-07-311-1/+1
| | | | | | | | | | | | we concluded min,reached and max,reached should be on every widget that implements range_display. This here is the start of that work, the events are moved, next commit fixes all widgets, the last commits enables tests in the spec unit test. ref T7897 ref T7895 Differential Revision: https://phab.enlightenment.org/D9371
* efl_input_clickable: rename efl_ui_clickable to efl_input_clickableWooHyun Jung2019-07-291-4/+4
| | | | | | | | | | | | | | | | | | | | Summary: Renamed all efl_ui_clickable_XXX to efl_input_clickable_XXX based on the discussion in T7847 ref T7847 T7976 Reviewers: zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7976, T7847 Differential Revision: https://phab.enlightenment.org/D9427
* Rename Efl.Ui.Direction -> Efl.Ui.Layout_OrientationXavi Artigas2019-05-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This clarifies a bit the whole Orientation vs. Direction confusion, at the expense of longer names (Image_Orientation vs. Layout_Orientation). Also, the interfaces are now adjectives (Orientable) and the enums have long names (*_Orientation). Pretty big patch, but no functional changes. Relates to T7863 Test Plan: Everything builds and passes tests. Elementary_tests show same behavior, including the "inverted" widgets, which are the only parts which received a bit of code changes. Proof: https://travis-ci.org/Enlightenment/efl/builds/536277282 Reviewers: zmike, bu5hm4n, cedric Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8946
* efl_pack: split algin and padding propertyMarcel Hollerbach2019-04-261-1/+1
| | | | | | | | | | | | the pack interface is a general interface for how we pack things into a container. the align and padding property has less to nothing to do with this. Hence this commit splits the two properties into theire own interface. fix T7825 Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D8699
* elm: explicitly include Efl_Ui.h in binariesMike Blumenkrantz2019-03-071-0/+1
| | | | | | | | it looks like people have been relying on Elementary.h to include eo apis even though this obviously makes no sense Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8223
* efl.file: improve api a bitMike Blumenkrantz2019-02-271-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: the previous implementation/api had a number of issues: * "file" property contained both "file" and "key" values - also performed file loading operation * "load_error" property which was specific to image objects * no methods for controlling file loading/unloading this patch attempts the following changes: * split "file" property into "file" and "key" properties - also remove "key" from existing "mmap" property * remove "load_error" * directly return error codes from operations * add "load" and "unload" methods for directly controlling load state * add implicit file loading if file/mmap is set during construction * rewrite all efl.file implementations to move file loading into load() method * rewrite all usage of efl.file api based on these changes * add C extension functions to mimic previous behavior ref T7577 Reviewers: segfaultxavi, bu5hm4n, cedric Reviewed By: segfaultxavi Subscribers: vitor.sousa, #reviewers, #committers Tags: #efl_api Maniphest Tasks: T7577 Differential Revision: https://phab.enlightenment.org/D8018
* Rename Efl.Gfx.Map -> Efl.Gfx.MappingXavi Artigas2019-02-211-4/+4
| | | | | | | | | | | | | | | | | | | | | Summary: For clarity, since there are all kinds of maps, including a navigation map widget. Also, corrected some misspellings. Test Plan: make && make check && make examples all work Reviewers: cedric, zmike, bu5hm4n Reviewed By: cedric Subscribers: Jaehyun_Cho, #reviewers, #committers Tags: #efl Maniphest Tasks: T7564 Differential Revision: https://phab.enlightenment.org/D7974
* api: efl.gfx.size_hints -> efl.gfx.hintsMike Blumenkrantz2019-02-211-7/+7
| | | | | | | | | | | | | | | | | | | | Summary: these hints are not strictly size-related, so renaming them is more consistent with their actual function ref T7563 Depends on D7968 Reviewers: segfaultxavi, cedric, bu5hm4n Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7563 Differential Revision: https://phab.enlightenment.org/D7977
* gfx: Add size hint fill (EO)Yeongjong Lee2019-01-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: If widget use both hint_align(HINT_FILL) and hint_max together, there is no way to set to hint_align. See, elementary_test -to 'efl.ui.box' - "Button with a quite long text." button. you can control button position using "Box align" slider, but this is not proper implementation. When there are two widget which have hint_align(HINT_FILL) and hint_max, those positions are determined by box_align rather than hint_align. it means widget align cannot be set individually. To solve this problem, this patch add hint_fill property. in order to avoid conflict with legacy API named evas_object_size_hint_fill_set(), it only works for EO widgets(made by efl_add). Also, EFL_GFX_SIZE_HINT_FILL is removed. @feature Test Plan: elementary_test -to 'efl.ui.box' elementary_test -to 'efl.ui.table' Reviewers: jpeg, Hermet, Jaehyun_Cho, raster, barbieri Reviewed By: Jaehyun_Cho Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T3912 Differential Revision: https://phab.enlightenment.org/D7409
* Revert "efl_add_ref - fis to use efl_add properly with a parent."Cedric BAIL2018-05-241-1/+1
| | | | | | | | | | | | This reverts commit 2fb5cc3ad09f6aaf82b5d1131ac5ed22ed848bd4. Most of this change where wrong as they didn't affect the destruction of the object. efl_add_ref allow for manual handling of the lifecycle of the object and make sure it is still alive during destructor. efl_add will not allow you to access an object after invalidate also efl.parent.get will always return NULL once the object is invalidated. Differential Revision: https://phab.enlightenment.org/D6062
* Efl.Gfx.Entity (from Efl.Gfx)Xavi Artigas2018-04-241-1/+1
| | | | | | Ref https://phab.enlightenment.org/T6847 Reviewed-by: Cedric Bail <cedric@osg.samsung.com>
* Efl.Canvas.Scene (from Efl.Canvas)Xavi Artigas2018-04-241-2/+2
| | | | | | Ref https://phab.enlightenment.org/T6847 Reviewed-by: Cedric Bail <cedric@osg.samsung.com>
* efl_add_ref - fis to use efl_add properly with a parent.Carsten Haitzler (Rasterman)2018-03-291-1/+1
| | | | | fixes bc18b7e7ad1f8c5d587400b27fabab0865017011 and 168849e8a08966ecc284e28f64126a3a85965965
* efl: use efl_add_ref to create objects which have no parentCedric BAIL2018-03-201-1/+1
| | | | Signed-off-by: Mike Blumenkrantz <zmike@osg.samsung.com>
* interface : change efl_pack_grid and efl_ui_grid to efl_pack_table and ↵SangHyeon Lee2017-12-191-17/+17
| | | | | | | | | | | | | | | | | | | | efl_ui_table Summary: Change name of 'grid' to 'table' for matching on common ui naming and avoiding confusion with 'gengrid' and 'grid view'. grid will be introduced as grid image view after. Test Plan: checked make & make install checked make check - there are errors but not related with these changes. checked make examples - there are errors in cxx but not related with these changes. checked make discheck - failed test in elementary_test with Efl.Ui.Table and Table_static. Reviewers: raster, cedric, jpeg, felipealmeida Differential Revision: https://phab.enlightenment.org/D5668
* evas: Use Eina.Size2D for gfx.bufferJean-Philippe Andre2017-09-191-3/+1
| | | | For consistency.
* efl: Use Eina.Size2D for size hint minJean-Philippe Andre2017-09-181-1/+1
|
* efl: Use Eina.Size2D for Efl.Gfx.sizeJean-Philippe Andre2017-09-181-4/+4
| | | | | Big patch as a lot of things call or reimplement size_set. Hopefully I got it right... fingers crossed.
* elm_test: Remove calls to fill+expand (EO)Jean-Philippe Andre2017-08-231-12/+1
| | | | | | | | | | | | | | Wherever the EO API is used, i.e. efl_add() is used to create evas objects, we can skip the calls to set fill/expand. This new set of defaults indeed saves ~60 loc in the tests (out of 115 objects created). I found only 3 cases where the align had to be set manually (to the old default of 0.5). See 1a1b8bc45155dcb96129013c4177d742a06434e6 And e8b7f5f255ce37fbc47dbe38bd379bf1e824e0d2 Ref T5301
* efl.ui.box: Switch to Efl.Ui.Dir (EO)Jean-Philippe Andre2017-08-101-0/+1
| | | | | | | This makes the default box vertical, just like in legacy. The flow box is horizontal by default. Ref T5870
* elm_test: Remove calls to visible_set for EO objectsJean-Philippe Andre2017-08-041-17/+8
|
* elm: rename elm slider to Efl.Ui.SliderAmitesh Singh2017-06-121-2/+2
| | | | ref T5361
* rename elm_button to Efl.Ui.ButtonAmitesh Singh2017-05-221-4/+4
| | | | | | ref T5323 Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
* win: Remove special class Efl.Ui.Win.StandardJean-Philippe Andre2017-05-171-1/+1
| | | | | | | | | All windows should be standard, really. Except when using legacy elm_win_add() or if type_set() was called with a specific type. I dislike type_set... Ref T5322
* evas map: Introduce new API for maps (Efl.Gfx.Map)Jean-Philippe Andre2017-05-111-52/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements an entirely new API model for Evas Map by relying on high-level transformations on the object rather than an external Evas_Map structure that needs to be constantly updated manually. The implementation relies on Evas_Map. To rotate an object all you need to do now is efl_gfx_map_rotate(obj, 45.0, NULL, 0.5, 0.5); Or with a C++ syntax: obj.rotate(45.0, NULL, 0.5, 0.5); Or even simply (with default arguments): obj.rotate(45.0); The map transformation functions are: - rotate - rotate_3d - rotate_quat - zoom - translate (new!) - perspective_3d - lightning_3d @feature
* evas map: Replace EO APIs for populate with resetJean-Philippe Andre2017-05-111-1/+1
| | | | | | | Manual points population will eventually be useless as the map API will become more like a transformation API, where the current object geometry doesn't matter as much as which transformation is applied to it.
* elm test - fix windows compilation as _close is used in windowsCarsten Haitzler (Rasterman)2017-04-171-2/+2
| | | | | | fix T5391 - windows compilation due to symbol clash @fix
* evas filters: Fix maps with filtered snapshotsJean-Philippe Andre2017-04-141-0/+69
| | | | | Another wonder of evas render... maps, clips, snapshots, filters... This fixes animations with windows that have a snapshot decoration.
* evas: Make save() work on snapshotsJean-Philippe Andre2017-04-141-3/+45
| | | | | | | | | | | | | This make save() work on snapshot objects, provided the call is done from inside render_post. Also, this saves the filtered output of an image, rather than its source pixels. Any call to save() on a filtered image must be done from post-render as well. Fixes T2102 @feature
* evas filters: Refactor to support reuse of buffersJean-Philippe Andre2017-04-141-1/+0
| | | | | | This will reuse existing buffers by resetting only the minimum required in the filter context (also reused). Work in progress, as the actual reuse is disabled for now.
* elm_test: Add slider to control blur radiusJean-Philippe Andre2017-04-141-3/+27
|
* evas filters: Expand snapshot regions by blur radiusJean-Philippe Andre2017-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | When using a snapshot object we have access to exactly all the pixels below it inside the snapshot surface. So, in order to produce a nice blur, it is necessary to expand this snapshot and then clip it otherwise the edges will look a bit ugly. Unfortunately, there are still places where blurs didn't look so good, as objects below an opaque region would never get rendered into the snapshot object. So the edges, inside a snapshot object, around an opaque region would have blur artifacts. This fixes that by shrinking the cutout regions by the radius of the filter. Eg for blur this is the blur radius. The test case in elm_test can exhibit this fix very clearly: a red glow would be visible around the opaque rectangle, but with these changes we instead see the blurry edges of the objects below the rectangle.
* elm_test: Add obscuring rectangle in snapshot testJean-Philippe Andre2017-04-141-3/+10
| | | | | This will test the obscured region optimization for the filters.
* elm_test: Add a test case for evas snapshotJean-Philippe Andre2017-04-141-0/+136
This showcases the object (not a widget) and will be the basis for a necessary optimization patch.