summaryrefslogtreecommitdiff
path: root/src/tests/eolian_cxx/generic.eo
blob: cf7aa3b31e4584709e9bf9d7ab49203d31f04581 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137

struct Generic.Event
{
  field1: int;
  field2: list<string>;
}

class Generic extends Efl.Object implements Generic_Interface
{
   data: Generic_Data;
   methods {
      @property req_ctor_a_value {
         get {
         }
         values {
            value: int;
         }
      }
      @property opt_ctor_a_value {
         get {
         }
         values {
            value: int;
         }
      }
      required_ctor_a {
         params {
            @in value: int;
         }
      }
      required_ctor_b {
         params {
            @in value: int;
         }
      }
      optional_ctor_a {
         params {
            @in value: int;
         }
      }
      optional_ctor_b {
         params {
            @in value: int;
         }
      }

      @property req_ctor_b_value {
         get {}
         values {
            value: int;
         }
      }
      @property opt_ctor_b_value {
         get {}
         values {
            value: int;
         }
      }
      out_required_ctor_a {
         params {
            @out value: int;
         }
      }
      out_required_ctor_b {
         params {
            @out value: int;
         }
      }
      out_optional_ctor_a {
         params {
            @out value: int;
         }
      }
      out_optional_ctor_b {
         params {
            @out value: int;
         }
      }

      call_event1 {
      }
      call_event2 {
      }
      call_event3 {
      }
      call_event4 {
      }
      call_event5 {
      }

      protected_method1 @protected {
      }
      beta_method1 @beta {
      }
      protected_beta_method1 @protected @beta {
      }
      event_param {
         params {
           value: event;
         }
      }
      const_event_param {
         params {
           value: const(event);
         }
      }
      binbuf_param {
         params {
           value: binbuf;
         }
      }
      const_binbuf_param {
         params {
           value: const(binbuf);
         }
      }
   }
   constructors {
      .required_ctor_a;
      .required_ctor_b;
      .optional_ctor_a @optional;
      .optional_ctor_b @optional;
   }
   implements {
      Efl.Object.constructor;
   }
   events {
     prefix,event1: void;
     prefix,event2: Generic;
     prefix,event3: int;
     prefix,event4: const(array<string>);
     prefix,event5: Generic.Event;
     protected,event1 @protected: void;
     beta,event1 @beta: void;
     protected,beta,event1 @beta @protected: void;
   }
}