csharp: add a interface to start apps
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Wed, 16 Jan 2019 11:28:36 +0000 (12:28 +0100)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 24 Jan 2019 05:20:17 +0000 (14:20 +0900)
commitf8a84d005dd6f09671286c5806c607cd70f1105c
treef44aa7ede3d5954989ebd99b51cc48e7e5da31d5
parent7e4e79bec8b4117e49ee07451b9501255408f857
csharp: add a interface to start apps

Summary:
until to today you had to call init functions and a run function which
were static function in a class called Efl.Ui.Config.

However, calling those init functions there is not really OOP style.
Right now things have changed into a manner where you are defining you
application class with inheriting from the Application /
SimpleApplication abstract.

This enables you to call launch() on your application class, calling
launch there leads to a call to the args function, you can call and use
the Efl classes in there, everything is booted up.
Option parsing and dependency start can still be done in the main method
or application constructor, just ensure that you never call any efl
class / function outside the launch function.

A commit that demonstrates the usage can be found at

ref T7204

https://git.enlightenment.org/tools/examples.git/log/?h=devs/bu5hm4n/POC

Reviewers: felipealmeida, segfaultxavi, Jaehyun_Cho, cedric

Reviewed By: segfaultxavi

Subscribers: zmike, woohyun, akanad, lauromoura, #reviewers, #committers

Tags: #efl_language_bindings

Maniphest Tasks: T7204

Differential Revision: https://phab.enlightenment.org/D7495
src/Makefile_Efl_Mono.am
src/bindings/mono/efl_mono/efl_csharp_application.cs [new file with mode: 0644]
src/bindings/mono/efl_mono/meson.build