Commit Graph

53 Commits

Author SHA1 Message Date
Xavi Artigas 5f1be675ee mono-examples: Adapt to latest syntax
Setter and Getters have disappeared. Now everything is accessed through properties like:
Text, Disabled, Autohide, Color, Orientation, ContentPadding, Size, ScrollableText, Align, Name.
Also the Life and Containers examples had several issues.
Text override from custom widgets is still not solved.
2020-02-20 18:48:55 +01:00
Xavi Artigas 6a470840d9 mono-examples: Adapt to latest syntax (EventArgs.arg -> Arg)
Also workaround some temporary inability to set struct members.
2020-02-07 09:49:57 +01:00
Xavi Artigas 4b6740b258 Adapt Eina.Array example to latest syntax 2020-01-17 10:18:13 +01:00
Xavi Artigas b8fd0c3b74 Adapt examples to latest Unified API changes
Efl.Ui.Text headers have to be manually included for now, since they still depend
on Legacy headers.
Padding API has lost a parameter.
2019-10-03 12:19:03 +02:00
Xavi Artigas 6dfa4bac1d cs snippets: small updates to Slider and Box 2019-10-02 16:27:28 +02:00
Lukasz Oleksak 9f0eebb54f Example code for Efl.Ui.* widgets
Reviewers: segfaultxavi, woohyun

Reviewed By: segfaultxavi

Differential Revision: https://phab.enlightenment.org/D10269
2019-10-02 16:24:48 +02:00
Lukasz Oleksak 670a6bc902 Example code for Efl.Ui.Win
Reviewers: segfaultxavi, woohyun

Reviewed By: segfaultxavi

Tags: #efl, #examples

Differential Revision: https://phab.enlightenment.org/D9982
2019-09-23 13:12:12 +02:00
Xavi Artigas fd32510f35 mono snippets: Added README in the snippets folder 2019-09-17 12:10:22 +02:00
Bruno da Silva Belo 242ed076f3 csharp: Basic components for all tests without Ui.
Summary:
Uiless tests use basic components.
Make test terminate again.

Reviewers: lauromoura, felipealmeida, segfaultxavi

Reviewed By: segfaultxavi

Subscribers: brunobelo, felipealmeida, lauromoura

Differential Revision: https://phab.enlightenment.org/D9916
2019-09-12 15:04:11 +02:00
Xavi Artigas f161620f9f mono-examples: Do not initialize the UI component if it is not needed 2019-09-12 11:20:37 +02:00
Lauro Moura 3aecb39a18 csharp: Use basic components in core event test
Summary: No need to start elm, as T7770 was fixed.

Reviewers: brunobelo, felipealmeida

Reviewed By: brunobelo

Differential Revision: https://phab.enlightenment.org/D9915
2019-09-11 18:05:28 -03:00
Xavi Artigas 40801d9285 mono-examples: adapt to latest bindings syntax 2019-09-06 16:10:16 +02:00
Xavi Artigas 5472a77fb3 mono-examples: adapt to latest bindings syntax 2019-09-06 16:01:45 +02:00
Bruno da Silva Belo fa93b9f7c0 Fixing compiles errors from examples, c and c#.
Summary: Change from efl broke the compilation of examples, updating names to the new changes.

Reviewers: lauromoura, felipealmeida

Reviewed By: lauromoura

Differential Revision: https://phab.enlightenment.org/D9581
2019-08-16 15:31:38 -03:00
Lauro Moura 9ed9d94501 csharp: Make examples build again.
Summary: OnInitialize changed signature in D9178

