summaryrefslogtreecommitdiff
path: root/src/tests/eolian/data/class_simple.eo
blob: 1cb75c95d48beacb6608fe32e060c908f490206e (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
const Foo: int = 5; [[doc for constant]]

var Bar: float = 10.3f; [[doc for global]]

var Baz: long; [[in header but not in source]]

var @extern Bah: double; // not generated

class Class_Simple {
   [[Class Desc Simple]]
   legacy_prefix: evas_object_simple;
   eo_prefix: efl_canvas_object_simple;
   data: Evas_Simple_Data;
   methods {
      @property a @beta {
         [[Common desc for a]]
         set {
            [[comment a.set]]
            return: bool (true); [[comment for property set return]]
         }
         get {
         }
         values {
            value: int (100); [[Value description]]
         }
      }
      @property b @c_only {
        set {
           eo: null;
        }
      }
      foo @beta {
         [[comment foo]]
         params {
            @in a: int; [[a]]
            @inout b: char;
            @out c: double (1337.6);
            @in d: ptr(int);
         }
         return: char * (null); [[comment for method return]]
      }
      bar @c_only {
         eo: null;
         params {
            x: int;
         }
         return: ptr(int);
      }
   }
}