summaryrefslogtreecommitdiff
path: root/src/tests/eolian/data/class_simple.eo
blob: c6aa05b00b1dfe2e76e9a6b4c2673773a49c1d66 (plain) (blame)
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
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]]
   c_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]]
         }
      }
      foo @beta {
         [[comment foo]]
         params {
            @in a: int; [[a]]
            @inout b: char;
            @out c: double (1337.6);
            @in d: ptr(int);
         }
         return: ptr(char) (null); [[comment for method return]]
      }
   }
}