Reviewers: vitor.sousa, segfaultxavi

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D9213
2019-06-28 20:04:38 -03:00
Xavi Artigas a49641d9b4 efl-mono: Make the setup.py script work again
It was broken when the snippets folder was added without a meson.build file.
2019-06-14 12:46:50 +02:00
Xavi Artigas b2c7e2c2dd efl-mono: Add custom widget example 2019-06-14 12:27:40 +02:00
Xavi Artigas d325da2119 efl-mono: Efl.Ui.Dir -> Efl.Ui.LayoutOrientation 2019-06-14 12:25:26 +02:00
Xavi Artigas af73959386 Use direction instead of table_direction in table examples
Efl.Ui.Direction.direction is simpler to understand than
Efl.Pack_table.table_direction. Also, the latter might disappear very soon.
2019-05-17 15:26:02 +02:00
Xavi Artigas 836a9edf73 mono examples: Update to latest Efl.Ui.Clickable syntax 2019-05-15 12:01:16 +02:00
Xavi Artigas 6cb115480e mono-examples: Update to latest Part syntax 2019-05-07 13:56:23 +02:00
Xavi Artigas fdeb87bb75 Fix alignment of some widgets
Summary:
Commit 78ae9c0ae069ff86e701ff98cf5674cc491ee156 introduced a new API
(efl_gfx_hint_fill_set) and changed the default behavior of aligned widgets.
The same commit made the necessary changes to all examples in the efl repo,
but not in the examples repo.
This patch here aligns the widgets again they way they were meant to.
We have gone 6 months without anybody noticing that the examples did not
render correctly... let's try and add some unit tests later.

Test Plan: Try the hello-gui c tutorial. The text should be centered instead of in a corner.

Reviewers: YOhoho, bu5hm4n

Differential Revision: https://phab.enlightenment.org/D8791
2019-04-30 18:56:39 +02:00
Xavi Artigas b2c41e4e01 mono-examples: Adapt to changes in Efl.Pack 2019-04-26 12:58:15 +02:00
Lauro Moura 595be4aa12 csharp: Update examples after repeated method name
Summary:
In essence, IPack.DoPack became IPack.Pack

Depends on D8650

Reviewers: felipealmeida, vitor.sousa, segfaultxavi

Reviewed By: segfaultxavi

Differential Revision: https://phab.enlightenment.org/D8651
2019-04-23 12:33:00 +02:00
Xavi Artigas f47f1f3672 mono-example: Remove ugly static_cast
Since D8550 apps do not need to use static_cast nor Concrete classes.
2019-04-17 11:03:21 +02:00
Xavi Artigas d4e81b7b65 mono-snippets: Add sample property snippet 2019-04-12 09:57:51 +02:00
Xavi Artigas 5f436d2874 mono: Initial snippet example to use with DocFX
eolian_mono now allows external examples to be embedded in the cs files, which
then appear in the DocFX pages.
This new folder is the proposed place to put all these external examples.
2019-04-11 16:21:09 +02:00
Xavi Artigas 169f569af6 Fix runtime ERR regarding WinType
WinType can only be set during construction, so SetWinType() should never
be called. Use the constructor parameter for this.
2019-04-04 13:17:30 +02:00
Xavi Artigas b55e5150c9 mono examples: Adapt to Efl.Csharp.Application
This class simplifies app development, so the examples have to showcase it.
Basically:
- Your app inherits form it
- You do not need to init() or shutdown()
- You override the methods you want (like OnInitialize).

Fixes T7655
Differential Revision: https://phab.enlightenment.org/D8477
2019-03-26 16:24:20 +01:00
Lauro Moura 735b848660 csharp: Changes after adding I to interfaces
Summary:
 Ref T7751
 Depends on D8397 in the EFL repo

Reviewers: segfaultxavi, vitor.sousa, felipealmeida

Reviewed By: segfaultxavi

Tags: #efl_language_bindings

Maniphest Tasks: T7751

Differential Revision: https://phab.enlightenment.org/D8398
2019-03-22 09:14:27 +01:00
Xavi Artigas 43bb6e3896 mono examples: Adapt to latest event names 2019-03-09 16:00:08 +01:00
Xavi Artigas 3e1aefa7ea Further fixes to adapt to latest API changes 2019-03-04 18:17:36 +01:00
Felipe Magno de Almeida 1d5a5322df efl-mono: Fix examples based on new D7789 2019-01-28 16:03:49 +09:00
Xavi Artigas 500049f1eb mono-examples: Adapt to latest syntax
Summary:
Removed initializer methods as much as possible to prepare
for when they are removed from the C# bindings.
No functional changes in the examples.
Tutorial text needs to be adapted now.

Test Plan: All examples work as before (the containers one is currently broken, FML).

Reviewers: lauromoura, felipealmeida, vitor.sousa

Reviewed By: lauromoura

Maniphest Tasks: T7508

