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