summaryrefslogtreecommitdiff
path: root/src/examples/eolian_cxx/ns_colourablesquare.eo
blob: 66fe8ae5cd4e74e888b50788bec9676ce0b21764 (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
class Ns.ColourableSquare (Ns.Colourable)
{
    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;
    }
}