cdlcompiler/test/Ex1.cdl
changeset 0 f58d6ec98e88
equal deleted inserted replaced
-1:000000000000 0:f58d6ec98e88
       
     1 // The CDL header
       
     2 
       
     3 Name: Avkon LAF
       
     4 Version: 1.0
       
     5 UID: 0x1f123456
       
     6 
       
     7 
       
     8 %% C++
       
     9 
       
    10 // The C++ section
       
    11 
       
    12 struct TWindowLine
       
    13 	{
       
    14 	TInt16 t;
       
    15 	TInt16 l;
       
    16 	TInt16 r;
       
    17 	TInt16 b;
       
    18 	TInt16 w;
       
    19 	TInt16 h;
       
    20 	};
       
    21 
       
    22 
       
    23 %% Translation
       
    24 
       
    25 // The data type translation section. Format is:
       
    26 // <type> # <initialisation syntax> # <pointer reference syntax>
       
    27 
       
    28 TWindowLine # const TWindowLine aName = {0,0,0,0,0,0} # &aName
       
    29 
       
    30 
       
    31 %% API		// The API section
       
    32 
       
    33 // See C++ section for TWindowLine
       
    34 // it's a simple structure
       
    35 TWindowLine control_pane;			// example of data API
       
    36 
       
    37 TDesC introduction	;				// example of special type handling system
       
    38 
       
    39 TCdlArray<TInt> 
       
    40 	array_test;