summaryrefslogtreecommitdiff
path: root/src/examples/eolian_cxx
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-18 16:13:08 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-18 16:14:31 +0100
commit058a9c9d88b4532ff859f3d7a82e15ea64a94be3 (patch)
treed4e35abcfe912e9e948082d39e6a114e8e0ca010 /src/examples/eolian_cxx
parentdcc73c8f9a2e337dcdb18b26da13d98d03a4ec1f (diff)
eolian: new syntax for params/values/keys
Instead of "@in type name;" we now use "@in name: type;". This change is done because of consistency with the rest of Eolian; pretty much every other part of Eolian syntax uses the latter form. This is a big breaking change in the .eo format, so please update your .eo files accordingly and compile Elementary together with the EFL. @feature
Diffstat (limited to 'src/examples/eolian_cxx')
-rw-r--r--src/examples/eolian_cxx/colourable.eo12
-rw-r--r--src/examples/eolian_cxx/colourablesquare.eo4
2 files changed, 8 insertions, 8 deletions
diff --git a/src/examples/eolian_cxx/colourable.eo b/src/examples/eolian_cxx/colourable.eo
index b50bf3c..01ff687 100644
--- a/src/examples/eolian_cxx/colourable.eo
+++ b/src/examples/eolian_cxx/colourable.eo
@@ -8,14 +8,14 @@ class Colourable (Eo.Base)
8 /*@ RGB Constructor. */ 8 /*@ RGB Constructor. */
9 legacy: null; 9 legacy: null;
10 params { 10 params {
11 @in int rgb; /*@ 24-bit RGB Component. */ 11 @in rgb: int; /*@ 24-bit RGB Component. */
12 } 12 }
13 } 13 }
14 print_colour { /*@ Print the RGB colour. */ } 14 print_colour { /*@ Print the RGB colour. */ }
15 colour_mask { 15 colour_mask {
16 /*@ The masked RGB value. */ 16 /*@ The masked RGB value. */
17 params { 17 params {
18 @in int mask; /*@ The colour mask to be applied to current RGB value. */ 18 @in mask: int; /*@ The colour mask to be applied to current RGB value. */
19 } 19 }
20 return: int; /*@ The RGB colour. */ 20 return: int; /*@ The RGB colour. */
21 } 21 }
@@ -27,7 +27,7 @@ class Colourable (Eo.Base)
27 /*@ Gets the 24-bit RGB colour. */ 27 /*@ Gets the 24-bit RGB colour. */
28 } 28 }
29 values { 29 values {
30 int rgb; /*@ The RGB colour value. */ 30 rgb: int; /*@ The RGB colour value. */
31 } 31 }
32 } 32 }
33 @property composite_colour { 33 @property composite_colour {
@@ -38,9 +38,9 @@ class Colourable (Eo.Base)
38 /*@ Gets the composite RGB colour. */ 38 /*@ Gets the composite RGB colour. */
39 } 39 }
40 values { 40 values {
41 int r; /*@ The red component. */ 41 r: int; /*@ The red component. */
42 int g; /*@ The green component. */ 42 g: int; /*@ The green component. */
43 int b; /*@ The blue component. */ 43 b: int; /*@ The blue component. */
44 } 44 }
45 } 45 }
46 } 46 }
diff --git a/src/examples/eolian_cxx/colourablesquare.eo b/src/examples/eolian_cxx/colourablesquare.eo
index 87e3a26..9267547 100644
--- a/src/examples/eolian_cxx/colourablesquare.eo
+++ b/src/examples/eolian_cxx/colourablesquare.eo
@@ -11,13 +11,13 @@ class ColourableSquare (Colourable)
11 /*@ Gets size. */ 11 /*@ Gets size. */
12 } 12 }
13 values { 13 values {
14 int size; /*@ The size. */ 14 size: int; /*@ The size. */
15 } 15 }
16 } 16 }
17 size_constructor { 17 size_constructor {
18 legacy: null; 18 legacy: null;
19 params { 19 params {
20 @in int size; 20 @in size: int;
21 } 21 }
22 } 22 }
23 size_print { /*@ Show the square. */ } 23 size_print { /*@ Show the square. */ }