summaryrefslogtreecommitdiff
path: root/src/examples/evas (follow)
AgeCommit message (Collapse)Author
2020-01-20efl_canvas_animation: rename Animation_XXX to XXX_AnimationJaehyun Cho
Summary: In animation classes, "Animation" is not used as a namespace but it is used as a prefix in the class names. e.g. Efl.Canvas.Animation_Alpha However, those classes are basically animation classes with different features. Therefore, "Animation" should be used as a postfix in the class names. e.g. Efl.Canvas.Animation_Alpha -> Efl.Canvas.Alpha_Animation However, for the easier usage of C APIs, c_prefix of animation classes are remained to be "efl_animation_xxx". Reviewers: segfaultxavi, bu5hm4n, zmike, Hermet, jsuya Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11108
2019-12-10Example: enhance efl-canvas-vg-simpleJunsuChoi
Summary: - Use path reserve - Use container object Test Plan: ./build/src/examples/evas/efl-canvas-vg-simple Reviewers: Hermet, kimcinoo, smohanty Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10830
2019-12-06Example: Add efl-cavnas-vg-simple for unified APIJunsuChoi
Summary: Add Evas vector graphcis example based on unified APIs Test Plan: build ./build/src/examples/evas/efl-canvas-vg-simple Reviewers: Hermet, kimcinoo, smohanty Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10819
2019-12-04Efl.Canvas.Animation: Rename repeat_count to play_countXavi Artigas
Summary: play_count is a tad simpler to understand, since it means the TOTAL number of times the animation will play. The default value is now 1, and 0 means INFINITE (instead of -1). This allows removing yet another constant from header files. Depends on D10799 Test Plan: Everything builds and passes tests. Elm_test Animation.Repeat has been adjusted accordingly. Reviewers: bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10800
2019-11-20evas: migrate the vg json exampleMarcel Hollerbach
Summary: i was not able to run the example before this commit, nor after this commit. However, i had to migrate this, as i want to remove the player object. Depends on D10637 Reviewers: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Reviewed-by: Hermet Park <hermetpark@gmail.com> Differential Revision: https://phab.enlightenment.org/D10666
2019-11-20introduce efl_canvas_object_animationMarcel Hollerbach
this brings the animation to the canvas object. All the controls of the animation now do now require a player object anymore, you can just use the API that is directly on the Efl.Canvas.Object object. wip animation player replacement Differential Revision: https://phab.enlightenment.org/D10615
2019-11-18Revert "evas: migrate the vg json example"Hermet Park
This reverts commit a1f1cd6dd67de8eac0e302d47ce2aebf44aead16. Eeek, this shouldn't be pushed yet.
2019-11-18evas: migrate the vg json exampleMarcel Hollerbach
Summary: i was not able to run the example before this commit, nor after this commit. However, i had to migrate this, as i want to remove the player object. Depends on D10637 Reviewers: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10666
2019-10-24cxx: Add license to CXX bindings.Felipe Magno de Almeida
Summary: Like C#, it will also be Apache 2.0 Depends on D9414 Reviewers: vitor.sousa, woohyun, jpeg, lauromoura Reviewed By: lauromoura Subscribers: jpeg, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9418
2019-10-16examples/evas: free map pointer in map exampleMike Blumenkrantz
Summary: CID 1400959 Reviewers: kimcinoo Reviewed By: kimcinoo Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10406
2019-09-24efl/player: merge start+stop methods into 'playing' propertyMike Blumenkrantz
this has some overlap with the existing 'play' property which will soon be renamed. the intent here is that there is a property for controlling the 'playing' state and then another property for managing 'pausing' the play state ref T7877 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D10113
2019-09-18efl/image: rename "border" -> "border_insets"Mike Blumenkrantz
Summary: this is a clearer name which makes the intent of the API more obvious at a glance ref T7875 Subscribers: cedric, #reviewers, #committers Tags: #efl_api Maniphest Tasks: T7875 Differential Revision: https://phab.enlightenment.org/D9996
2019-09-16efl/image: Efl.Gfx.Border_Fill_Mode -> Efl.Gfx.Center_Fill_ModeMike Blumenkrantz
Summary: rename this to match its function ref T7926, T7875 Depends on D9932 Subscribers: cedric, #reviewers, #committers Tags: #efl_api Maniphest Tasks: T7926, T7875 Differential Revision: https://phab.enlightenment.org/D9933
2019-09-11ector: removed cairo backend.Hermet Park
For reducing maintainability burden, We drop supporting cairo backend. The default backend is to software implementation from now. It's well maintained so far and works good.x
2019-07-28examples - use putenv, not setenv for porting reasonsCarsten Haitzler (Rasterman)
putenv is more portable than setenv, so usethat instead. this nukes warnings on windows as evil is meant to go private and you thus have no setenv anymore.
2019-07-22evas_vg_json: Add image embedded exampleJunsuChoi
Summary: add example code and json resource. plus) Add ECTOR_BACKEND="default" Environment variable because cairo backend is not supported. Depends on D9218 Ector.Renderer : Implement Ector.Renderer.(Software).Image class D9219 Efl.Canvas.Vg : Implement Efl.Canvas.Vg.Image class D9220 vg_common_json : Support image data of node Test Plan: cd .src/examples/evas/ gcc -o evas_vg_json evas-vg-json.c `pkg-config --libs --cflags evas ecore ecore-evas eina ector eo efl` ./evas_vg_json Reviewers: Hermet, kimcinoo, smohanty Subscribers: bu5hm4n, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9351
2019-06-21evas vector: add a lottie animation example.Hermet Park
Summary: Depends on {D8941} Reviewers: #committers, jsuya Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8944
2019-06-18autotools: REMOVAL!Marcel Hollerbach
Get your seatbelt fastend! It is happening! AUTOTOOLS IS GONE NOW! All praise to meson! This time the final version, ci has been adjusted, and now does not try anymore to build a removed buildsystem. However, the scripts in there need cleaning up. Differential Revision: https://phab.enlightenment.org/D9027
2019-06-18Revert "autotools: REMOVAL!"Marcel Hollerbach
This reverts commit e8c69667b01e2795c1e4ead0536652f935ffa674. git push on a wrong branch, sorry. This will land today, but not now.
2019-06-18autotools: REMOVAL!Marcel Hollerbach
Get your seatbelt fastend! It is happening! AUTOTOOLS IS GONE NOW! All praise to meson! Differential Revision: https://phab.enlightenment.org/D9027
2019-05-22Rename Efl.Gfx.Orientation -> Efl.Gfx.Image_OrientationXavi Artigas
Summary: This will help disambiguate later on when we rename Efl.Ui.Direction to Efl.Ui.Layout_Orientation. Relates to T7919 Test Plan: Everything still builds and passes tests. Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8934
2019-05-20Rename Efl.Orient -> Efl.Gfx.OrientationXavi Artigas
Summary: And the Efl.Orientation interface -> Efl.Gfx.Orientable (with proper c_prefix so it is not too cumbersome to use from C). Also, turned the theme_rotation_apply() parameter into an int to avoid confusion. Fixes T7919 Depends on D8912 Test Plan: Everything continues to build and pass tests Reviewers: zmike, bu5hm4n, cedric, Hermet, Jaehyun_Cho Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T7919 Differential Revision: https://phab.enlightenment.org/D8926
2019-05-20Merge Efl.Orient and Efl.Flip into the same enumXavi Artigas
Summary: This is similar to how it is in Evas, and simplifies the Efl.Orientation interface, which only needs one property now. Relates to T7919 Test Plan: Everything builds and tests pass. There's only one example of efl_orientation_set() so there's not much to test yet. Reviewers: zmike, bu5hm4n, cedric, Hermet, Jaehyun_Cho Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T7919 Differential Revision: https://phab.enlightenment.org/D8912
2019-05-20evas example: add a png scale down example.Hermet Park
Reviewers: cedric, #committers, zmike Reviewed By: #committers, zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8886
2019-05-02Revert "evas png: apply interpolation when scale down image loading."Hermet Park
This reverts commit 53cdf850ba0f10a4a4db3e3c7f7cf1742ca88db1. It's still on reviewing, I didn't intend submitting.
2019-05-02evas png: apply interpolation when scale down image loading.Hermet Park
Summary: This patch improves png quality when image uses scale-down at image loading. Since current scale-down logic just works like point sampling, image result could be wholely different, Simply, if source data is consist of continous white and black pixels, and scale down factor is 2, the sampled data would be only white, and lose all black pixels, or vice versa. The result can be unexpected by users. Even current jpeg scale-down works with interpolation. Before: {F3711651} After: {F3711652} Original: {F3711653} Reviewers: cedric, raster, #committers, kimcinoo, jsuya Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8788
2019-03-26evas_3d: stop just segfaulting straight awayMarcel Hollerbach
Summary: there have been wrong function calls, that did not work at all, since the function pointer had the wrong type. This fixes the segfaulting examples of evas3d. However, they still do not render, at least, they don't crash anymore. Depends on D8381 Reviewers: cedric, segfaultxavi, zmike, stefan_schmidt Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8382
2019-03-18efl: remove EFL_EO_API_SUPPORT macroDaniel Kolesa
Summary: Since we're now going to be shipping some eo classes as stable, there is no point in keeping the eo api behind a macro, and it should be enabled by default. Another case is beta classes, but those are behind the EFL_BETA_API_SUPPORT guard. This also changes includes around the place where things are clearly broken (such as an included header needing something from another header but that other header being guarded, notably efl_ui_widget.h needing focus manager but focus manager being behind beta in Elementary.h) Reviewers: zmike, cedric, bu5hm4n, stefan_schmidt, segfaultxavi Reviewed By: cedric, segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8322
2019-03-06evas: remove all legacy usage from eo filesMike Blumenkrantz
this takes the current generated output from eolian for legacy code in evas and adds it to the tree, then removes legacy references from the corresponding eo files. in the case where the entire eo file was for a legacy object, that eo file has been removed from the tree ref T7724 Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de> Differential Revision: https://phab.enlightenment.org/D8107
2019-02-27efl.canvas.object: clip -> clipper && clipees -> clipped_objectsMike Blumenkrantz
Summary: also clipees_has -> clipped_objects_count ref T7555 Depends on D8039 Reviewers: segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7555 Differential Revision: https://phab.enlightenment.org/D8040
2019-02-27efl.file: improve api a bitMike Blumenkrantz
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
2019-02-25efl-csharp: Remove legacy Evas bindings.Lauro Moura
Summary: Pave the way to correct beta classes handling. Reviewers: vitor.sousa, segfaultxavi, bu5hm4n Reviewed By: vitor.sousa, bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8004
2019-02-22mono-examples: Fix after Efl.Gfx.Hints renameXavi Artigas
2019-02-21Rename Efl.Gfx.Map -> Efl.Gfx.MappingXavi Artigas
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
2019-02-21api: efl.gfx.size_hints -> efl.gfx.hintsMike Blumenkrantz
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
2019-01-02examples: evas-3d-obj provide a biffer string bufferMarcel Hollerbach
2018-11-29csharp: Change to new class API.Lauro Moura
Summary: As discussed in T7204: - Eo Interfaces/mixins -> C# Interfaces with concrete class implementations - Eo Regular/Abstracts -> Proper C# classes - Added some new generators and helper methods. - Refactored the class generator, splitting into helper methods Eo handles now are stored only in the "root" class in any given inheritance tree (generally, Efl.Object), and accessible to each child. Methods also are defined in a single place instead of repeatedly generated in everyfile, reducing the size of the generated .dll from 30MB to around 4.5MB. Mixins are generated as C# interfaces but any regular class it inherits from is lost, as we can't have interfaces inheriting from regular classes. This will be dealt with in a later commit. Summary of API Changes: - Merged Inherit/Concrete classes. (These suffixes disappear from regular classes). - Interface still have implementations with 'Concrete' suffix for when they are returned from methods. - Removed 'I' from interface names. - Removed interfaces for regular/abstract Eo classes. - Concrete classes for interfaces/mixins hold the event argument struct. - Removed '_' from classes, enums, structs, etc, as indicated in C# naming conventions. - Namespaces are now Camel.Cased. - Renamed IWrapper's raw_handle/raw_klass to NativeHandle/NativeClass Also renamed the test classes as after the namespace change, the test namespace Test can conflict with the helper Test namespace. (And use more meaningful names than Test.Testing...) Also Fixes T7336 by removing a deprecated example and adding efl_loop_timer_example to build system. Fixes T7451 by hiding the class_get DllImports and renaming the IWrapper fields. The native handlers are used in the manual binding. Still need to work: - As there are still some events names clashing (e.g. Efl.Ui.Bg with "resize" from Efl.Gfx.Entity and Efl.Gfx.Image), Events are currently declared on the interface and implemented "namespaced" in the classes, requiring the cast to the interface to access the event. - The Mixin Conundrum. Mixin inheritance will be dealt in a future commit. Depends on D7260 Reviewers: segfaultxavi, vitor.sousa, felipealmeida, Jaehyun_Cho Reviewed By: vitor.sousa Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7451, T7336 Differential Revision: https://phab.enlightenment.org/D7262
2018-10-02here comes mesonMarcel Hollerbach
a new shiny buildtool that currently completes in the total of ~ 4 min.. 1 min. conf time 2:30 min. build time Where autotools takes: 1:50 min. conf time 3:40 min. build time. meson was taken because it went quite good for enlightenment, and is a traction gaining system that is also used by other mayor projects. Additionally, the DSL that is defined my meson makes the configuration of the builds a lot easier to read. Further informations can be gathered from the README.meson Right now, bindings & windows support are missing. It is highly recommented to use meson 0.48 due to optimizations in meson that reduced the time the meson call would need. Co-authored-by: Mike Blumenkrantz <zmike@samsung.com> Differential Revision: https://phab.enlightenment.org/D7012 Depends on D7011
2018-08-31docs: Fix typos in API reference doc and comments.Yeongjong Lee
Reviewers: Hermet, segfaultxavi Reviewed By: Hermet, segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6948
2018-08-03build: move src/examples/ to a single makefileMike Blumenkrantz
this greatly improves build times by improving parallelizing, though it does introduce more BUILT_SOURCES usage which causes builds with cxx bindings to take significantly longer fix T7157 ref T7154 Differential Revision: https://phab.enlightenment.org/D6633
2018-07-20efl: fix some warnings in examplesXavi Artigas
Summary: - Check return vaule of fread() - Uninitialized var (seriously!) - Weird struct assignment Still one warning remains, pending evaluation of T7166. Fixes T6718 Test Plan: Those 3 warnings have disappeared and the related example still works as expected. Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #committers Tags: #efl Maniphest Tasks: T6718 Differential Revision: https://phab.enlightenment.org/D6631
2018-07-18examples/evas: do not attempt to free animator on window deleteMike Blumenkrantz
Summary: animators are implicitly destroyed for this case, and attempting to manually destroy them just results in an error/failure and invalid reads since this is a poorly designed api which can internally destroy itself fix T7000 @fix Reviewers: Hermet, devilhorns Subscribers: segfaultxavi, cedric Tags: #efl Maniphest Tasks: T7000 Differential Revision: https://phab.enlightenment.org/D6488
2018-06-14evas example: removed unnecessary calls for vg shapes.Hermet Park
2018-05-29evas gl: update example code for better user understanding.Hermet Park
2018-05-03efl_mono: Update tests and examples after renameLauro Moura
Summary: Separated from the generator and libs for easier review Depends on D6050 Reviewers: felipealmeida, vitor.sousa Reviewed By: vitor.sousa Subscribers: cedric Tags: #efl Differential Revision: https://phab.enlightenment.org/D6051
2018-04-26efl_mono: Names fixes after the big renameLauro Moura
Summary: Depends on D5997 Reviewers: felipealmeida Reviewed By: felipealmeida Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5998
2018-04-26efl_mono: Use PascalCase in eventsLauro Moura
Summary: To deal with events with the same name as some methods (Del, Invalidate, etc), the suffix Evt was added. Thus, now we use obj.ButtonClickedEvt += callback; Instead of obj.BUTTON_CLICKED += cal The argument classes use the same scheme, being called <Evt name>_Args. Depends on D5991 Reviewers: felipealmeida Reviewed By: felipealmeida Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5992
2018-04-24Efl.Gfx.Image* (From Efl.Image*)Xavi Artigas
Ref https://phab.enlightenment.org/T6847 Reviewed-by: Cedric Bail <cedric@osg.samsung.com>
2018-04-24Efl.Gfx.Entity (from Efl.Gfx)Xavi Artigas
Ref https://phab.enlightenment.org/T6847 Reviewed-by: Cedric Bail <cedric@osg.samsung.com>
2018-04-24Efl.Canvas.Scene (from Efl.Canvas)Xavi Artigas
Ref https://phab.enlightenment.org/T6847 Reviewed-by: Cedric Bail <cedric@osg.samsung.com>