summaryrefslogtreecommitdiff
path: root/src/examples/eolian_cxx
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-09-01 15:53:35 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-09-01 15:53:35 +0100
commit46715c357403f4352b4ef39fa0d111db87a2e0b4 (patch)
tree4cf0a4aa753590c695a262023f8c80e585f1481e /src/examples/eolian_cxx
parent21530bd5d8fdddee6b74b91e418b23884b0e3d29 (diff)
eolian: move efl eo files over to the new ctor syntax
Diffstat (limited to 'src/examples/eolian_cxx')
-rw-r--r--src/examples/eolian_cxx/colourable.eo11
-rw-r--r--src/examples/eolian_cxx/colourablesquare.eo5
2 files changed, 12 insertions, 4 deletions
diff --git a/src/examples/eolian_cxx/colourable.eo b/src/examples/eolian_cxx/colourable.eo
index 342790c..a262387 100644
--- a/src/examples/eolian_cxx/colourable.eo
+++ b/src/examples/eolian_cxx/colourable.eo
@@ -4,11 +4,11 @@ class Colourable (Eo.Base)
4 legacy_prefix: legacy; 4 legacy_prefix: legacy;
5 data: Colourable_Data; 5 data: Colourable_Data;
6 methods { 6 methods {
7 constructor @constructor { 7 constructor {
8 /*@ Default constructor. */ 8 /*@ Default constructor. */
9 legacy: null; 9 legacy: null;
10 } 10 }
11 rgb_composite_constructor @constructor { 11 rgb_composite_constructor {
12 /*@ Composite RGB Constructor. */ 12 /*@ Composite RGB Constructor. */
13 legacy: null; 13 legacy: null;
14 params { 14 params {
@@ -17,7 +17,7 @@ class Colourable (Eo.Base)
17 @in int b; /*@ The blue component. */ 17 @in int b; /*@ The blue component. */
18 } 18 }
19 } 19 }
20 rgb_24bits_constructor @constructor { 20 rgb_24bits_constructor {
21 /*@ RGB Constructor. */ 21 /*@ RGB Constructor. */
22 legacy: null; 22 legacy: null;
23 params { 23 params {
@@ -59,6 +59,11 @@ class Colourable (Eo.Base)
59 } 59 }
60 } 60 }
61 } 61 }
62 constructors {
63 .constructor;
64 .rgb_composite_constructor;
65 .rgb_24bits_constructor;
66 }
62 events { 67 events {
63 colour_changed: int; 68 colour_changed: int;
64 } 69 }
diff --git a/src/examples/eolian_cxx/colourablesquare.eo b/src/examples/eolian_cxx/colourablesquare.eo
index 1d12862..f21f7b4 100644
--- a/src/examples/eolian_cxx/colourablesquare.eo
+++ b/src/examples/eolian_cxx/colourablesquare.eo
@@ -3,7 +3,7 @@ class ColourableSquare (Colourable)
3 legacy_prefix: legacy; 3 legacy_prefix: legacy;
4 data: ColourableSquare_Data; 4 data: ColourableSquare_Data;
5 properties { 5 properties {
6 size_constructor @constructor { 6 size_constructor {
7 legacy: null; 7 legacy: null;
8 params { 8 params {
9 @in int size; 9 @in int size;
@@ -24,4 +24,7 @@ class ColourableSquare (Colourable)
24 methods { 24 methods {
25 size_print { /*@ Show the square. */ } 25 size_print { /*@ Show the square. */ }
26 } 26 }
27 constructors {
28 .size_constructor;
29 }
27} 30}