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