summaryrefslogtreecommitdiff
path: root/src/examples/eolian_cxx
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-06-05 17:03:36 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-06-05 17:03:36 +0100
commitceda77750bf976f36117e0fb668973211c5fa991 (patch)
treed094693393f6b00eee22e054ff53a206c0c77e28 /src/examples/eolian_cxx
parent1f84f5eb6bfe899d953b455a8763bc7ff3753d74 (diff)
eo: move some eo files to new doc syntax
Diffstat (limited to 'src/examples/eolian_cxx')
-rw-r--r--src/examples/eolian_cxx/colourable.eo30
-rw-r--r--src/examples/eolian_cxx/colourablesquare.eo20
2 files changed, 25 insertions, 25 deletions
diff --git a/src/examples/eolian_cxx/colourable.eo b/src/examples/eolian_cxx/colourable.eo
index 01ff687..810ef40 100644
--- a/src/examples/eolian_cxx/colourable.eo
+++ b/src/examples/eolian_cxx/colourable.eo
@@ -1,46 +1,46 @@
1class Colourable (Eo.Base) 1class Colourable (Eo.Base)
2{ 2{
3 /*@ Colourable class. */ 3 [[Colourable class.]]
4 legacy_prefix: legacy; 4 legacy_prefix: legacy;
5 data: Colourable_Data; 5 data: Colourable_Data;
6 methods { 6 methods {
7 rgb_24bits_constructor { 7 rgb_24bits_constructor {
8 /*@ RGB Constructor. */ 8 [[RGB Constructor.]]
9 legacy: null; 9 legacy: null;
10 params { 10 params {
11 @in rgb: int; /*@ 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 mask: int; /*@ 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 }
22 @property colour { 22 @property colour {
23 set { 23 set {
24 /*@ Sets a 24-bit RGB colour. */ 24 [[Sets a 24-bit RGB colour.]]
25 } 25 }
26 get { 26 get {
27 /*@ Gets the 24-bit RGB colour. */ 27 [[Gets the 24-bit RGB colour.]]
28 } 28 }
29 values { 29 values {
30 rgb: int; /*@ The RGB colour value. */ 30 rgb: int; [[The RGB colour value.]]
31 } 31 }
32 } 32 }
33 @property composite_colour { 33 @property composite_colour {
34 set { 34 set {
35 /*@ Sets a composite RGB colour. */ 35 [[Sets a composite RGB colour.]]
36 } 36 }
37 get { 37 get {
38 /*@ Gets the composite RGB colour. */ 38 [[Gets the composite RGB colour.]]
39 } 39 }
40 values { 40 values {
41 r: int; /*@ The red component. */ 41 r: int; [[The red component.]]
42 g: int; /*@ The green component. */ 42 g: int; [[The green component.]]
43 b: int; /*@ 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 9267547..f4f4d4c 100644
--- a/src/examples/eolian_cxx/colourablesquare.eo
+++ b/src/examples/eolian_cxx/colourablesquare.eo
@@ -5,22 +5,22 @@ class ColourableSquare (Colourable)
5 methods { 5 methods {
6 @property size { 6 @property size {
7 set { 7 set {
8 /*@ Sets size. */ 8 [[Sets size.]]
9 } 9 }
10 get { 10 get {
11 /*@ Gets size. */ 11 [[Gets size.]]
12 } 12 }
13 values { 13 values {
14 size: int; /*@ 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 size: int; 20 @in size: int;
21 } 21 }
22 } 22 }
23 size_print { /*@ Show the square. */ } 23 size_print { [[Show the square.]] }
24 } 24 }
25 constructors { 25 constructors {
26 .size_constructor; 26 .size_constructor;