summaryrefslogtreecommitdiff
path: root/src/examples/eolian_cxx/colourablesquare.eo
blob: 1ee4e47e48181566e550fa403f45374b49368ae2 (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
class ColourableSquare (Colourable)
{
    legacy_prefix: legacy;
    data: ColourableSquare_Data;
    properties {
        size {
            set {
                /*@ Sets size. */
            }
            get {
                /*@ Gets size. */
            }
            values {
                int size; /*@ The size. */
            }
        }
    }
    methods {
      size_constructor {
           legacy: null;
           params {
              @in int size;
           }
       }
        size_print { /*@ Show the square. */ }
    }
    constructors {
        .size_constructor;
    }
}