Differential Revision: https://phab.enlightenment.org/D7695
2019-01-23 14:49:38 +01:00
Xavi Artigas a5c08814d8 examples-mono: Update Eina comments to latest syntax 2019-01-15 13:19:08 +01:00
Xavi Artigas e06157c1f6 efl-mono: Use new Eina.Value implicit conversions 2018-12-31 17:36:21 +01:00
Marcel Hollerbach a7c5ff510e Adapt examples to new App API
loop_main has been renamed to app_main.
2018-12-20 16:33:33 +01:00
Xavi Artigas d74a4df994 csharp examples: Adapt to new classes syntax
Summary: Mainly use PascalCase Namespaces and Classes and proper event names.

Test Plan: Check all examples still build.

Reviewers: lauromoura, vitor.sousa, felipealmeida, bu5hm4n

Reviewed By: bu5hm4n

Differential Revision: https://phab.enlightenment.org/D7479
2018-12-19 16:51:15 +01:00
Lauro Moura c2e4308dd1 csharp: Remove efl-net examples.
Summary:
The Efl.Net library is self contained and the bindings do not expose
it, favoring.the use of C# own networking classes.

Reviewers: segfaultxavi, vitor.sousa, bu5hm4n

Reviewed By: segfaultxavi

Differential Revision: https://phab.enlightenment.org/D7228
2018-11-02 12:02:52 +01:00
Xavi Artigas 764dee4cd3 csharp focus: properly enable focus highlight
Summary:
I think this is the intended way to enable the focus highlight on the whole
window. The previous approach enabled the highlight but did not move the
focus, by the way.

Reviewers: vitor.sousa

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D7073
2018-09-19 10:54:29 -03:00
Xavi Artigas 4c35b0f8c1 csharp: revamp focus example
Summary:
It was a very poor example, the focus highlight did not show on startup,
and the Text widget has a weird management of the focus. Replaced it by
some check boxes, and the About button now moves the focus.

Reviewers: lauromoura, vitor.sousa, felipealmeida, bu5hm4n

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D7056
2018-09-18 13:29:31 -03:00
Xavi Artigas d1e530d256 Moved focus example to proper place
Summary: It is a guide, not a tutorial.

Reviewers: vitor.sousa, lauromoura

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D7055
2018-09-18 12:43:11 -03:00
Xavi Artigas fce18f2ebe csharp: Refactor UI examples
Summary:
Adapt these two UI examples to the style of the Hello World tutorials,
using initialization methods, more comments, and try to avoid creating
vars for widgets.

Reviewers: vitor.sousa, lauromoura

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D7038
2018-09-17 15:03:12 -03:00
Xavi Artigas 44155d8827 csharp: Remove Flush() from eina.Value examples
Summary:
Flush() is not required, the bindings take care of memory. Moreover, it is
confusing for the C# developer, unaccostumed to having to free memory.

Reviewers: vitor.sousa, lauromoura

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D7036
2018-09-17 11:59:01 -03:00
Xavi Artigas accd628bd3 csharp: Comments in eina_value.cs
Reviewers: lauromoura, vitor.sousa, felipealmeida

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D6996
2018-09-06 12:06:02 -03:00
Xavi Artigas a473380cc7 Add Polling tutorial
Reviewers: lauromoura, vitor.sousa, felipealmeida

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D6991
2018-09-06 12:01:25 -03:00
Xavi Artigas c371e6f760 csharp: Add Idlers tutorial
Reviewers: lauromoura, vitor.sousa

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D6980
2018-09-04 12:09:21 -03:00
Xavi Artigas 6559459bc7 csharp: Add Events tutorial
Reviewers: vitor.sousa, lauromoura

Reviewed By: vitor.sousa

Differential Revision: https://phab.enlightenment.org/D6953
2018-08-31 12:23:35 -03:00
Xavi Artigas f1a5d614f8 tutorials: Fix C# UI reference guides
Summary: These guides needed to be adapted to the new C# API.

Test Plan:
Didn't build before, and now it can be built and run. It has some runtime
errors on exit.

Reviewers: felipealmeida, lauromoura, Hermet

Reviewed By: Hermet

Tags: #examples

Differential Revision: https://phab.enlightenment.org/D6575
2018-07-13 10:15:26 -03:00
Vitor Sousa 566b5c3ee7 net_mono: add net reference examples to the C# binding 2018-03-01 10:28:17 -03:00