summaryrefslogtreecommitdiff
path: root/src/examples/eolian_cxx
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-08-27 15:01:09 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-08-27 15:43:47 +0100
commit77d148cec90b8ba82d6788c655ecc9ff9022522e (patch)
tree158e8b6512578d065e8cd2685285823a873ae154 /src/examples/eolian_cxx
parenta65c531429d4903f3a498cb391f425d86e35a1bd (diff)
eo: migrate constructors sections to constructing methods
Diffstat (limited to 'src/examples/eolian_cxx')
-rw-r--r--src/examples/eolian_cxx/colourable.eo13
-rw-r--r--src/examples/eolian_cxx/colourablesquare.eo7
2 files changed, 10 insertions, 10 deletions
diff --git a/src/examples/eolian_cxx/colourable.eo b/src/examples/eolian_cxx/colourable.eo
index 29b221e..342790c 100644
--- a/src/examples/eolian_cxx/colourable.eo
+++ b/src/examples/eolian_cxx/colourable.eo
@@ -3,26 +3,27 @@ class Colourable (Eo.Base)
3 /*@ Colourable class. */ 3 /*@ Colourable class. */
4 legacy_prefix: legacy; 4 legacy_prefix: legacy;
5 data: Colourable_Data; 5 data: Colourable_Data;
6 constructors { 6 methods {
7 constructor { 7 constructor @constructor {
8 /*@ Default constructor. */ 8 /*@ Default constructor. */
9 legacy: null;
9 } 10 }
10 rgb_composite_constructor { 11 rgb_composite_constructor @constructor {
11 /*@ Composite RGB Constructor. */ 12 /*@ Composite RGB Constructor. */
13 legacy: null;
12 params { 14 params {
13 @in int r; /*@ The red component. */ 15 @in int r; /*@ The red component. */
14 @in int g; /*@ The green component. */ 16 @in int g; /*@ The green component. */
15 @in int b; /*@ The blue component. */ 17 @in int b; /*@ The blue component. */
16 } 18 }
17 } 19 }
18 rgb_24bits_constructor { 20 rgb_24bits_constructor @constructor {
19 /*@ RGB Constructor. */ 21 /*@ RGB Constructor. */
22 legacy: null;
20 params { 23 params {
21 @in int rgb; /*@ 24-bit RGB Component. */ 24 @in int rgb; /*@ 24-bit RGB Component. */
22 } 25 }
23 } 26 }
24 }
25 methods {
26 print_colour { /*@ Print the RGB colour. */ } 27 print_colour { /*@ Print the RGB colour. */ }
27 colour_mask { 28 colour_mask {
28 /*@ The masked RGB value. */ 29 /*@ The masked RGB value. */
diff --git a/src/examples/eolian_cxx/colourablesquare.eo b/src/examples/eolian_cxx/colourablesquare.eo
index 0a7c101..1d12862 100644
--- a/src/examples/eolian_cxx/colourablesquare.eo
+++ b/src/examples/eolian_cxx/colourablesquare.eo
@@ -2,14 +2,13 @@ class ColourableSquare (Colourable)
2{ 2{
3 legacy_prefix: legacy; 3 legacy_prefix: legacy;
4 data: ColourableSquare_Data; 4 data: ColourableSquare_Data;
5 constructors { 5 properties {
6 size_constructor { 6 size_constructor @constructor {
7 legacy: null;
7 params { 8 params {
8 @in int size; 9 @in int size;
9 } 10 }
10 } 11 }
11 }
12 properties {
13 size { 12 size {
14 set { 13 set {
15 /*@ Sets size. */ 14 /*@ Sets size. */