2017-11-23 16:53:28 -08:00
|
|
|
import eina_types;
|
|
|
|
|
2019-09-30 10:48:19 -07:00
|
|
|
type Dummy.MyInt: int;
|
|
|
|
|
|
|
|
const Dummy.Constvar_Bool : bool = true;
|
|
|
|
const Dummy.Constvar_Int : int = -32766;
|
|
|
|
const Dummy.Constvar_UInt : uint = 65533U;
|
|
|
|
const Dummy.Constvar_Long : long = -2147483644L;
|
|
|
|
const Dummy.Constvar_ULong : ulong = 4294967288UL;
|
|
|
|
const Dummy.Constvar_LLong : llong = -9223372036854775800LL;
|
|
|
|
const Dummy.Constvar_ULLong : ullong = 18446744073709551615ULL;
|
|
|
|
const Dummy.Constvar_Float : float = 16777211.0f;
|
|
|
|
const Dummy.Constvar_Double : double = 9007199254740988.0;
|
|
|
|
const Dummy.Constvar_Char : char = '!';
|
|
|
|
const Dummy.Constvar_String : string = "test_str";
|
2019-02-28 06:09:38 -08:00
|
|
|
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
enum Dummy.SampleEnum {
|
2017-12-12 06:06:46 -08:00
|
|
|
v0,
|
|
|
|
v1,
|
|
|
|
v2,
|
|
|
|
v3,
|
|
|
|
v4,
|
|
|
|
}
|
|
|
|
|
2019-01-14 14:57:31 -08:00
|
|
|
struct @free(free) Dummy.StructSimple
|
2017-12-12 06:06:46 -08:00
|
|
|
{
|
|
|
|
fbyte: byte;
|
|
|
|
fubyte: ubyte;
|
|
|
|
fchar: char;
|
|
|
|
fshort: short;
|
|
|
|
fushort: ushort;
|
|
|
|
fint: int;
|
|
|
|
fuint: uint;
|
|
|
|
flong: long;
|
|
|
|
fulong: ulong;
|
|
|
|
fllong: llong;
|
|
|
|
fullong: ullong;
|
|
|
|
fint8: int8;
|
|
|
|
fuint8: uint8;
|
|
|
|
fint16: int16;
|
|
|
|
fuint16: uint16;
|
|
|
|
fint32: int32;
|
|
|
|
fuint32: uint32;
|
|
|
|
fint64: int64;
|
|
|
|
fuint64: uint64;
|
|
|
|
fssize: ssize;
|
|
|
|
fsize: size;
|
|
|
|
fintptr: intptr;
|
|
|
|
// fuintptr: uintptr; // TODO
|
|
|
|
fptrdiff: ptrdiff;
|
|
|
|
ffloat: float;
|
|
|
|
fdouble: double;
|
|
|
|
fbool: bool;
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
fenum: Dummy.SampleEnum;
|
2017-12-12 06:06:46 -08:00
|
|
|
// fboolptr: ptr(bool); // TODO
|
|
|
|
// fbyteptr: ptr(byte);
|
|
|
|
// fubyteptr: ptr(ubyte);
|
|
|
|
// fcharptr: ptr(char);
|
|
|
|
// fuint8ptr: ptr(uint8);
|
|
|
|
// fint16ptr: ptr(int16);
|
|
|
|
// fuint64ptr: ptr(uint64);
|
|
|
|
// fssizeptr: ptr(ssize);
|
|
|
|
// fsizeptr: ptr(size);
|
|
|
|
// fintptrptr: ptr(intptr);
|
|
|
|
// fptrdiffptr: ptr(ptrdiff);
|
|
|
|
// ffloatptr: ptr(float);
|
|
|
|
// fdoubleptr: ptr(double);
|
|
|
|
// fvoid_ptrptr: ptr(void_ptr);
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
// fenumptr: ptr(Dummy.SampleEnum);
|
2017-12-12 06:06:46 -08:00
|
|
|
fstring: string;
|
|
|
|
fmstring: mstring;
|
|
|
|
fstringshare: stringshare;
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
fmyint: Dummy.MyInt;
|
2017-12-12 06:06:46 -08:00
|
|
|
}
|
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
struct @beta @free(free) Dummy.StructComplex {
|
2019-07-09 01:05:23 -07:00
|
|
|
farray: array<string>;
|
2017-12-12 06:06:46 -08:00
|
|
|
flist: list<string>;
|
|
|
|
fhash: hash<string, string>;
|
2019-07-09 01:05:23 -07:00
|
|
|
fiterator: iterator<string>;
|
2017-12-12 06:06:46 -08:00
|
|
|
fany_value: any_value;
|
2019-09-20 09:02:07 -07:00
|
|
|
fany_value_ref: any_value_ref;
|
2019-07-23 05:09:23 -07:00
|
|
|
fbinbuf: binbuf;
|
2019-07-09 01:00:06 -07:00
|
|
|
fslice: slice<ubyte>;
|
2017-12-12 06:06:46 -08:00
|
|
|
// fslice: ptr(Eina.Slice); // TODO
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
fobj: Dummy.Numberwrapper;
|
2017-12-12 06:06:46 -08:00
|
|
|
}
|
|
|
|
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
function Dummy.SimpleCb {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
|
|
|
a: int;
|
|
|
|
}
|
|
|
|
return: int;
|
|
|
|
};
|
|
|
|
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
function Dummy.FormatCb {
|
2018-03-21 18:39:17 -07:00
|
|
|
params {
|
|
|
|
@in str: strbuf;
|
|
|
|
@in value: const(any_value);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2019-03-20 10:29:25 -07:00
|
|
|
class Dummy.Test_Object extends Efl.Object implements Dummy.Test_Iface {
|
2019-10-11 14:45:41 -07:00
|
|
|
[[ Simple test class
|
|
|
|
|
|
|
|
@since 1.23 ]]
|
2017-11-23 16:53:28 -08:00
|
|
|
methods {
|
|
|
|
return_object {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
return: Dummy.Test_Object;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
2019-01-15 23:29:56 -08:00
|
|
|
return_null_object {
|
|
|
|
return: Dummy.Test_Object;
|
|
|
|
}
|
|
|
|
|
csharp: Make classes abstract and rework casting
Summary:
Abstract Eo classes are now proper C# abstract classes.
As a side effect, returning Eo instances from native code was reworked
to return instances of their actual Eo classes instead of previous
behavior of returning a generic Efl.Object and using static_cast.
Instead of `var window = Efl.Ui.Win.static_cast(widget.GetParent());`
Use `var window = widget.GetParent() as Efl.Ui.Win;`
Another side effect was that `efl_constructor` was removed from the list
of supported `Efl.Object` overrides. It is invoked inside
`efl_add_internal_start`, before the bindings makes the association of
the newly created EoId with the C# instance that created it, making the
managed delegate meaningless. C# users then can use regular C#
constructors to initialize fields.
Also changed to set the private data of C#-inherited classes before the
call to constructing methods (aka constructor parameters) so C# classes
can override them correctly.
Fixes T7778
Fixes T7757
Reviewers: vitor.sousa, felipealmeida, segfaultxavi
Reviewed By: vitor.sousa, segfaultxavi
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T7778, T7757, T7702
Differential Revision: https://phab.enlightenment.org/D8550
2019-04-05 15:53:37 -07:00
|
|
|
return_iface {
|
|
|
|
return: Dummy.Test_Iface;
|
|
|
|
}
|
|
|
|
|
2018-03-15 16:32:39 -07:00
|
|
|
int_out {
|
|
|
|
params {
|
|
|
|
@in x: int;
|
|
|
|
@out y: int;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-09 01:05:23 -07:00
|
|
|
/*
|
2018-03-15 16:32:39 -07:00
|
|
|
int_ptr_out {
|
|
|
|
params {
|
|
|
|
@in x: int;
|
|
|
|
@out y: ptr(int);
|
|
|
|
}
|
|
|
|
}
|
2019-07-09 01:05:23 -07:00
|
|
|
*/
|
2018-03-15 16:32:39 -07:00
|
|
|
|
2017-11-23 16:53:28 -08:00
|
|
|
in_stringshare {
|
|
|
|
params {
|
|
|
|
@in v: stringshare;
|
|
|
|
}
|
2019-09-05 11:05:11 -07:00
|
|
|
return: stringshare @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
in_own_stringshare {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in v: stringshare @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
2019-09-05 11:05:11 -07:00
|
|
|
return: stringshare @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
out_stringshare {
|
|
|
|
params {
|
|
|
|
@out v: stringshare;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out_own_stringshare {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@out v: stringshare @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return_stringshare {
|
|
|
|
return: stringshare;
|
|
|
|
}
|
|
|
|
return_own_stringshare {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: stringshare @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
in_string {
|
|
|
|
params {
|
|
|
|
@in str: string;
|
|
|
|
}
|
2019-09-05 11:05:11 -07:00
|
|
|
return: mstring @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
in_own_string {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in str: mstring @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
2019-09-05 11:05:11 -07:00
|
|
|
return: mstring @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
return_string {
|
|
|
|
return: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
return_own_string {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: mstring @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
out_string {
|
|
|
|
params {
|
|
|
|
@out str: string;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
out_own_string {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@out str: mstring @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
call_in_string {
|
|
|
|
params {
|
|
|
|
@in str: string;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
call_in_own_string {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in str: mstring @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
call_return_string {
|
|
|
|
return: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
call_return_own_string {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: mstring @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
call_out_string {
|
|
|
|
return: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
call_out_own_string {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: mstring @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Stringshare virtual helpers
|
|
|
|
call_in_stringshare {
|
|
|
|
params {
|
|
|
|
@in str: stringshare;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
call_in_own_stringshare {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in str: stringshare @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
call_return_stringshare {
|
|
|
|
return: stringshare;
|
|
|
|
}
|
|
|
|
|
|
|
|
call_return_own_stringshare {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: stringshare @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
call_out_stringshare {
|
|
|
|
return: stringshare;
|
|
|
|
}
|
|
|
|
|
|
|
|
call_out_own_stringshare {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: stringshare @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
eina_slice_in {
|
|
|
|
params {
|
2019-07-09 01:00:06 -07:00
|
|
|
@in slice: slice<ubyte>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_rw_slice_in {
|
|
|
|
params {
|
2019-07-09 01:00:06 -07:00
|
|
|
@in slice: rw_slice<ubyte>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_slice_out {
|
|
|
|
params {
|
2019-07-09 01:00:06 -07:00
|
|
|
@out slice: slice<ubyte>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_rw_slice_out {
|
|
|
|
params {
|
2019-07-09 01:00:06 -07:00
|
|
|
@out slice: rw_slice<ubyte>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-01-14 19:27:09 -08:00
|
|
|
eina_rw_slice_inout {
|
|
|
|
params {
|
2019-07-09 01:00:06 -07:00
|
|
|
@inout slice: rw_slice<ubyte>;
|
2019-01-14 19:27:09 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2017-11-23 16:53:28 -08:00
|
|
|
/*
|
|
|
|
eina_slice_return {
|
2019-07-09 01:00:06 -07:00
|
|
|
return: slice<ubyte>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
eina_rw_slice_return {
|
2019-07-09 01:00:06 -07:00
|
|
|
return: rw_slice<ubyte>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
2019-08-05 14:47:14 -07:00
|
|
|
eina_binbuf_in {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
2019-07-23 05:09:23 -07:00
|
|
|
@in binbuf: binbuf;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-08-05 14:47:14 -07:00
|
|
|
call_eina_binbuf_in {
|
2017-12-06 16:03:55 -08:00
|
|
|
params {
|
2019-07-23 05:09:23 -07:00
|
|
|
@in binbuf: binbuf;
|
2017-12-06 16:03:55 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-08-05 14:47:14 -07:00
|
|
|
eina_binbuf_in_own {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in binbuf: binbuf @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2017-12-06 16:03:55 -08:00
|
|
|
|
2019-08-05 14:47:14 -07:00
|
|
|
call_eina_binbuf_in_own {
|
2017-12-06 16:03:55 -08:00
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in str: binbuf @move;
|
2017-12-06 16:03:55 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2017-11-23 16:53:28 -08:00
|
|
|
check_binbuf_in_own {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-08-05 14:47:14 -07:00
|
|
|
eina_binbuf_out {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
2019-07-23 05:09:23 -07:00
|
|
|
@out binbuf: binbuf;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2017-12-06 16:03:55 -08:00
|
|
|
|
2019-08-05 14:47:14 -07:00
|
|
|
call_eina_binbuf_out {
|
2019-07-23 05:09:23 -07:00
|
|
|
return: binbuf;
|
2017-12-06 16:03:55 -08:00
|
|
|
}
|
|
|
|
|
2017-11-23 16:53:28 -08:00
|
|
|
check_binbuf_out {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-08-05 14:47:14 -07:00
|
|
|
eina_binbuf_out_own {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@out binbuf: binbuf @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-08-05 14:47:14 -07:00
|
|
|
call_eina_binbuf_out_own {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: binbuf @move;
|
2017-12-06 16:03:55 -08:00
|
|
|
}
|
|
|
|
|
2019-08-05 14:47:14 -07:00
|
|
|
eina_binbuf_return {
|
2019-07-23 05:09:23 -07:00
|
|
|
return: binbuf;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
2017-12-06 16:03:55 -08:00
|
|
|
|
2019-08-05 14:47:14 -07:00
|
|
|
call_eina_binbuf_return {
|
2019-07-23 05:09:23 -07:00
|
|
|
return: binbuf;
|
2017-12-06 16:03:55 -08:00
|
|
|
}
|
|
|
|
|
2017-11-23 16:53:28 -08:00
|
|
|
check_binbuf_return {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-08-05 14:47:14 -07:00
|
|
|
eina_binbuf_return_own {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: binbuf @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
2019-08-05 14:47:14 -07:00
|
|
|
call_eina_binbuf_return_own {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: binbuf @move;
|
2017-12-06 16:03:55 -08:00
|
|
|
}
|
|
|
|
|
2017-11-23 16:53:28 -08:00
|
|
|
/* Eina Array */
|
|
|
|
|
|
|
|
/* Integer */
|
|
|
|
eina_array_int_in {
|
|
|
|
params {
|
csharp: fix EFL# by updating it to reflect the newest changes in Eolian
Summary:
`Efl.Event` became a builtin type that is no longer declared in `efl_object.eo`,
and therefore it is no longer automatically generated in EFL#.
Given that, we define a struct manually to reflect the memory layout of the
native struct.
Containers of value types are now allowed in eolian, so tests that were disabled
because of the restriction on `ptr` were re-enabled using the plain type.
But since these containers have just arrived, handling of ownership for value
types is currently undefined in bindings.
Hence, tests that used `ptr(int) @owned` as elements were left disable.
This will be solved in a future patch.
`void_pr` is now deprecated, so we remove it from tests also.
Reviewers: q66, segfaultxavi, lauromoura, felipealmeida
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9417
2019-07-26 10:40:38 -07:00
|
|
|
@in arr: array<int>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_array_int_in_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in arr: array<int> @move; // <int @move>
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_array_int_in_own {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_array_int_out {
|
|
|
|
params {
|
csharp: fix EFL# by updating it to reflect the newest changes in Eolian
Summary:
`Efl.Event` became a builtin type that is no longer declared in `efl_object.eo`,
and therefore it is no longer automatically generated in EFL#.
Given that, we define a struct manually to reflect the memory layout of the
native struct.
Containers of value types are now allowed in eolian, so tests that were disabled
because of the restriction on `ptr` were re-enabled using the plain type.
But since these containers have just arrived, handling of ownership for value
types is currently undefined in bindings.
Hence, tests that used `ptr(int) @owned` as elements were left disable.
This will be solved in a future patch.
`void_pr` is now deprecated, so we remove it from tests also.
Reviewers: q66, segfaultxavi, lauromoura, felipealmeida
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9417
2019-07-26 10:40:38 -07:00
|
|
|
@out arr: array<int>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_array_int_out {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_array_int_out_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@out arr: array<int> @move; // <int @move>
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_array_int_return {
|
csharp: fix EFL# by updating it to reflect the newest changes in Eolian
Summary:
`Efl.Event` became a builtin type that is no longer declared in `efl_object.eo`,
and therefore it is no longer automatically generated in EFL#.
Given that, we define a struct manually to reflect the memory layout of the
native struct.
Containers of value types are now allowed in eolian, so tests that were disabled
because of the restriction on `ptr` were re-enabled using the plain type.
But since these containers have just arrived, handling of ownership for value
types is currently undefined in bindings.
Hence, tests that used `ptr(int) @owned` as elements were left disable.
This will be solved in a future patch.
`void_pr` is now deprecated, so we remove it from tests also.
Reviewers: q66, segfaultxavi, lauromoura, felipealmeida
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9417
2019-07-26 10:40:38 -07:00
|
|
|
return: array<int>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
check_eina_array_int_return {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_array_int_return_own {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: array<int> @move; // <int @move>
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* String */
|
|
|
|
eina_array_str_in {
|
|
|
|
params {
|
|
|
|
@in arr: array<string>;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_array_str_in_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in arr: array<mstring @move> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_array_str_in_own {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_array_str_out {
|
|
|
|
params {
|
|
|
|
@out arr: array<string>;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_array_str_out {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_array_str_out_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@out arr: array<mstring @move> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_array_str_return {
|
|
|
|
return: array<string>;
|
|
|
|
}
|
|
|
|
check_eina_array_str_return {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_array_str_return_own {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: array<mstring @move> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
2019-06-28 06:40:52 -07:00
|
|
|
/* Eina_Stringshare */
|
|
|
|
eina_array_strshare_in {
|
|
|
|
params {
|
|
|
|
@in arr: array<stringshare>;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_array_strshare_in_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in arr: array<stringshare @move> @move;
|
2019-06-28 06:40:52 -07:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_array_strshare_in_own {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_array_strshare_out {
|
|
|
|
params {
|
|
|
|
@out arr: array<stringshare>;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_array_strshare_out {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_array_strshare_out_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@out arr: array<stringshare @move> @move;
|
2019-06-28 06:40:52 -07:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_array_strshare_return {
|
|
|
|
return: array<stringshare>;
|
|
|
|
}
|
|
|
|
check_eina_array_strshare_return {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_array_strshare_return_own {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: array<stringshare @move> @move;
|
2019-06-28 06:40:52 -07:00
|
|
|
}
|
|
|
|
|
2017-11-23 16:53:28 -08:00
|
|
|
/* Object */
|
|
|
|
eina_array_obj_in {
|
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@in arr: array<Dummy.Numberwrapper>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_array_obj_in_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in arr: array<Dummy.Numberwrapper @move> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_array_obj_in_own {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_array_obj_out {
|
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@out arr: array<Dummy.Numberwrapper>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_array_obj_out {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_array_obj_out_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@out arr: array<Dummy.Numberwrapper @move> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_array_obj_return {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
return: array<Dummy.Numberwrapper>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
check_eina_array_obj_return {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_array_obj_return_own {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: array<Dummy.Numberwrapper @move> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
eina_array_obj_return_in {
|
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@in arr: array<Dummy.Numberwrapper>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
return: array<Dummy.Numberwrapper>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Eina List */
|
|
|
|
|
|
|
|
/* Integer */
|
|
|
|
eina_list_int_in {
|
|
|
|
params {
|
csharp: fix EFL# by updating it to reflect the newest changes in Eolian
Summary:
`Efl.Event` became a builtin type that is no longer declared in `efl_object.eo`,
and therefore it is no longer automatically generated in EFL#.
Given that, we define a struct manually to reflect the memory layout of the
native struct.
Containers of value types are now allowed in eolian, so tests that were disabled
because of the restriction on `ptr` were re-enabled using the plain type.
But since these containers have just arrived, handling of ownership for value
types is currently undefined in bindings.
Hence, tests that used `ptr(int) @owned` as elements were left disable.
This will be solved in a future patch.
`void_pr` is now deprecated, so we remove it from tests also.
Reviewers: q66, segfaultxavi, lauromoura, felipealmeida
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9417
2019-07-26 10:40:38 -07:00
|
|
|
@in lst: list<int>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_list_int_in_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in lst: list<int> @move; // <int @move>
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_list_int_in_own {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_list_int_out {
|
|
|
|
params {
|
csharp: fix EFL# by updating it to reflect the newest changes in Eolian
Summary:
`Efl.Event` became a builtin type that is no longer declared in `efl_object.eo`,
and therefore it is no longer automatically generated in EFL#.
Given that, we define a struct manually to reflect the memory layout of the
native struct.
Containers of value types are now allowed in eolian, so tests that were disabled
because of the restriction on `ptr` were re-enabled using the plain type.
But since these containers have just arrived, handling of ownership for value
types is currently undefined in bindings.
Hence, tests that used `ptr(int) @owned` as elements were left disable.
This will be solved in a future patch.
`void_pr` is now deprecated, so we remove it from tests also.
Reviewers: q66, segfaultxavi, lauromoura, felipealmeida
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9417
2019-07-26 10:40:38 -07:00
|
|
|
@out lst: list<int>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_list_int_out {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_list_int_out_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@out lst: list<int> @move; // <int @move>
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_list_int_return {
|
csharp: fix EFL# by updating it to reflect the newest changes in Eolian
Summary:
`Efl.Event` became a builtin type that is no longer declared in `efl_object.eo`,
and therefore it is no longer automatically generated in EFL#.
Given that, we define a struct manually to reflect the memory layout of the
native struct.
Containers of value types are now allowed in eolian, so tests that were disabled
because of the restriction on `ptr` were re-enabled using the plain type.
But since these containers have just arrived, handling of ownership for value
types is currently undefined in bindings.
Hence, tests that used `ptr(int) @owned` as elements were left disable.
This will be solved in a future patch.
`void_pr` is now deprecated, so we remove it from tests also.
Reviewers: q66, segfaultxavi, lauromoura, felipealmeida
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9417
2019-07-26 10:40:38 -07:00
|
|
|
return: list<int>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
check_eina_list_int_return {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_list_int_return_own {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: list<int> @move; // <int @move>
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* String */
|
|
|
|
eina_list_str_in {
|
|
|
|
params {
|
|
|
|
@in lst: list<string>;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_list_str_in_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in lst: list<mstring @move> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_list_str_in_own {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_list_str_out {
|
|
|
|
params {
|
|
|
|
@out lst: list<string>;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_list_str_out {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_list_str_out_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@out lst: list<mstring @move> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_list_str_return {
|
|
|
|
return: list<string>;
|
|
|
|
}
|
|
|
|
check_eina_list_str_return {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_list_str_return_own {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: list<mstring @move> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
2019-06-28 06:40:52 -07:00
|
|
|
/* Eina_Stringshare */
|
|
|
|
eina_list_strshare_in {
|
|
|
|
params {
|
|
|
|
@in lst: list<stringshare>;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_list_strshare_in_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in lst: list<stringshare @move> @move;
|
2019-06-28 06:40:52 -07:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_list_strshare_in_own {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_list_strshare_out {
|
|
|
|
params {
|
|
|
|
@out lst: list<stringshare>;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_list_strshare_out {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_list_strshare_out_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@out lst: list<stringshare @move> @move;
|
2019-06-28 06:40:52 -07:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_list_strshare_return {
|
|
|
|
return: list<stringshare>;
|
|
|
|
}
|
|
|
|
check_eina_list_strshare_return {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_list_strshare_return_own {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: list<stringshare @move> @move;
|
2019-06-28 06:40:52 -07:00
|
|
|
}
|
|
|
|
|
2017-11-23 16:53:28 -08:00
|
|
|
/* Object */
|
|
|
|
eina_list_obj_in {
|
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@in lst: list<Dummy.Numberwrapper>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_list_obj_in_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in lst: list<Dummy.Numberwrapper @move> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_list_obj_in_own {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_list_obj_out {
|
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@out lst: list<Dummy.Numberwrapper>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_list_obj_out {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_list_obj_out_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@out lst: list<Dummy.Numberwrapper @move> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_list_obj_return {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
return: list<Dummy.Numberwrapper>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
check_eina_list_obj_return {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_list_obj_return_own {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: list<Dummy.Numberwrapper @move> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
eina_list_obj_return_in {
|
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@in lst: list<Dummy.Numberwrapper>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
return: list<Dummy.Numberwrapper>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Eina Hash //
|
|
|
|
|
|
|
|
// Integer //
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_int_in @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
csharp: fix EFL# by updating it to reflect the newest changes in Eolian
Summary:
`Efl.Event` became a builtin type that is no longer declared in `efl_object.eo`,
and therefore it is no longer automatically generated in EFL#.
Given that, we define a struct manually to reflect the memory layout of the
native struct.
Containers of value types are now allowed in eolian, so tests that were disabled
because of the restriction on `ptr` were re-enabled using the plain type.
But since these containers have just arrived, handling of ownership for value
types is currently undefined in bindings.
Hence, tests that used `ptr(int) @owned` as elements were left disable.
This will be solved in a future patch.
`void_pr` is now deprecated, so we remove it from tests also.
Reviewers: q66, segfaultxavi, lauromoura, felipealmeida
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9417
2019-07-26 10:40:38 -07:00
|
|
|
@in hsh: hash<int, int>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
csharp: fix EFL# by updating it to reflect the newest changes in Eolian
Summary:
`Efl.Event` became a builtin type that is no longer declared in `efl_object.eo`,
and therefore it is no longer automatically generated in EFL#.
Given that, we define a struct manually to reflect the memory layout of the
native struct.
Containers of value types are now allowed in eolian, so tests that were disabled
because of the restriction on `ptr` were re-enabled using the plain type.
But since these containers have just arrived, handling of ownership for value
types is currently undefined in bindings.
Hence, tests that used `ptr(int) @owned` as elements were left disable.
This will be solved in a future patch.
`void_pr` is now deprecated, so we remove it from tests also.
Reviewers: q66, segfaultxavi, lauromoura, felipealmeida
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9417
2019-07-26 10:40:38 -07:00
|
|
|
/*
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_int_in_own @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in hsh: hash<int, int> @move; // <, int @move>
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_hash_int_in_own {
|
|
|
|
return: bool;
|
|
|
|
}
|
csharp: fix EFL# by updating it to reflect the newest changes in Eolian
Summary:
`Efl.Event` became a builtin type that is no longer declared in `efl_object.eo`,
and therefore it is no longer automatically generated in EFL#.
Given that, we define a struct manually to reflect the memory layout of the
native struct.
Containers of value types are now allowed in eolian, so tests that were disabled
because of the restriction on `ptr` were re-enabled using the plain type.
But since these containers have just arrived, handling of ownership for value
types is currently undefined in bindings.
Hence, tests that used `ptr(int) @owned` as elements were left disable.
This will be solved in a future patch.
`void_pr` is now deprecated, so we remove it from tests also.
Reviewers: q66, segfaultxavi, lauromoura, felipealmeida
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9417
2019-07-26 10:40:38 -07:00
|
|
|
*/
|
2017-11-23 16:53:28 -08:00
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_int_out @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
csharp: fix EFL# by updating it to reflect the newest changes in Eolian
Summary:
`Efl.Event` became a builtin type that is no longer declared in `efl_object.eo`,
and therefore it is no longer automatically generated in EFL#.
Given that, we define a struct manually to reflect the memory layout of the
native struct.
Containers of value types are now allowed in eolian, so tests that were disabled
because of the restriction on `ptr` were re-enabled using the plain type.
But since these containers have just arrived, handling of ownership for value
types is currently undefined in bindings.
Hence, tests that used `ptr(int) @owned` as elements were left disable.
This will be solved in a future patch.
`void_pr` is now deprecated, so we remove it from tests also.
Reviewers: q66, segfaultxavi, lauromoura, felipealmeida
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9417
2019-07-26 10:40:38 -07:00
|
|
|
@out hsh: hash<int, int>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2019-09-20 15:22:22 -07:00
|
|
|
check_eina_hash_int_out @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
csharp: fix EFL# by updating it to reflect the newest changes in Eolian
Summary:
`Efl.Event` became a builtin type that is no longer declared in `efl_object.eo`,
and therefore it is no longer automatically generated in EFL#.
Given that, we define a struct manually to reflect the memory layout of the
native struct.
Containers of value types are now allowed in eolian, so tests that were disabled
because of the restriction on `ptr` were re-enabled using the plain type.
But since these containers have just arrived, handling of ownership for value
types is currently undefined in bindings.
Hence, tests that used `ptr(int) @owned` as elements were left disable.
This will be solved in a future patch.
`void_pr` is now deprecated, so we remove it from tests also.
Reviewers: q66, segfaultxavi, lauromoura, felipealmeida
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9417
2019-07-26 10:40:38 -07:00
|
|
|
/*
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_int_out_own @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@out hsh: hash<int, int> @move; // <, int @move>
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2019-09-20 15:22:22 -07:00
|
|
|
check_eina_hash_int_out_own @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
return: bool;
|
|
|
|
}
|
csharp: fix EFL# by updating it to reflect the newest changes in Eolian
Summary:
`Efl.Event` became a builtin type that is no longer declared in `efl_object.eo`,
and therefore it is no longer automatically generated in EFL#.
Given that, we define a struct manually to reflect the memory layout of the
native struct.
Containers of value types are now allowed in eolian, so tests that were disabled
because of the restriction on `ptr` were re-enabled using the plain type.
But since these containers have just arrived, handling of ownership for value
types is currently undefined in bindings.
Hence, tests that used `ptr(int) @owned` as elements were left disable.
This will be solved in a future patch.
`void_pr` is now deprecated, so we remove it from tests also.
Reviewers: q66, segfaultxavi, lauromoura, felipealmeida
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9417
2019-07-26 10:40:38 -07:00
|
|
|
*/
|
2017-11-23 16:53:28 -08:00
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_int_return @beta {
|
csharp: fix EFL# by updating it to reflect the newest changes in Eolian
Summary:
`Efl.Event` became a builtin type that is no longer declared in `efl_object.eo`,
and therefore it is no longer automatically generated in EFL#.
Given that, we define a struct manually to reflect the memory layout of the
native struct.
Containers of value types are now allowed in eolian, so tests that were disabled
because of the restriction on `ptr` were re-enabled using the plain type.
But since these containers have just arrived, handling of ownership for value
types is currently undefined in bindings.
Hence, tests that used `ptr(int) @owned` as elements were left disable.
This will be solved in a future patch.
`void_pr` is now deprecated, so we remove it from tests also.
Reviewers: q66, segfaultxavi, lauromoura, felipealmeida
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9417
2019-07-26 10:40:38 -07:00
|
|
|
return: hash<int, int>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
2019-09-20 15:22:22 -07:00
|
|
|
check_eina_hash_int_return @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
csharp: fix EFL# by updating it to reflect the newest changes in Eolian
Summary:
`Efl.Event` became a builtin type that is no longer declared in `efl_object.eo`,
and therefore it is no longer automatically generated in EFL#.
Given that, we define a struct manually to reflect the memory layout of the
native struct.
Containers of value types are now allowed in eolian, so tests that were disabled
because of the restriction on `ptr` were re-enabled using the plain type.
But since these containers have just arrived, handling of ownership for value
types is currently undefined in bindings.
Hence, tests that used `ptr(int) @owned` as elements were left disable.
This will be solved in a future patch.
`void_pr` is now deprecated, so we remove it from tests also.
Reviewers: q66, segfaultxavi, lauromoura, felipealmeida
Reviewed By: lauromoura
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9417
2019-07-26 10:40:38 -07:00
|
|
|
/*
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_int_return_own @beta {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: hash<int, int> @move; // <, int @move>
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
2019-09-20 15:22:22 -07:00
|
|
|
check_eina_hash_int_return_own @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
return: bool;
|
|
|
|
}
|
2019-07-09 01:05:23 -07:00
|
|
|
*/
|
2017-11-23 16:53:28 -08:00
|
|
|
|
|
|
|
// String //
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_str_in @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
|
|
|
@in hsh: hash<string, string>;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_str_in_own @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in hsh: hash<string, mstring @move> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2019-09-20 15:22:22 -07:00
|
|
|
check_eina_hash_str_in_own @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_str_out @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
|
|
|
@out hsh: hash<string, string>;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2019-09-20 15:22:22 -07:00
|
|
|
check_eina_hash_str_out @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_str_out_own @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@out hsh: hash<string, mstring @move> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2019-09-20 15:22:22 -07:00
|
|
|
check_eina_hash_str_out_own @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_str_return @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
return: hash<string, string>;
|
|
|
|
}
|
2019-09-20 15:22:22 -07:00
|
|
|
check_eina_hash_str_return @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_str_return_own @beta {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: hash<string, mstring @move> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
2019-09-20 15:22:22 -07:00
|
|
|
check_eina_hash_str_return_own @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-06-28 06:40:52 -07:00
|
|
|
// Eina_Stringshare //
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_strshare_in @beta {
|
2019-06-28 06:40:52 -07:00
|
|
|
params {
|
|
|
|
@in hsh: hash<stringshare, stringshare>;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_strshare_in_own @beta {
|
2019-06-28 06:40:52 -07:00
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in hsh: hash<stringshare, stringshare @move> @move;
|
2019-06-28 06:40:52 -07:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2019-09-20 15:22:22 -07:00
|
|
|
check_eina_hash_strshare_in_own @beta {
|
2019-06-28 06:40:52 -07:00
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_strshare_out @beta {
|
2019-06-28 06:40:52 -07:00
|
|
|
params {
|
|
|
|
@out hsh: hash<stringshare, stringshare>;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2019-09-20 15:22:22 -07:00
|
|
|
check_eina_hash_strshare_out @beta {
|
2019-06-28 06:40:52 -07:00
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_strshare_out_own @beta {
|
2019-06-28 06:40:52 -07:00
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@out hsh: hash<stringshare, stringshare @move> @move;
|
2019-06-28 06:40:52 -07:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2019-09-20 15:22:22 -07:00
|
|
|
check_eina_hash_strshare_out_own @beta {
|
2019-06-28 06:40:52 -07:00
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_strshare_return @beta {
|
2019-06-28 06:40:52 -07:00
|
|
|
return: hash<stringshare, stringshare>;
|
|
|
|
}
|
2019-09-20 15:22:22 -07:00
|
|
|
check_eina_hash_strshare_return @beta {
|
2019-06-28 06:40:52 -07:00
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_strshare_return_own @beta {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: hash<stringshare, stringshare @move> @move;
|
2019-06-28 06:40:52 -07:00
|
|
|
}
|
2019-09-20 15:22:22 -07:00
|
|
|
check_eina_hash_strshare_return_own @beta {
|
2019-06-28 06:40:52 -07:00
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2017-11-23 16:53:28 -08:00
|
|
|
// Object //
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_obj_in @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@in hsh: hash<Dummy.Numberwrapper, Dummy.Numberwrapper>;
|
|
|
|
@in nwk1: Dummy.Numberwrapper;
|
|
|
|
@in nwv1: Dummy.Numberwrapper;
|
|
|
|
@out nwk2: Dummy.Numberwrapper;
|
|
|
|
@out nwv2: Dummy.Numberwrapper;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_obj_in_own @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in hsh: hash<Dummy.Numberwrapper, Dummy.Numberwrapper @move> @move;
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@in nwk1: Dummy.Numberwrapper;
|
|
|
|
@in nwv1: Dummy.Numberwrapper;
|
|
|
|
@out nwk2: Dummy.Numberwrapper;
|
|
|
|
@out nwv2: Dummy.Numberwrapper;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2019-09-20 15:22:22 -07:00
|
|
|
check_eina_hash_obj_in_own @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@in nwk1: Dummy.Numberwrapper;
|
|
|
|
@in nwv1: Dummy.Numberwrapper;
|
|
|
|
@in nwk2: Dummy.Numberwrapper;
|
|
|
|
@in nwv2: Dummy.Numberwrapper;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_obj_out @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@out hsh: hash<Dummy.Numberwrapper, Dummy.Numberwrapper>;
|
|
|
|
@out nwk: Dummy.Numberwrapper;
|
|
|
|
@out nwv: Dummy.Numberwrapper;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2019-09-20 15:22:22 -07:00
|
|
|
check_eina_hash_obj_out @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@in nwk1: Dummy.Numberwrapper;
|
|
|
|
@in nwv1: Dummy.Numberwrapper;
|
|
|
|
@in nwk2: Dummy.Numberwrapper;
|
|
|
|
@in nwv2: Dummy.Numberwrapper;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_obj_out_own @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@out hsh: hash<Dummy.Numberwrapper, Dummy.Numberwrapper @move> @move;
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@out nwk: Dummy.Numberwrapper;
|
|
|
|
@out nwv: Dummy.Numberwrapper;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2019-09-20 15:22:22 -07:00
|
|
|
check_eina_hash_obj_out_own @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_obj_return @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@out nwk: Dummy.Numberwrapper;
|
|
|
|
@out nwv: Dummy.Numberwrapper;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
return: hash<Dummy.Numberwrapper, Dummy.Numberwrapper>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
2019-09-20 15:22:22 -07:00
|
|
|
check_eina_hash_obj_return @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@in nwk1: Dummy.Numberwrapper;
|
|
|
|
@in nwv1: Dummy.Numberwrapper;
|
|
|
|
@in nwk2: Dummy.Numberwrapper;
|
|
|
|
@in nwv2: Dummy.Numberwrapper;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
eina_hash_obj_return_own @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@out nwk: Dummy.Numberwrapper;
|
|
|
|
@out nwv: Dummy.Numberwrapper;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
2019-09-05 11:05:11 -07:00
|
|
|
return: hash<Dummy.Numberwrapper, Dummy.Numberwrapper @move> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
2019-09-20 15:22:22 -07:00
|
|
|
check_eina_hash_obj_return_own @beta {
|
2017-11-23 16:53:28 -08:00
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Eina Iterator */
|
|
|
|
|
|
|
|
/* Integer */
|
|
|
|
eina_iterator_int_in {
|
|
|
|
params {
|
2019-06-27 09:49:42 -07:00
|
|
|
@in itr: iterator<int>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_iterator_int_in_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in itr: iterator<int> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_iterator_int_in_own {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_iterator_int_out {
|
|
|
|
params {
|
2019-06-27 09:49:42 -07:00
|
|
|
@out itr: iterator<int>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_iterator_int_out {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_iterator_int_out_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@out itr: iterator<int> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_iterator_int_return {
|
2019-06-27 09:49:42 -07:00
|
|
|
return: iterator<int>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
check_eina_iterator_int_return {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_iterator_int_return_own {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: iterator<int> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* String */
|
|
|
|
eina_iterator_str_in {
|
|
|
|
params {
|
|
|
|
@in itr: iterator<string>;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_iterator_str_in_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in itr: iterator<mstring> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_iterator_str_in_own {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_iterator_str_out {
|
|
|
|
params {
|
|
|
|
@out itr: iterator<string>;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_iterator_str_out {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_iterator_str_out_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@out itr: iterator<mstring> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_iterator_str_return {
|
|
|
|
return: iterator<string>;
|
|
|
|
}
|
|
|
|
check_eina_iterator_str_return {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_iterator_str_return_own {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: iterator<mstring> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
2019-06-28 06:40:52 -07:00
|
|
|
/* Eina_Stringshare */
|
|
|
|
eina_iterator_strshare_in {
|
|
|
|
params {
|
|
|
|
@in itr: iterator<stringshare>;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_iterator_strshare_in_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in itr: iterator<stringshare> @move;
|
2019-06-28 06:40:52 -07:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_iterator_strshare_in_own {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_iterator_strshare_out {
|
|
|
|
params {
|
|
|
|
@out itr: iterator<stringshare>;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_iterator_strshare_out {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_iterator_strshare_out_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@out itr: iterator<stringshare> @move;
|
2019-06-28 06:40:52 -07:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_iterator_strshare_return {
|
|
|
|
return: iterator<stringshare>;
|
|
|
|
}
|
|
|
|
check_eina_iterator_strshare_return {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_iterator_strshare_return_own {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: iterator<stringshare> @move;
|
2019-06-28 06:40:52 -07:00
|
|
|
}
|
|
|
|
|
2017-11-23 16:53:28 -08:00
|
|
|
/* Object */
|
|
|
|
eina_iterator_obj_in {
|
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@in itr: iterator<Dummy.Numberwrapper>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_iterator_obj_in_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in itr: iterator<Dummy.Numberwrapper> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_iterator_obj_in_own {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_iterator_obj_out {
|
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@out itr: iterator<Dummy.Numberwrapper>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
check_eina_iterator_obj_out {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_iterator_obj_out_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@out itr: iterator<Dummy.Numberwrapper> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_iterator_obj_return {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
return: iterator<Dummy.Numberwrapper>;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
check_eina_iterator_obj_return {
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
eina_iterator_obj_return_own {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: iterator<Dummy.Numberwrapper> @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Function Pointer */
|
|
|
|
|
|
|
|
set_callback {
|
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
cb: Dummy.SimpleCb;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
call_callback {
|
|
|
|
params {
|
|
|
|
a: int;
|
|
|
|
}
|
|
|
|
return: int;
|
|
|
|
}
|
|
|
|
|
|
|
|
call_set_callback {
|
|
|
|
}
|
|
|
|
|
|
|
|
raises_eina_error {
|
2019-09-30 10:48:19 -07:00
|
|
|
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
children_raise_error {
|
2019-09-30 10:48:19 -07:00
|
|
|
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
call_children_raise_error {
|
2019-09-30 10:48:19 -07:00
|
|
|
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
error_ret_set {
|
|
|
|
params {
|
|
|
|
error: Eina.Error;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
returns_error {
|
|
|
|
return: Eina.Error;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Eina Values */
|
|
|
|
set_value_ptr {
|
|
|
|
params {
|
2019-09-20 09:02:07 -07:00
|
|
|
value: any_value_ref;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
set_value_ptr_own {
|
|
|
|
params {
|
2019-09-20 09:02:07 -07:00
|
|
|
value: any_value_ref @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
set_value {
|
|
|
|
params {
|
|
|
|
value: any_value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-21 18:43:21 -07:00
|
|
|
call_set_value {
|
|
|
|
params {
|
|
|
|
value: const(any_value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-23 16:53:28 -08:00
|
|
|
get_value_ptr_own {
|
2019-09-20 09:02:07 -07:00
|
|
|
return: any_value_ref @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
get_value_ptr {
|
2019-09-20 09:02:07 -07:00
|
|
|
return: any_value_ref;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Commented out due to issues regarding eolian treatment of any_value.
|
|
|
|
* Somehow eolian is giving 0 as the default value when declaring the function below,
|
|
|
|
* leading to compiler errors.
|
|
|
|
*/
|
|
|
|
/* get_value {
|
|
|
|
return: any_value;
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
clear_value {
|
|
|
|
}
|
|
|
|
|
|
|
|
out_value_ptr {
|
|
|
|
params {
|
2019-09-20 09:02:07 -07:00
|
|
|
@out value: any_value_ref;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
out_value_ptr_own {
|
|
|
|
params {
|
2019-09-20 09:02:07 -07:00
|
|
|
@out value: any_value_ref @move;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
out_value {
|
|
|
|
params {
|
|
|
|
@out value: any_value;
|
|
|
|
}
|
|
|
|
}
|
2017-12-12 06:06:46 -08:00
|
|
|
|
|
|
|
/* Structs */
|
|
|
|
|
|
|
|
struct_simple_in {
|
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@in simple: Dummy.StructSimple;
|
2017-12-12 06:06:46 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-07-09 01:05:23 -07:00
|
|
|
/*
|
2018-03-15 16:32:39 -07:00
|
|
|
struct_simple_ptr_in {
|
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@in simple: ptr(Dummy.StructSimple);
|
2018-03-15 16:32:39 -07:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct_simple_ptr_in_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in simple: ptr(Dummy.StructSimple) @move;
|
2018-03-15 16:32:39 -07:00
|
|
|
}
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
return: Dummy.StructSimple;
|
2018-03-15 16:32:39 -07:00
|
|
|
}
|
2019-07-09 01:05:23 -07:00
|
|
|
*/
|
2017-12-12 06:06:46 -08:00
|
|
|
|
|
|
|
struct_simple_out {
|
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@out simple: Dummy.StructSimple;
|
2017-12-12 06:06:46 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-07-09 01:05:23 -07:00
|
|
|
/*
|
2018-03-15 16:32:39 -07:00
|
|
|
struct_simple_ptr_out {
|
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@out simple: ptr(Dummy.StructSimple);
|
2018-03-15 16:32:39 -07:00
|
|
|
}
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
return: Dummy.StructSimple;
|
2018-03-15 16:32:39 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
struct_simple_ptr_out_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@out simple: ptr(Dummy.StructSimple) @move;
|
2018-03-15 16:32:39 -07:00
|
|
|
}
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
return: Dummy.StructSimple;
|
2018-03-15 16:32:39 -07:00
|
|
|
}
|
2019-07-09 01:05:23 -07:00
|
|
|
*/
|
2017-12-12 06:06:46 -08:00
|
|
|
|
|
|
|
struct_simple_return {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
return: Dummy.StructSimple;
|
2017-12-12 06:06:46 -08:00
|
|
|
}
|
|
|
|
|
2019-07-09 01:05:23 -07:00
|
|
|
/*
|
2018-03-15 16:32:39 -07:00
|
|
|
struct_simple_ptr_return {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
return: ptr(Dummy.StructSimple);
|
2018-03-15 16:32:39 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
struct_simple_ptr_return_own {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: ptr(Dummy.StructSimple) @move;
|
2018-03-15 16:32:39 -07:00
|
|
|
}
|
2019-07-09 01:05:23 -07:00
|
|
|
*/
|
2018-03-15 16:32:39 -07:00
|
|
|
|
|
|
|
call_struct_simple_in {
|
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@in simple: Dummy.StructSimple;
|
2018-03-15 16:32:39 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-09 01:05:23 -07:00
|
|
|
/*
|
2018-03-15 16:32:39 -07:00
|
|
|
call_struct_simple_ptr_in {
|
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@in simple: ptr(Dummy.StructSimple);
|
2018-03-15 16:32:39 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
call_struct_simple_ptr_in_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in simple: ptr(Dummy.StructSimple) @move;
|
2018-03-15 16:32:39 -07:00
|
|
|
}
|
|
|
|
}
|
2019-07-09 01:05:23 -07:00
|
|
|
*/
|
2018-03-15 16:32:39 -07:00
|
|
|
|
|
|
|
call_struct_simple_out {
|
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@out simple: Dummy.StructSimple;
|
2018-03-15 16:32:39 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-09 01:05:23 -07:00
|
|
|
/*
|
2018-03-15 16:32:39 -07:00
|
|
|
call_struct_simple_ptr_out {
|
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@out simple: ptr(Dummy.StructSimple);
|
2018-03-15 16:32:39 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
call_struct_simple_ptr_out_own {
|
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@out simple: ptr(Dummy.StructSimple) @move;
|
2018-03-15 16:32:39 -07:00
|
|
|
}
|
|
|
|
}
|
2019-07-09 01:05:23 -07:00
|
|
|
*/
|
2018-03-15 16:32:39 -07:00
|
|
|
|
|
|
|
call_struct_simple_return {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
return: Dummy.StructSimple;
|
2018-03-15 16:32:39 -07:00
|
|
|
}
|
|
|
|
|
2019-07-09 01:05:23 -07:00
|
|
|
/*
|
2018-03-15 16:32:39 -07:00
|
|
|
call_struct_simple_ptr_return {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
return: ptr(Dummy.StructSimple);
|
2018-03-15 16:32:39 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
call_struct_simple_ptr_return_own {
|
2019-09-05 11:05:11 -07:00
|
|
|
return: ptr(Dummy.StructSimple) @move;
|
2018-03-15 16:32:39 -07:00
|
|
|
}
|
2019-07-09 01:05:23 -07:00
|
|
|
*/
|
2017-12-12 06:06:46 -08:00
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
struct_complex_in @beta {
|
2017-12-12 06:06:46 -08:00
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@in complex: Dummy.StructComplex;
|
2017-12-12 06:06:46 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-07-09 01:05:23 -07:00
|
|
|
/*
|
2019-09-20 15:22:22 -07:00
|
|
|
struct_complex_ptr_in @beta {
|
2018-03-15 16:32:39 -07:00
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@in complex: ptr(Dummy.StructComplex);
|
2018-03-15 16:32:39 -07:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
struct_complex_ptr_in_own @beta {
|
2018-03-15 16:32:39 -07:00
|
|
|
params {
|
2019-09-05 11:05:11 -07:00
|
|
|
@in complex: ptr(Dummy.StructComplex) @move;
|
2018-03-15 16:32:39 -07:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2019-07-09 01:05:23 -07:00
|
|
|
*/
|
2017-12-12 06:06:46 -08:00
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
struct_complex_out @beta {
|
2017-12-12 06:06:46 -08:00
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@out complex: Dummy.StructComplex;
|
2017-12-12 06:06:46 -08:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
|
|
|
|
2019-08-05 14:47:14 -07:00
|
|
|
// struct_complex_ptr_out {
|
2017-12-12 06:06:46 -08:00
|
|
|
// params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
// @out complex: ptr(Dummy.StructComplex);
|
2017-12-12 06:06:46 -08:00
|
|
|
// }
|
|
|
|
// return: bool;
|
|
|
|
// }
|
|
|
|
//
|
2019-08-05 14:47:14 -07:00
|
|
|
// struct_complex_ptr_out_own {
|
2017-12-12 06:06:46 -08:00
|
|
|
// params {
|
2019-09-05 11:05:11 -07:00
|
|
|
// @out complex: ptr(Dummy.StructComplex) @move;
|
2017-12-12 06:06:46 -08:00
|
|
|
// }
|
|
|
|
// return: bool;
|
|
|
|
// }
|
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
struct_complex_return @beta {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
return: Dummy.StructComplex;
|
2017-12-12 06:06:46 -08:00
|
|
|
}
|
|
|
|
|
2019-08-05 14:47:14 -07:00
|
|
|
// struct_complex_ptr_return {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
// return: ptr(Dummy.StructComplex);
|
2017-12-12 06:06:46 -08:00
|
|
|
// }
|
|
|
|
//
|
2019-08-05 14:47:14 -07:00
|
|
|
// struct_complex_ptr_return_own {
|
2019-09-05 11:05:11 -07:00
|
|
|
// return: ptr(Dummy.StructComplex) @move;
|
2017-12-12 06:06:46 -08:00
|
|
|
// }
|
2018-01-22 09:56:38 -08:00
|
|
|
|
|
|
|
emit_event_with_string {
|
|
|
|
params {
|
|
|
|
@in data: string;
|
|
|
|
}
|
|
|
|
}
|
2018-04-11 16:01:38 -07:00
|
|
|
emit_event_with_bool {
|
|
|
|
params {
|
|
|
|
@in data: bool;
|
|
|
|
}
|
|
|
|
}
|
2018-01-22 09:56:38 -08:00
|
|
|
emit_event_with_int {
|
|
|
|
params {
|
|
|
|
@in data: int;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
emit_event_with_uint {
|
|
|
|
params {
|
|
|
|
@in data: uint;
|
|
|
|
}
|
|
|
|
}
|
2019-05-13 23:38:50 -07:00
|
|
|
emit_event_with_float {
|
|
|
|
params {
|
|
|
|
@in data: float;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
emit_event_with_double {
|
|
|
|
params {
|
|
|
|
@in data: double;
|
|
|
|
}
|
|
|
|
}
|
2018-04-11 16:01:38 -07:00
|
|
|
emit_event_with_obj {
|
2018-01-22 09:56:38 -08:00
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@in data: Dummy.Test_Object;
|
2018-01-22 09:56:38 -08:00
|
|
|
}
|
|
|
|
}
|
2018-04-11 16:01:38 -07:00
|
|
|
|
|
|
|
emit_event_with_error {
|
2018-01-22 09:56:38 -08:00
|
|
|
params {
|
2018-04-11 16:01:38 -07:00
|
|
|
@in data: Eina.Error;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
emit_event_with_struct {
|
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@in data: Dummy.StructSimple;
|
2018-01-22 09:56:38 -08:00
|
|
|
}
|
|
|
|
}
|
2018-01-26 12:01:03 -08:00
|
|
|
|
2019-09-20 15:22:22 -07:00
|
|
|
emit_event_with_struct_complex @beta {
|
2018-12-20 19:15:17 -08:00
|
|
|
params {
|
|
|
|
@in data: Dummy.StructComplex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-21 09:20:13 -07:00
|
|
|
emit_event_with_array {
|
2019-02-22 09:02:26 -08:00
|
|
|
params {
|
2019-03-21 09:20:13 -07:00
|
|
|
@in data: array<string>;
|
2019-02-22 09:02:26 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-11 15:22:28 -07:00
|
|
|
emit_event_with_under {
|
|
|
|
}
|
|
|
|
|
2018-01-26 12:01:03 -08:00
|
|
|
append_to_strbuf {
|
|
|
|
params {
|
|
|
|
@in buf: strbuf;
|
|
|
|
@in str: string;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
call_append_to_strbuf {
|
|
|
|
params {
|
|
|
|
@in buf: strbuf;
|
|
|
|
@in str: string;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-21 18:39:17 -07:00
|
|
|
call_format_cb {
|
|
|
|
params {
|
|
|
|
@in str: strbuf;
|
|
|
|
@in value: const(any_value);
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@in func: Dummy.FormatCb;
|
2018-03-21 18:39:17 -07:00
|
|
|
}
|
|
|
|
}
|
2018-04-10 18:30:40 -07:00
|
|
|
|
2018-05-10 18:00:07 -07:00
|
|
|
bypass_typedef {
|
|
|
|
params {
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
@in data: Dummy.MyInt;
|
|
|
|
@out receiver: Dummy.MyInt;
|
2018-05-10 18:00:07 -07:00
|
|
|
}
|
|
|
|
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
return: Dummy.MyInt;
|
2018-05-10 18:00:07 -07:00
|
|
|
}
|
|
|
|
|
2019-08-23 10:00:26 -07:00
|
|
|
@property multi_valued_prop {
|
|
|
|
get {}
|
|
|
|
set {}
|
|
|
|
values {
|
|
|
|
prop1: int;
|
|
|
|
prop2: int;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-16 07:27:00 -07:00
|
|
|
@property klass_prop @static {
|
2018-04-10 18:30:40 -07:00
|
|
|
get {}
|
|
|
|
set {}
|
|
|
|
values {
|
|
|
|
prop: int;
|
|
|
|
}
|
|
|
|
}
|
2018-05-07 15:22:59 -07:00
|
|
|
|
2019-08-16 07:27:00 -07:00
|
|
|
create_cmp_array_objects @static {
|
2019-04-05 15:57:29 -07:00
|
|
|
}
|
|
|
|
|
2019-08-16 07:27:00 -07:00
|
|
|
destroy_cmp_array_objects @static {
|
2019-04-05 15:57:29 -07:00
|
|
|
}
|
|
|
|
|
2018-05-07 15:22:59 -07:00
|
|
|
/* Futures */
|
|
|
|
|
|
|
|
get_future {
|
2019-09-20 09:02:07 -07:00
|
|
|
return: future<any_value_ref>;
|
2018-05-07 15:22:59 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fulfill_promise {
|
|
|
|
params {
|
|
|
|
@in data: int;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
reject_promise {
|
|
|
|
params {
|
|
|
|
@in error: Eina.Error;
|
|
|
|
}
|
|
|
|
}
|
2018-05-18 19:43:09 -07:00
|
|
|
|
|
|
|
/* Accessors */
|
|
|
|
clone_accessor {
|
|
|
|
params {
|
2019-06-27 09:49:42 -07:00
|
|
|
@in acc: accessor<int>;
|
2018-05-18 19:43:09 -07:00
|
|
|
}
|
2019-09-05 11:05:11 -07:00
|
|
|
return: accessor<int> @move;
|
2018-05-18 19:43:09 -07:00
|
|
|
}
|
2018-12-14 12:17:23 -08:00
|
|
|
|
2019-12-18 05:36:29 -08:00
|
|
|
clone_accessor_own {
|
|
|
|
params {
|
|
|
|
@in acc: accessor<int> @move;
|
|
|
|
}
|
|
|
|
return: accessor<int> @move;
|
|
|
|
}
|
|
|
|
|
2018-12-14 12:17:23 -08:00
|
|
|
@property setter_only {
|
|
|
|
set {}
|
|
|
|
values {
|
|
|
|
prop: int;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
get_setter_only {
|
|
|
|
return: int;
|
|
|
|
}
|
2019-03-21 10:38:45 -07:00
|
|
|
|
|
|
|
call_find_provider {
|
|
|
|
params {
|
|
|
|
@in type: const(Efl.Class);
|
|
|
|
}
|
|
|
|
return: Efl.Object;
|
|
|
|
}
|
|
|
|
|
|
|
|
call_find_provider_for_iface {
|
|
|
|
return: Efl.Object;
|
|
|
|
}
|
2019-07-30 07:05:26 -07:00
|
|
|
|
|
|
|
mirror_value_type @beta @const {
|
|
|
|
params {
|
|
|
|
@in type: const(ptr(Eina.Value_Type));
|
|
|
|
}
|
|
|
|
return: const(ptr(Eina.Value_Type));
|
|
|
|
}
|
2019-09-24 07:36:34 -07:00
|
|
|
|
|
|
|
@property hidden_object {
|
|
|
|
get {}
|
|
|
|
|
|
|
|
values {
|
|
|
|
obj: Efl.Object;
|
|
|
|
}
|
|
|
|
}
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
|
|
|
implements {
|
2018-04-16 15:21:18 -07:00
|
|
|
Efl.Object.constructor;
|
2019-04-23 08:12:31 -07:00
|
|
|
Efl.Object.destructor;
|
2019-02-06 11:50:28 -08:00
|
|
|
Efl.Object.provider_find;
|
csharp: Change to new class API.
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-11-29 15:04:37 -08:00
|
|
|
Dummy.Test_Iface.emit_nonconflicted;
|
2018-12-14 12:17:23 -08:00
|
|
|
Dummy.Test_Iface.iface_prop { get; set; }
|
2019-09-17 15:35:31 -07:00
|
|
|
Dummy.Test_Iface.protected_prop { get; set; }
|
|
|
|
Dummy.Test_Iface.public_getter_private_setter{ get; set; }
|
|
|
|
Dummy.Test_Iface.static_prop{ get; set; }
|
csharp: Skip non-public members from interfaces
Summary:
Eolian allows non-public members in interfaces and mixins (usually
@protected). As both kinds are converted to C# interfaces, this
causes problem as non-public members are forbidden in C# interfaces.
This commit changes eolian_mono by removing those members from the C#
interfaces. If a generated class implements the interface, the method is
generated as if it were a protected member of the class directly.
For mixed properties like `Efl.Io.Reader.CanRead { get; set @protected; }`,
the interface has only the public getter and the the implementing class has both
the public getter and the protected setter.
With this, C# devs won't be able to directly implement protected Eo
methods from interfaces. (But this really does not make sense from the
C# point of view).
ref T7494
Reviewers: segfaultxavi, felipealmeida, YOhoho
Reviewed By: YOhoho
Subscribers: cedric, brunobelo, Jaehyun_Cho, #reviewers, woohyun, #committers
Tags: #efl
Maniphest Tasks: T7494
Differential Revision: https://phab.enlightenment.org/D9800
2019-09-10 15:30:46 -07:00
|
|
|
Dummy.Test_Iface.method_protected;
|
|
|
|
Dummy.Test_Iface.call_method_protected;
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|
2018-01-22 09:56:38 -08:00
|
|
|
events {
|
2019-09-30 10:48:19 -07:00
|
|
|
evt,with,string @hot: string;
|
|
|
|
evt,with,bool: bool;
|
|
|
|
evt,with,int @hot: int;
|
|
|
|
evt,with,uint @hot: uint;
|
|
|
|
evt,with,float @hot: float;
|
|
|
|
evt,with,double @hot: double;
|
|
|
|
evt,with,obj @hot: Dummy.Test_Object;
|
|
|
|
evt,with,error @hot: Eina.Error;
|
|
|
|
evt,with,struct @hot: Dummy.StructSimple;
|
|
|
|
evt,with,struct,complex @beta @hot: Dummy.StructComplex;
|
|
|
|
evt,with,array @hot: const(array<string>);
|
|
|
|
evt_with,under @hot: void;
|
2019-05-13 23:38:50 -07:00
|
|
|
|
|
|
|
// Extra events to test generation, but not invocation
|
2019-09-30 10:48:19 -07:00
|
|
|
evt,with,byte: byte;
|
|
|
|
evt,with,ubyte: ubyte;
|
2019-05-13 23:38:50 -07:00
|
|
|
|
2019-09-30 10:48:19 -07:00
|
|
|
evt,with,char: char;
|
2019-05-13 23:38:50 -07:00
|
|
|
|
2019-09-30 10:48:19 -07:00
|
|
|
evt,with,short: short;
|
|
|
|
evt,with,ushort: ushort;
|
2019-05-13 23:38:50 -07:00
|
|
|
|
2019-09-30 10:48:19 -07:00
|
|
|
evt,with,llong: llong;
|
|
|
|
evt,with,ullong: ullong;
|
2019-05-13 23:38:50 -07:00
|
|
|
|
2019-09-30 10:48:19 -07:00
|
|
|
evt,with,int8 @hot: int8;
|
|
|
|
evt,with,uint8 @hot: uint8;
|
2019-05-13 23:38:50 -07:00
|
|
|
|
2019-09-30 10:48:19 -07:00
|
|
|
evt,with,int16 @hot: int16;
|
|
|
|
evt,with,uint16 @hot: uint16;
|
2019-05-13 23:38:50 -07:00
|
|
|
|
2019-09-30 10:48:19 -07:00
|
|
|
evt,with,int32 @hot: int32;
|
|
|
|
evt,with,uint32 @hot: uint32;
|
2019-05-13 23:38:50 -07:00
|
|
|
|
2019-09-30 10:48:19 -07:00
|
|
|
evt,with,int64 @hot: int64;
|
|
|
|
evt,with,uint64 @hot: uint64;
|
2019-05-13 23:38:50 -07:00
|
|
|
|
2018-01-22 09:56:38 -08:00
|
|
|
}
|
2017-11-23 16:53:28 -08:00
|
|
|
}
|