summaryrefslogtreecommitdiff
path: root/src/examples/eolian_cxx/colourablesquare.eo
blob: f4f4d4ce952a40819e9a51440e29838a8b66c9c6 (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
class ColourableSquare (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;
    }
}