summaryrefslogblamecommitdiff
path: root/src/examples/eolian_cxx/ns_colourablesquare.eo
blob: 66fe8ae5cd4e74e888b50788bec9676ce0b21764 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                         
 
                                

                        
                 
                              
             
                 
                              

                    
                                        

             






                                           
     


                          
 
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;
    }
}