summaryrefslogtreecommitdiff
path: root/src/examples/elementary
Commit message (Collapse)AuthorAgeFilesLines
* singularize srand in eina_init - only once in one placeCarsten Haitzler (Rasterman)2020-10-031-2/+0
| | | | | | simplify down to having a single srand() in eina_init and use urandom if it works and is there - if not, time(NULL) will do. it's the best we can...
* Get rid of trailing whitespaces (2 / 14)Elyes HAOUAS2020-06-232-6/+6
| | | | | Remove trailing whitespaces Differential Revision: https://phab.enlightenment.org/D12000
* Support WebP Animation Image FilesTaehyub Kim2020-05-293-0/+81
| | | | | | | | | | | | | | | | | | | | Summary: Support WebP Animate Format Imaeg Files. To support webp animation, apply webp animation decoder. Test Plan: 1. compile src/exmaple/elementary/image_webp_example_01.c and 02.c 2. run the samples Reviewers: Hermet, kimcinoo, jsuya, bu5hm4n Reviewed By: Hermet, kimcinoo, jsuya Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11876
* refactor buildMarcel Hollerbach2020-05-271-1/+1
| | | | | | | | | | libraries are split into deps, external deps, and pub deps. Evas engines are refactored to use the predefined engine deps. this is preparation work for efl-one. Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D11806
* examples: resolve float compare warningsMike Blumenkrantz2020-05-123-9/+9
| | | | | | | | | | Summary: Depends on D11795 Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11796
* examples: cxx: remove forced warning on unfinished APIsStefan Schmidt2020-05-044-8/+0
| | | | | | | | | Personally I find it quite annoying to have these in every build. Especially if they have not been attempted to get fixed even after we started to stabilize some part of the unified API. Reviewed-by: Felipe Magno de Almeida <felipe@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D11763
* canvas3d: remove canvas3d examples.Hermet Park2020-03-1723-6203/+0
| | | | | | | | | | Summary: This is a dead feature, remove it. Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11525
* efl_ui_spotlight: rename Stack_Manager to Fade_ManagerJaehyun Cho2020-01-231-1/+1
| | | | | | | | | | | | | | | | | | Summary: Since Stack_Manager displays fade in/out transition effects, the class name is renamed from Stack_Manager to Fade_Manager. Depends on D11142 Reviewers: segfaultxavi, bu5hm4n, zmike Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11143
* efl_ui_spotlight: rename Manager_XXX and Indicator_XXXJaehyun Cho2020-01-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Summary: In spotlight classes, "Manager" and "Indicator" are used as prefix in the class names. e.g. Efl.Ui.Spotlight.Manager_Plain, Efl.Ui.Spotlight.Indicator_Icon However, those classes are basically manager and indicator classes with different features. Therefore, "Manager" and "Indicator" should be used as postfix in the class names. e.g. Efl.Ui.Spotlight.Plain_Manager, Efl.Ui.Spotlight.Icon_Indicator However, for the easier usage of C APIs, c_prefix of those classes are remained to be "efl_ui_spotlight_manager_xxx" and "efl_ui_spotlight_indicator_xxx". Reviewers: segfaultxavi, bu5hm4n, zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11142
* Example: Add efl_canvas_textblock_obstacles exampleabdulleh Ghujeh2020-01-033-1/+276
| | | | | | | | | | | | | | | | Summary: Add efl canvas textblock example based on unified APIs (converted from legacy) Reviewers: ali.alzyod, segfaultxavi Reviewed By: segfaultxavi Subscribers: woohyun, segfaultxavi, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8460 Differential Revision: https://phab.enlightenment.org/D10955
* examples: js: use correct var to display user nameStefan Schmidt2019-12-241-1/+1
| | | | | | | | | | | | | | | | | | | Summary: screen_name was used to for both displays, user name and screen name. Fix this typo and make sure the user_name variable is actually used. Depends on D10886 Reported-By: https://lgtm.com/projects/g/Enlightenment/efl Reviewers: felipealmeida, ProhtMeyhet, zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10934
* examples: js: make sure we declare all variablesStefan Schmidt2019-12-243-7/+7
| | | | | | | | | | | | | | | | | | Summary: Avoiding local variables to be declared global and shared automatically. Depends on D10882 Reported-By: https://lgtm.com/projects/g/Enlightenment/efl Reviewers: felipealmeida, zmike Reviewed By: zmike Subscribers: zmike, ProhtMeyhet, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10884
* examples: js: ensure we finish all statements with a semicolonStefan Schmidt2019-12-243-4/+4
| | | | | | | | | | | | | | | | | | | Summary: JS interpreters seems to be forgiving for these but the majority of the js code examples already use semicolons. Make it consistent and fix up the missing places. Reported-By: https://lgtm.com/projects/g/Enlightenment/efl Reviewers: felipealmeida, zmike Reviewed By: zmike Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10882
* efl.text.style: rename methods/properties and add text_ prefixali2019-12-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: efl.text.style: rename methods and properties this change will avoid conflict in the future with other interfaces or class methods. ``` Efl.Text_Style.text_color { set; get; } Efl.Text_Style.text_backing_type { set; get; } Efl.Text_Style.text_background_color { set; get;} //this was backing_color Efl.Text_Style.text_underline_type { set; } Efl.Text_Style.text_underline_color { set; get; } Efl.Text_Style.text_underline2_color { set; get; } Efl.Text_Style.text_underline_dashed_color { set; get; } Efl.Text_Style.text_underline_height { set; } Efl.Text_Style.text_underline_dashed_width { set; } Efl.Text_Style.text_underline_dashed_gap { set; } Efl.Text_Style.text_strikethrough_type { set; } Efl.Text_Style.text_strikethrough_color { set; get; } Efl.Text_Style.text_effect_type { set; } Efl.Text_Style.text_shadow_direction { set; } Efl.Text_Style.text_outline_color { set; get; } Efl.Text_Style.text_shadow_color { set; get; } Efl.Text_Style.text_glow_color { set; get; } Efl.Text_Style.text_glow2_color { set; get; } ``` T8533 Reviewers: woohyun, segfaultxavi, bu5hm4n, zmike, cedric Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10897
* examples: js: fix variable nameStefan Schmidt2019-12-171-1/+1
| | | | | | | | | | | | | | | | | | Summary: Simple mispell in the example. Depends on D10882 Reported-By: https://lgtm.com/projects/g/Enlightenment/efl Reviewers: felipealmeida, lauromoura Reviewed By: felipealmeida Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10883
* efl_ui: cleanup elm headersYeongjong Lee2019-12-121-6/+0
| | | | | | | | | | since e2980cd9812113fc4a216749eb23d7611b02fd55, `efl.ui.text` doesn't need `elm_general.h`. This partially reverts commit 96be3cd83d3426c5a9eb8d903245c51927567dc6. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D10849
* efl.ui.text: rename to efl.ui.textboxAli Alzyod2019-12-113-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: This patch will rename efl.ui.text into efl.ui.textbox Effected classes: - efl.ui.text_async : efl.ui.textbox_async - efl.ui.text_editable : efl.ui.textbox_editable **will be removed anyway** Needs consider Classes: - efl.ui.text_part - efl.ui.text_factory.Emoticons - efl.ui.text_factory.Fallback - efl.ui.text_factory.Images Reviewers: woohyun, segfaultxavi, bu5hm4n, zmike, YOhoho Reviewed By: woohyun Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10835
* efl_ui_text_editable: remove classAli Alzyod2019-12-101-1/+2
| | | | | | | | | | | | | | Summary: This class is the same as efl_ui_text, efl_ui_text is editable by default. This class should be removed Reviewers: woohyun Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10831
* elocation: remove beta libraryStefan Schmidt2019-12-092-152/+0
| | | | | | | | | | | This has never been fully finished or really used. The GeoClue project dbus API moved on to a newer version as well. We still have it marked as beta so we should take the chance and get rid of it to cleanup our tree a little bit. Reviewed-by: Chris Michael <cp.michael@samsung.com> Reviewed-by: Vincent Torri <vincent.torri@gmail.com> Differential Revision: https://phab.enlightenment.org/D10788
* Efl.Ui.Text : all related interfacesali2019-12-091-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Change summary: Removed : - efl_ui_text_selectable.eo and add it functionality into efl_text_interactive.eo - efl_ui_text_editable.eo because it is same as efl_ui_text.eo (just set one property by default) Modifications: - Move all Text Input enums and functionality from efl_ui_text class into its own interface, this interface will be implemented at efl_ui_internal_text_interactive class. - Rename selection_allowed property to selectable (same as other "editable" property) in efl_text_interactive - Add select_all function into efl_text_interactive interface - Add have_selection property into efl_text_interactive interface - Move user_change , selection_start/change/clear and undo/redo events into efl_text_interactive interface. - Move methods and events of copy/paste/cut into efl_ui_text - Fix password-related functionality - Remove context menu clear and add_item methods. (these should be added later with better design) - Remove Validation event from EFL_UI_TEXT. (these should be added later with better design) Reviewers: woohyun, tasn, segfaultxavi, zmike, bu5hm4n Subscribers: stefan_schmidt, a.srour, q66, zmike, segfaultxavi, cedric Tags: #efl Differential Revision: https://phab.enlightenment.org/D10711
* elementary: small improvement on example migrating them to newer unified API.Cedric BAIL2019-12-041-15/+31
|
* here comes a new exampleMarcel Hollerbach2019-11-292-1/+479
| | | | | Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D10733
* Polish text interface methodsAli Alzyod2019-11-282-4/+5
| | | | | | | | | | | | | | | | | | | | | Summary: This patch is set to rename some properties of `Efl.Text_Font` & `Efl.Text_Format` interfaces. 1- efl_text_font_set/get become (efl_text_font_family_set/get, efl_text_font_size_set/get) 2- efl_text_valign/halign become efl_text_vertical/horizontal_align 3- efl_text_halign_auto_type become efl_text_horizontal_align_auto_type Reviewers: ali.alzyod, woohyun, segfaultxavi, bu5hm4n, zmike, cedric Reviewed By: woohyun Subscribers: zmike, #committers, #reviewers, cedric Tags: #efl Differential Revision: https://phab.enlightenment.org/D10716
* efl_ui_multi_selectable: clean this upMarcel Hollerbach2019-11-253-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | this commit merges common functions from efl_ui_multi_selectable and efl_ui_multi_selectable_async. Additionally, the two different aspects of accessing the elements in a multi_selectable widget (numerical or object based) are now abstracted into interfaces called range_numeric and range_object. numeric APIs are also prefixed with id's, so its possible for one widget to implement both (if there will ever be the demand to do that in future). The main reason for this split is: - there is no good common path between mvvm based multi_selectable and object based multi_Selectable, so there is no way that both sides would benefit, without the other one suffering. - If we find later on the demand to implement both on one widget, we now can fully do that - Common API is available for both types, so its less API and less confusion for the API user. ref T7871 ref T8265 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D10675
* efl_ui_relative_container: rename relative_layoutYeongjong Lee2019-11-123-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: Also, Rename parameter name `target` to `base`. Rename parameter name `relative` to `relative_position`. ref T8380 Depends On D10639 Test Plan: ninja test Reviewers: woohyun, segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8380 Differential Revision: https://phab.enlightenment.org/D10640
* cxx: Add license to CXX bindings.Felipe Magno de Almeida2019-10-2420-0/+300
| | | | | | | | | | | | | | | | | 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
* csharp: Add licensing information.Lauro Moura2019-10-242-0/+30
| | | | | | | | | | | | | | | | | | | | | | Summary: C# bindings will be lincensed under Apache Sofware License 2.0. This commit adds the license text to the licenses folder and a copyright notice to the binding files. Fixes T8039 Reviewers: woohyun, felipealmeida, vitor.sousa Reviewed By: felipealmeida Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8039 Differential Revision: https://phab.enlightenment.org/D9414
* fix various trivial null derefsMike Blumenkrantz2019-10-182-0/+10
| | | | | | | | | | | | | | | | Summary: CIDs 1401081, 1401044, 1400983, 1400960, 1400927, 1400799, 1396946, 1396944, 1383851, 1383847, 1382211, 1379921, 1379921 Reviewers: cedric Reviewed By: cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10452
* efl_gfx_arrangement: change content_padding param type and remove scalableYeongjong Lee2019-10-022-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This change `content_padding` parameter type to int from double for consistency of size properties. `scalable` should be handled in more common size API. Co-authored-by: Mike Blumenkrantz <zmike@samsung.com> ref T7864 Test Plan: ninja test Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7864 Differential Revision: https://phab.enlightenment.org/D10154
* efl_ui: remove efl_ui_text headers from Efl_Ui.h for nowMike Blumenkrantz2019-09-301-0/+7
| | | | | | | | these require legacy types and headers, which should not be brought into this header Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D10235
* efl_ui_*selectable: unify these APIs with the same c_prefixMarcel Hollerbach2019-09-262-6/+6
| | | | | | | | | | | | | | | | | | | | | Summary: with this commit that api for single and multi selectable shares the same prefix, which makes sense in c as we do not really differ between those two types there anyway. ref T7871 Reviewers: SanghyeonLee, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7871 Differential Revision: https://phab.enlightenment.org/D10183
* efl_ui : change selected_items_get to selected_iterator_new.SangHyeon Jade Lee2019-09-251-1/+1
| | | | | | | | | | | | multi_selectable_aync already changed name as selected_iterator_new so multi_selectable change name also for unity of API. not sure about we need unselected_items_get in multi_selectable, so skip to create new api for this time. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D10148
* elementary: migrate Efl.Ui.List_View to use Efl.Ui.Collection_View.Cedric Bail2019-09-243-68/+27
| | | | Differential Revision: https://phab.enlightenment.org/D10035
* elementary: introduce Efl.Ui.CollectionView a generic listing View.Cedric BAIL2019-09-242-0/+108
| | | | | | | | | | The idea of this widget is to provide to MVVM what Efl.Ui.Collection provide and leverage the same shared logic for layout. Co-authored-by: Mike Blumenkrantz <zmike@samsung.com> Co-authored-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9958
* efl_ui_win: default the window type to basicMarcel Hollerbach2019-09-248-16/+8
| | | | | | | | | | normally when you create a window, you just want to have it beeing a basic window. If not you still can set the window type. ref T8229 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D10049
* efl: simplify logic for widget created by factory.Cedric Bail2019-09-241-1/+1
| | | | | | | | | | | | | In an attempt to make things more complex than they should have been, I tried to change the inheritance tree on the fly and assume widget would rely on autodeleting its children. This is way more complex of a solution than to let the View actually release all the child manually and just set the window as the default parent.h Co-authored-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9953
* efl_ui_multi_selectable: remove SINGLE_ALWAYSMarcel Hollerbach2019-09-171-4/+0
| | | | | | | | | | this should get a better solution later on. There is also no real usage for that. ref T7922 Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D9985
* efl/image: Efl.Gfx.Image_Scale_Type -> Efl.Gfx.Image_Scale_MethodXavi Artigas2019-09-163-4/+4
| | | | | ref T7927, T7875 Depends on D9931
* csharp: Minor change to D9692Bruno da Silva Belo2019-09-111-2/+2
| | | | | | | | | | | | | | Summary: Changing Evt to Event from some files that it wasn't catch on D9692 Reviewers: lauromoura, felipealmeida Reviewed By: lauromoura Subscribers: cedric, felipealmeida, #reviewers, lauromoura, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9904
* efl_ui_spotlight: migrate from active_index to active_elementMarcel Hollerbach2019-09-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | after playing arround with the widget, we found out that it feels quite weird to have a index, where most of the time you work with widgets. We might want to add syntax suger in the future to make it easier to just jump to the next element, or to the previous, but that still is to be decided. The event and the communication to the spotlight manager are still left to be used with the index, reason for this is, that we might need to fill there an invalid pointer, if a deletion is triggering an animation, which seems quite weird. That needs further discussing. Docx have been updated, the sitemarks about the shifting of the active_index can be removed, as the element is not subject of change during content adds/deletes. ref T7991 Reviewed-by: Jaehyun Cho <jae_hyun.cho@samsung.com> Differential Revision: https://phab.enlightenment.org/D9813
* eolian-mono: Renaming suffix for event and event argsBruno da Silva Belo2019-09-061-3/+3
| | | | | | | | | | | | | | | | Summary: suffix _Args to Args, Evt to Event Reviewers: lauromoura, felipealmeida Reviewed By: lauromoura Subscribers: Jaehyun_Cho, woohyun, segfaultxavi, cedric, felipealmeida, #reviewers, lauromoura, #committers Tags: #refactoring, PHID-PROJ-uhnmnvlvunw6jgoqdnd4, #efl_language_bindings Maniphest Tasks: T8164, T8163 Differential Revision: https://phab.enlightenment.org/D9692
* efl_ui_collection: use the correct min size hintMarcel Hollerbach2019-09-051-0/+1
| | | | | | | | | | there are not enough size hints, we should add more! I mixed up which size hints i should have used here, after some back and forth it turns out that i should use the combined. This fixes the list example. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D9779
* Efl_Ui: Move elementary and change namespace Ui for ui related modelsSangHyeon Jade Lee2019-09-041-2/+2
| | | | | | | | | | | | | | | | | | | | | Summary: Select and View is ui characteristic features, so Efl_Select_Model and Efl_View_Model move to elementary from ecore seems more natural. namespace also should changed to Efl.Ui as it's right place. Test Plan: run the test while building it Reviewers: cedric, felipealmeida, bu5hm4n, zmike, lauromoura Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9820
* Revert "eolian_mono: remove underscore of Evt_Args"Jaehyun Cho2019-09-021-1/+1
| | | | | | This reverts commit ac99e2ac9410d5b2ef6225fa1aaaf9ffcd6578fb. This patch is reverted because D9692 covers this patch.
* eolian_mono: remove underscore of Evt_ArgsJaehyun Cho2019-09-021-1/+1
| | | | | Since C# does not use underscore in type name, the underscore of Evt_Args is removed.
* cxx: Fix example after popup changes.Lauro Moura2019-08-301-1/+1
| | | | | | | | | | | | | | Summary: Popup api changed in 1ca07b72da944 Reviewers: zmike, felipealmeida, bu5hm4n Reviewed By: bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9807
* spinner_cxx_example: Fix use wrong apiJunsuChoi2019-08-261-3/+3
| | | | | | | | | | | | | | | | Summary: de18371 changes cause build errors. (D9707) this is a patch to fix it. Test Plan: N/A Reviewers: woohyun, bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9738
* slider_cxx_example: Fix use wrong apiJunsuChoi2019-08-231-1/+2
| | | | | | | | | | | | | | | | | | Summary: d50fdc0, e84ecd95 changes cause build errors. this is a patch to fix it. Test Plan: N/A Reviewers: zmike, Jaehyun_Cho Reviewed By: Jaehyun_Cho Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9721
* efl/gfx: redo image scale_type enumMike Blumenkrantz2019-08-231-1/+1
| | | | | | | this is ideally a bit more clear and flexible than the previous enum names Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9691
* elementary: use the right function for creating object from Efl.Ui.Factory.Cedric BAIL2019-08-211-1/+1
| | | | | Reviewed-by: Lauro Neto <Lauro Moura <lauromoura@expertisesolutions.com.br>> Differential Revision: https://phab.enlightenment.org/D9635