2014-09-01 11:08:49 -07:00
|
|
|
enum Test.Enum_Ex {
|
|
|
|
first = 0,
|
|
|
|
second,
|
|
|
|
third,
|
|
|
|
fourth
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Test.Struct_Ex {
|
|
|
|
value_int: int;
|
|
|
|
value_enum: Test.Enum_Ex;
|
|
|
|
}
|
|
|
|
|
2018-11-22 08:17:29 -08:00
|
|
|
class Test.Object extends Efl.Object {
|
2014-09-01 11:08:49 -07:00
|
|
|
methods {
|
2016-03-14 09:14:37 -07:00
|
|
|
method_integral_in_a_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests integral in ]]
|
|
|
|
params { a: int; }
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_integral_out_a_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests integral out ]]
|
|
|
|
params { @out a: int; }
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_integral_inout_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests integral inout ]]
|
|
|
|
params { @inout a: int; }
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_integral_return_a_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests integral result ]]
|
|
|
|
return: int;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_div_mod_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests mixed in, outs and result ]]
|
|
|
|
params {
|
|
|
|
a: int;
|
|
|
|
b: int;
|
|
|
|
@out quotient: int;
|
|
|
|
@out remainder: int;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_and_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests boolean ]]
|
|
|
|
params {
|
|
|
|
a: bool;
|
|
|
|
b: bool;
|
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_modf_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests floating point ]]
|
|
|
|
params {
|
|
|
|
a: double;
|
|
|
|
@out int_part: double;
|
|
|
|
}
|
|
|
|
return: double;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_uppercase_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests string ]]
|
|
|
|
params {
|
2017-02-10 06:55:43 -08:00
|
|
|
@inout str: ptr(char);
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_in_null_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests null input ]]
|
|
|
|
params {
|
2017-02-10 06:55:43 -08:00
|
|
|
a: ptr(char);
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_out_null_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests null output ]]
|
|
|
|
params {
|
2017-02-10 06:55:43 -08:00
|
|
|
@out a: ptr(char);
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_inout_null_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests null output ]]
|
|
|
|
params {
|
2017-02-10 06:55:43 -08:00
|
|
|
@inout a: ptr(char);
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
|
|
|
return: bool;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_return_null_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests null return ]]
|
2017-02-10 06:55:43 -08:00
|
|
|
return: ptr(char);
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_null_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests null values ]]
|
|
|
|
params {
|
2017-02-10 06:55:43 -08:00
|
|
|
in: ptr(char);
|
|
|
|
@out out: ptr(char);
|
|
|
|
@inout inout: ptr(char);
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2017-02-10 06:55:43 -08:00
|
|
|
return: ptr(char);
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_at_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests array ]]
|
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
array: array<int>;
|
2014-09-01 11:08:49 -07:00
|
|
|
index: int;
|
|
|
|
}
|
|
|
|
return: int;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_with_42_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests parameters ]]
|
2019-09-06 08:01:05 -07:00
|
|
|
return: array<int> @move @no_unused;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_in_array_out_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests parameters ]]
|
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in a_in: array<int>;
|
|
|
|
@out a_out: array<int>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_of_objects_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in a_in: array<Test.Object>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: array<Test.Object>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_of_strings_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-31 08:02:26 -07:00
|
|
|
@in a_in: array<string>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-31 08:02:26 -07:00
|
|
|
return: array<string>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_of_ints_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in a_in: array<int>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: array<int>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_of_bools_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in a_in: array<bool>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: array<bool>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_of_doubles_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in a_in: array<double>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: array<double>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_of_enums_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in a_in: array<Test.Enum_Ex>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: array<Test.Enum_Ex>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_of_structs_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in a_in: array<Test.Struct_Ex>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: array<Test.Struct_Ex>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_with_42_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests parameters ]]
|
2019-09-06 08:01:05 -07:00
|
|
|
return: list<int> @move @no_unused;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_in_list_out_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
[[ tests parameters ]]
|
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in l_in: list<int>;
|
|
|
|
@out l_out: list<int>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_of_objects_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in l_in: list<Test.Object>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: list<Test.Object>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_of_strings_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-31 08:02:26 -07:00
|
|
|
@in l_in: list<string>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-31 08:02:26 -07:00
|
|
|
return: list<string>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_of_ints_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in l_in: list<int>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: list<int>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_of_bools_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in l_in: list<bool>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: list<bool>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_of_doubles_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in l_in: list<double>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: list<double>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_of_enums_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in l_in: list<Test.Enum_Ex>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: list<Test.Enum_Ex>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_of_structs_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in l_in: list<Test.Struct_Ex>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: list<Test.Struct_Ex>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_accessor_of_objects_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in a_in: accessor<Test.Object>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: accessor<Test.Object>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_accessor_of_strings_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-31 08:02:26 -07:00
|
|
|
@in a_in: accessor<string>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-31 08:02:26 -07:00
|
|
|
return: accessor<string>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_accessor_of_ints_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in a_in: accessor<int>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: accessor<int>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_accessor_of_bools_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in a_in: accessor<bool>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: accessor<bool>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_accessor_of_doubles_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in a_in: accessor<double>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: accessor<double>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_accessor_of_enums_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in a_in: accessor<Test.Enum_Ex>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: accessor<Test.Enum_Ex>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_accessor_of_structs_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in a_in: accessor<Test.Struct_Ex>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: accessor<Test.Struct_Ex>;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-16 12:08:45 -07:00
|
|
|
method_iterator_of_objects_check {
|
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in i_in: iterator<Test.Object>;
|
2016-03-16 12:08:45 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: iterator<Test.Object>;
|
2016-03-16 12:08:45 -07:00
|
|
|
}
|
|
|
|
method_iterator_of_strings_check {
|
|
|
|
params {
|
2016-05-31 08:02:26 -07:00
|
|
|
@in i_in: iterator<string>;
|
2016-03-16 12:08:45 -07:00
|
|
|
}
|
2016-05-31 08:02:26 -07:00
|
|
|
return: iterator<string>;
|
2016-03-16 12:08:45 -07:00
|
|
|
}
|
|
|
|
method_iterator_of_ints_check {
|
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in i_in: iterator<int>;
|
2016-03-16 12:08:45 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: iterator<int>;
|
2016-03-16 12:08:45 -07:00
|
|
|
}
|
|
|
|
method_iterator_of_bools_check {
|
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in i_in: iterator<bool>;
|
2016-03-16 12:08:45 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: iterator<bool>;
|
2016-03-16 12:08:45 -07:00
|
|
|
}
|
|
|
|
method_iterator_of_doubles_check {
|
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in i_in: iterator<double>;
|
2016-03-16 12:08:45 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: iterator<double>;
|
2016-03-16 12:08:45 -07:00
|
|
|
}
|
|
|
|
method_iterator_of_enums_check {
|
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in i_in: iterator<Test.Enum_Ex>;
|
2016-03-16 12:08:45 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: iterator<Test.Enum_Ex>;
|
2016-03-16 12:08:45 -07:00
|
|
|
}
|
|
|
|
method_iterator_of_structs_check {
|
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in i_in: iterator<Test.Struct_Ex>;
|
2016-03-16 12:08:45 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: iterator<Test.Struct_Ex>;
|
2016-03-16 12:08:45 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_of_arrays_of_ints_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in a_in: array<array<int> >;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: array<array<int> >;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_of_lists_of_ints_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in l_in: list<list<int> >;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: list<list<int> >;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_array_of_lists_of_ints_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in a_in: array<list<int> >;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: array<list<int> >;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_of_arrays_of_ints_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params {
|
2016-05-23 07:41:28 -07:00
|
|
|
@in l_in: list<array<int> >;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-05-23 07:41:28 -07:00
|
|
|
return: list<array<int> >;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_list_with_opaque_elements_check {
|
2017-02-10 06:55:43 -08:00
|
|
|
return: const(list<ptr(Elm.Calendar.Mark)>);
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_in_enum_return_enum_check {
|
2014-09-01 11:08:49 -07:00
|
|
|
params { e: Test.Enum_Ex; }
|
|
|
|
return: Test.Enum_Ex;
|
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
method_in_struct_return_struct_check {
|
2017-02-10 06:55:43 -08:00
|
|
|
params { e: ptr(Test.Struct_Ex); }
|
|
|
|
return: ptr(Test.Struct_Ex);
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
2016-03-14 09:14:37 -07:00
|
|
|
event_emit {
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
|
|
|
event_repeated_event_name {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.finalize;
|
|
|
|
Efl.Object.constructor;
|
|
|
|
Efl.Object.destructor;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
|
|
|
events {
|
2018-05-21 11:32:34 -07:00
|
|
|
test: void;
|
2014-09-01 11:08:49 -07:00
|
|
|
test,structarg: Test.Struct_Ex;
|
2016-05-31 08:02:26 -07:00
|
|
|
test,stringarg: string;
|
2018-05-21 11:32:34 -07:00
|
|
|
repeated,event,name: void;
|
2014-09-01 11:08:49 -07:00
|
|
|
}
|
|
|
|
}
|