summaryrefslogtreecommitdiff
path: root/unsorted
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2020-02-20 17:09:22 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2020-02-20 18:48:55 +0100
commit5f1be675ee1b75c8059c78437522cdee1cbde085 (patch)
tree8b260625adc9add052af66cc460994d34ae739ff /unsorted
parent6e77c4aae21877d039ca81a18ce3b33950f911c7 (diff)
mono-examples: Adapt to latest syntax
Setter and Getters have disappeared. Now everything is accessed through properties like: Text, Disabled, Autohide, Color, Orientation, ContentPadding, Size, ScrollableText, Align, Name. Also the Life and Containers examples had several issues. Text override from custom widgets is still not solved.
Diffstat (limited to 'unsorted')
-rw-r--r--unsorted/elementary/efl_ui_slider_mono.cs14
-rw-r--r--unsorted/elementary/efl_ui_unit_converter.cs48
-rw-r--r--unsorted/evas/evas_mono_box.cs10
-rw-r--r--unsorted/evas/evas_mono_image.cs6
-rw-r--r--unsorted/evas/evas_mono_image2.cs10
-rw-r--r--unsorted/evas/evas_mono_rectangle.cs4
-rw-r--r--unsorted/evas/evas_mono_table.cs14
-rw-r--r--unsorted/evas/evas_mono_text.cs12
8 files changed, 59 insertions, 59 deletions
diff --git a/unsorted/elementary/efl_ui_slider_mono.cs b/unsorted/elementary/efl_ui_slider_mono.cs
index d15ad680..f6edcbfc 100644
--- a/unsorted/elementary/efl_ui_slider_mono.cs
+++ b/unsorted/elementary/efl_ui_slider_mono.cs
@@ -7,8 +7,8 @@ public class Example
7 int w, int h, 7 int w, int h,
8 EventHandler callback) { 8 EventHandler callback) {
9 Efl.Ui.Button button = new Efl.Ui.Button(parent); 9 Efl.Ui.Button button = new Efl.Ui.Button(parent);
10 button.SetText(text); 10 button.Text = text;
11 button.SetSize(new Eina.Size2D(w, h)); 11 button.Size = new Eina.Size2D(w, h);
12 12
13 button.ClickedEvent += callback; 13 button.ClickedEvent += callback;
14 14
@@ -37,8 +37,8 @@ public class Example
37 Efl.All.Init(Efl.Components.Ui); 37 Efl.All.Init(Efl.Components.Ui);
38 38
39 Efl.Ui.Win win = new Efl.Ui.Win(null); 39 Efl.Ui.Win win = new Efl.Ui.Win(null);
40 win.SetText("Hello, C#!!"); 40 win.Text = "Hello, C#!!";
41 win.SetAutohide(true); 41 win.Autohide = true;
42 42
43 Efl.Ui.Box_Flow box = new Efl.Ui.Box_Flow(win); 43 Efl.Ui.Box_Flow box = new Efl.Ui.Box_Flow(win);
44 44
@@ -50,11 +50,11 @@ public class Example
50 box.DoPack(button); 50 box.DoPack(button);
51 51
52 Efl.Ui.Progressbar bar = new Efl.Ui.Progressbar(box); 52 Efl.Ui.Progressbar bar = new Efl.Ui.Progressbar(box);
53 bar.SetSize(new Eina.Size2D(W, H)); 53 bar.Size = new Eina.Size2D(W, H);
54 bar.SetFormatCb(Formatter); 54 bar.SetFormatCb(Formatter);
55 55
56 Efl.Ui.Slider slider = new Efl.Ui.Slider(box); 56 Efl.Ui.Slider slider = new Efl.Ui.Slider(box);
57 slider.SetSize(new Eina.Size2D(W, H)); 57 slider.Size = new Eina.Size2D(W, H);
58 58
59 slider.ChangedEvent += (object sender, EventArgs e) => { 59 slider.ChangedEvent += (object sender, EventArgs e) => {
60 bar.SetRangeValue(slider.GetRangeValue()); 60 bar.SetRangeValue(slider.GetRangeValue());
@@ -66,7 +66,7 @@ public class Example
66 button.SetVisible(true); 66 button.SetVisible(true);
67 box.SetVisible(true); 67 box.SetVisible(true);
68 68
69 win.SetSize(new Eina.Size2D(W, 3 * H)); 69 win.Size = new Eina.Size2D(W, 3 * H);
70 win.SetVisible(true); 70 win.SetVisible(true);
71 71
72 Efl.Ui.Config.Run(); 72 Efl.Ui.Config.Run();
diff --git a/unsorted/elementary/efl_ui_unit_converter.cs b/unsorted/elementary/efl_ui_unit_converter.cs
index 38c6c7ac..a107d820 100644
--- a/unsorted/elementary/efl_ui_unit_converter.cs
+++ b/unsorted/elementary/efl_ui_unit_converter.cs
@@ -18,11 +18,11 @@ public class Example
18 { 18 {
19 Efl.Ui.Popup_Alert popup = new Efl.Ui.Popup_Alert(win); 19 Efl.Ui.Popup_Alert popup = new Efl.Ui.Popup_Alert(win);
20 Efl.Ui.Text popup_text = new Efl.Ui.Text(popup); 20 Efl.Ui.Text popup_text = new Efl.Ui.Text(popup);
21 popup_text.SetText($"Error: {message}"); 21 popup_text.Text = $"Error: {message}";
22 popup.SetContent(popup_text); 22 popup.SetContent(popup_text);
23 popup.SetVisible(true); 23 popup.SetVisible(true);
24 popup.SetButton(Efl.Ui.Popup_Alert_Button.Positive, "Ok"); 24 popup.SetButton(Efl.Ui.Popup_Alert_Button.Positive, "Ok");
25 popup.SetSize(new Eina.Size2D(150, 30)); 25 popup.Size = new Eina.Size2D(150, 30);
26 popup.ButtonClickedEvent += (object sender, Efl.Ui.Popup_Alert.ButtonClickedEventArgs e) => { 26 popup.ButtonClickedEvent += (object sender, Efl.Ui.Popup_Alert.ButtonClickedEventArgs e) => {
27 popup.Del() 27 popup.Del()
28 }; 28 };
@@ -41,31 +41,31 @@ public class Example
41 Efl.All.Init(Efl.Components.Ui); 41 Efl.All.Init(Efl.Components.Ui);
42 42
43 Efl.Ui.Win win = new Efl.Ui.Win(null); 43 Efl.Ui.Win win = new Efl.Ui.Win(null);
44 win.SetText("C# Unit Converter"); 44 win.Text = "C# Unit Converter";
45 win.SetAutohide(true); 45 win.Autohide = true;
46 46
47 Efl.Ui.Box_Flow box = new Efl.Ui.Box_Flow(win); 47 Efl.Ui.Box_Flow box = new Efl.Ui.Box_Flow(win);
48 box.SetOrientation(Efl.Ui.LayoutOrientation.Horizontal); 48 box.Orientation = Efl.Ui.LayoutOrientation.Horizontal;
49 49
50 Efl.Ui.Box_Flow miles_box = new Efl.Ui.Box_Flow(box); 50 Efl.Ui.Box_Flow miles_box = new Efl.Ui.Box_Flow(box);
51 miles_box.SetOrientation(Efl.Ui.LayoutOrientation.Down); 51 miles_box.Orientation = Efl.Ui.LayoutOrientation.Down;
52 52
53 box.DoPack(miles_box); 53 box.DoPack(miles_box);
54 54
55 Efl.Ui.Text miles_label = new Efl.Ui.Text(miles_box); 55 Efl.Ui.Text miles_label = new Efl.Ui.Text(miles_box);
56 miles_label.SetText("Miles:"); 56 miles_label.Text = "Miles:";
57 miles_label.SetSize(size); 57 miles_label.Size = size;
58 miles_label.SetVisible(true); 58 miles_label.SetVisible(true);
59 59
60 Efl.Ui.Text_Editable miles_input = new Efl.Ui.Text_Editable(miles_box); 60 Efl.Ui.Text_Editable miles_input = new Efl.Ui.Text_Editable(miles_box);
61 miles_input.SetText(""); 61 miles_input.Text = "";
62 miles_input.SetScrollable(true); 62 miles_input.SetScrollable(true);
63 miles_input.SetSize(size); 63 miles_input.Size = size;
64 miles_input.SetVisible(true); 64 miles_input.SetVisible(true);
65 65
66 Efl.Ui.Button miles_button = new Efl.Ui.Button(miles_box); 66 Efl.Ui.Button miles_button = new Efl.Ui.Button(miles_box);
67 miles_button.SetText("To Km"); 67 miles_button.Text = "To Km";
68 miles_button.SetSize(size); 68 miles_button.Size = size;
69 miles_button.SetVisible(true); 69 miles_button.SetVisible(true);
70 70
71 miles_box.DoPack(miles_label); 71 miles_box.DoPack(miles_label);
@@ -74,24 +74,24 @@ public class Example
74 74
75 75
76 Efl.Ui.Box_Flow kms_box = new Efl.Ui.Box_Flow(box); 76 Efl.Ui.Box_Flow kms_box = new Efl.Ui.Box_Flow(box);
77 kms_box.SetOrientation(Efl.Ui.LayoutOrientation.Down); 77 kms_box.Orientation = Efl.Ui.LayoutOrientation.Down;
78 78
79 box.DoPack(kms_box); 79 box.DoPack(kms_box);
80 80
81 Efl.Ui.Text kms_label = new Efl.Ui.Text(kms_box); 81 Efl.Ui.Text kms_label = new Efl.Ui.Text(kms_box);
82 kms_label.SetText("Kilometers:"); 82 kms_label.Text = "Kilometers:";
83 kms_label.SetSize(size); 83 kms_label.Size = size;
84 kms_label.SetVisible(true); 84 kms_label.SetVisible(true);
85 85
86 Efl.Ui.Text_Editable kms_input = new Efl.Ui.Text_Editable(kms_box); 86 Efl.Ui.Text_Editable kms_input = new Efl.Ui.Text_Editable(kms_box);
87 kms_input.SetText(""); 87 kms_input.Text = "";
88 kms_input.SetScrollable(true); 88 kms_input.SetScrollable(true);
89 kms_input.SetSize(size); 89 kms_input.Size = size;
90 kms_input.SetVisible(true); 90 kms_input.SetVisible(true);
91 91
92 Efl.Ui.Button kms_button = new Efl.Ui.Button(kms_box); 92 Efl.Ui.Button kms_button = new Efl.Ui.Button(kms_box);
93 kms_button.SetText("To Miles"); 93 kms_button.Text = "To Miles";
94 kms_button.SetSize(size); 94 kms_button.Size = size;
95 kms_button.SetVisible(true); 95 kms_button.SetVisible(true);
96 96
97 kms_box.DoPack(kms_label); 97 kms_box.DoPack(kms_label);
@@ -101,10 +101,10 @@ public class Example
101 kms_button.ClickedEvent += (object sender, EventArgs e) => { 101 kms_button.ClickedEvent += (object sender, EventArgs e) => {
102 try 102 try
103 { 103 {
104 string text = kms_input.GetText(); 104 string text = kms_input.Text;
105 Console.WriteLine("Text is [{0}]", text); 105 Console.WriteLine("Text is [{0}]", text);
106 double val = double.Parse(text); 106 double val = double.Parse(text);
107 miles_input.SetText(String.Format("{0:f3}", KmsToMiles(val))); 107 miles_input.Text = String.Format("{0:f3}", KmsToMiles(val));
108 kms_input.SetFocus(true); 108 kms_input.SetFocus(true);
109 } 109 }
110 catch (FormatException ex) 110 catch (FormatException ex)
@@ -117,10 +117,10 @@ public class Example
117 miles_button.ClickedEvent += (object sender, EventArgs e) => { 117 miles_button.ClickedEvent += (object sender, EventArgs e) => {
118 try 118 try
119 { 119 {
120 string text = miles_input.GetText(); 120 string text = miles_input.Text;
121 Console.WriteLine("Text is [{0}]", text); 121 Console.WriteLine("Text is [{0}]", text);
122 double val = double.Parse(text); 122 double val = double.Parse(text);
123 kms_input.SetText(String.Format("{0:f3}", MilesToKms(val))); 123 kms_input.Text = String.Format("{0:f3}", MilesToKms(val));
124 miles_input.SetFocus(true); 124 miles_input.SetFocus(true);
125 } 125 }
126 catch (FormatException ex) 126 catch (FormatException ex)
@@ -138,7 +138,7 @@ public class Example
138 138
139 win.SetPosition(new Eina.Position2D(200, 200)); 139 win.SetPosition(new Eina.Position2D(200, 200));
140 140
141 win.SetSize(new Eina.Size2D(400, 120)); 141 win.Size = new Eina.Size2D(400, 120);
142 win.SetVisible(true); 142 win.SetVisible(true);
143 143
144 Efl.Ui.Config.Run(); 144 Efl.Ui.Config.Run();
diff --git a/unsorted/evas/evas_mono_box.cs b/unsorted/evas/evas_mono_box.cs
index c3ddfee8..2b377db8 100644
--- a/unsorted/evas/evas_mono_box.cs
+++ b/unsorted/evas/evas_mono_box.cs
@@ -49,20 +49,20 @@ class TestMain
49 size.W = 320; 49 size.W = 320;
50 size.H = 240; 50 size.H = 240;
51 51
52 box.SetSize(size); 52 box.Size = size;
53 box.SetVisible(true); 53 box.SetVisible(true);
54 54
55 Efl.Canvas.Rectangle rect = new Efl.Canvas.Rectangle(canvas); 55 Efl.Canvas.Rectangle rect = new Efl.Canvas.Rectangle(canvas);
56 rect.SetColor(0, 0, 255, 255); 56 rect.Color = (0, 0, 255, 255);
57 size.W = 320; 57 size.W = 320;
58 size.H = 120; 58 size.H = 120;
59 rect.SetSize(size); 59 rect.Size = size;
60 rect.SetVisible(true); 60 rect.SetVisible(true);
61 box.Append(rect); 61 box.Append(rect);
62 62
63 Efl.Canvas.Rectangle rect2 = new Efl.Canvas.Rectangle(canvas); 63 Efl.Canvas.Rectangle rect2 = new Efl.Canvas.Rectangle(canvas);
64 rect2.SetColor(0, 255, 0, 255); 64 rect2.Color = (0, 255, 0, 255);
65 rect2.SetSize(size); 65 rect2.Size = size;
66 rect2.SetVisible(true); 66 rect2.SetVisible(true);
67 box.Append(rect2); 67 box.Append(rect2);
68 68
diff --git a/unsorted/evas/evas_mono_image.cs b/unsorted/evas/evas_mono_image.cs
index d241ce8e..db14fd72 100644
--- a/unsorted/evas/evas_mono_image.cs
+++ b/unsorted/evas/evas_mono_image.cs
@@ -35,10 +35,10 @@ class TestMain
35 System.Diagnostics.Debug.Assert(parent.raw_handle != IntPtr.Zero); 35 System.Diagnostics.Debug.Assert(parent.raw_handle != IntPtr.Zero);
36 36
37 Efl.Canvas.Rectangle bg = new Efl.Canvas.Rectangle(canvas); 37 Efl.Canvas.Rectangle bg = new Efl.Canvas.Rectangle(canvas);
38 bg.SetColor(255, 255, 255, 255); 38 bg.Color = (255, 255, 255, 255);
39 size.W = WIDTH; 39 size.W = WIDTH;
40 size.H = HEIGHT; 40 size.H = HEIGHT;
41 bg.SetSize(size); 41 bg.Size = size;
42 bg.SetVisible(true); 42 bg.SetVisible(true);
43 43
44 string valid_path = args[0]; 44 string valid_path = args[0];
@@ -60,7 +60,7 @@ class TestMain
60 60
61 size.W = WIDTH / 2; 61 size.W = WIDTH / 2;
62 size.H = HEIGHT / 2; 62 size.H = HEIGHT / 2;
63 image.SetSize(size); 63 image.Size = size;
64 image.SetVisible(true); 64 image.SetVisible(true);
65 65
66 rect = image.GetFill(); 66 rect = image.GetFill();
diff --git a/unsorted/evas/evas_mono_image2.cs b/unsorted/evas/evas_mono_image2.cs
index f239199f..4c7cc1b6 100644
--- a/unsorted/evas/evas_mono_image2.cs
+++ b/unsorted/evas/evas_mono_image2.cs
@@ -23,13 +23,13 @@ class TestMain
23 canvas.SetVisible(true); 23 canvas.SetVisible(true);
24 24
25 Efl.Canvas.Rectangle bg = new Efl.Canvas.Rectangle(canvas); 25 Efl.Canvas.Rectangle bg = new Efl.Canvas.Rectangle(canvas);
26 bg.SetColor(255, 255, 255, 255); 26 bg.Color = (255, 255, 255, 255);
27 pos.X = 0; 27 pos.X = 0;
28 pos.Y = 0; 28 pos.Y = 0;
29 bg.SetPosition(pos); 29 bg.SetPosition(pos);
30 size.W = WIDTH; 30 size.W = WIDTH;
31 size.H = HEIGHT; 31 size.H = HEIGHT;
32 bg.SetSize(size); 32 bg.Size = size;
33 bg.SetVisible(true); 33 bg.SetVisible(true);
34 34
35 string path = args[0]; 35 string path = args[0];
@@ -41,7 +41,7 @@ class TestMain
41 logo.SetFile(path, null); 41 logo.SetFile(path, null);
42 size.W = WIDTH / 2; 42 size.W = WIDTH / 2;
43 size.H = HEIGHT / 2; 43 size.H = HEIGHT / 2;
44 logo.SetSize(size); 44 logo.Size = size;
45 45
46 // TODO add a bunch of key/mouse handlers 46 // TODO add a bunch of key/mouse handlers
47 47
@@ -56,7 +56,7 @@ class TestMain
56 evas.Image noise_img = new evas.Image(canvas); 56 evas.Image noise_img = new evas.Image(canvas);
57 size.W = WIDTH / 4; 57 size.W = WIDTH / 4;
58 size.H = HEIGHT / 4; 58 size.H = HEIGHT / 4;
59 noise_img.SetSize(size); 59 noise_img.Size = size;
60 // FIXME Add a way to set the pixels. 60 // FIXME Add a way to set the pixels.
61 // noise_img.data_set(pixels); 61 // noise_img.data_set(pixels);
62 noise_img.SetFillAuto(true); 62 noise_img.SetFillAuto(true);
@@ -73,7 +73,7 @@ class TestMain
73 proxy_img.SetPosition(pos); 73 proxy_img.SetPosition(pos);
74 size.W = WIDTH / 2; 74 size.W = WIDTH / 2;
75 size.H = HEIGHT / 2; 75 size.H = HEIGHT / 2;
76 proxy_img.SetSize(size); 76 proxy_img.Size = size;
77 proxy_img.SetVisible(true); 77 proxy_img.SetVisible(true);
78 78
79 loop.Begin(); 79 loop.Begin();
diff --git a/unsorted/evas/evas_mono_rectangle.cs b/unsorted/evas/evas_mono_rectangle.cs
index 9fb85b2b..97149d6d 100644
--- a/unsorted/evas/evas_mono_rectangle.cs
+++ b/unsorted/evas/evas_mono_rectangle.cs
@@ -23,11 +23,11 @@ class TestMain
23 System.Diagnostics.Debug.Assert(parent.raw_handle != IntPtr.Zero); 23 System.Diagnostics.Debug.Assert(parent.raw_handle != IntPtr.Zero);
24 24
25 Efl.Canvas.Rectangle rect = new Efl.Canvas.Rectangle(canvas); 25 Efl.Canvas.Rectangle rect = new Efl.Canvas.Rectangle(canvas);
26 rect.SetColor(colors[0, 0], colors[0, 1], colors[0, 2], 255); 26 rect.Color = (colors[0, 0], colors[0, 1], colors[0, 2], 255);
27 Eina.Size2D size = new Eina.Size2D(); 27 Eina.Size2D size = new Eina.Size2D();
28 size.W = 640; 28 size.W = 640;
29 size.H = 480; 29 size.H = 480;
30 rect.SetSize(size); 30 rect.Size = size;
31 rect.SetVisible(true); 31 rect.SetVisible(true);
32 32
33 canvas.KeyDownEvent += (object sender, Efl.Input.Interface.KeyDownEventArgs e) => { 33 canvas.KeyDownEvent += (object sender, Efl.Input.Interface.KeyDownEventArgs e) => {
diff --git a/unsorted/evas/evas_mono_table.cs b/unsorted/evas/evas_mono_table.cs
index 7dfb56b9..27e39a11 100644
--- a/unsorted/evas/evas_mono_table.cs
+++ b/unsorted/evas/evas_mono_table.cs
@@ -28,19 +28,19 @@ class TestMain
28 System.Diagnostics.Debug.Assert(parent.raw_handle != IntPtr.Zero); 28 System.Diagnostics.Debug.Assert(parent.raw_handle != IntPtr.Zero);
29 29
30 Efl.Canvas.Rectangle bg = new Efl.Canvas.Rectangle(canvas); 30 Efl.Canvas.Rectangle bg = new Efl.Canvas.Rectangle(canvas);
31 bg.SetColor(255, 255, 255, 255); 31 bg.Color = (255, 255, 255, 255);
32 bg.SetSize(size); 32 bg.Size = size;
33 bg.SetVisible(true); 33 bg.SetVisible(true);
34 34
35 35
36 evas.Table table = new evas.Table(canvas); 36 evas.Table table = new evas.Table(canvas);
37 table.SetHomogeneous(evas.object_table.Homogeneous_Mode.None); 37 table.SetHomogeneous(evas.object_table.Homogeneous_Mode.None);
38 table.SetPadding(0, 0); 38 table.SetPadding(0, 0);
39 table.SetSize(size); 39 table.Size = size;
40 table.SetVisible(true); 40 table.SetVisible(true);
41 41
42 Efl.Canvas.Rectangle rect = new Efl.Canvas.Rectangle(canvas); 42 Efl.Canvas.Rectangle rect = new Efl.Canvas.Rectangle(canvas);
43 rect.SetColor(255, 0, 0, 255); 43 rect.Color = (255, 0, 0, 255);
44 hint.W = 100; 44 hint.W = 100;
45 hint.H = 50; 45 hint.H = 50;
46 rect.SetHintMin(hint); 46 rect.SetHintMin(hint);
@@ -48,7 +48,7 @@ class TestMain
48 table.Pack(rect, 1, 1, 2, 1); 48 table.Pack(rect, 1, 1, 2, 1);
49 49
50 rect = new Efl.Canvas.Rectangle(canvas); 50 rect = new Efl.Canvas.Rectangle(canvas);
51 rect.SetColor(0, 255, 0, 255); 51 rect.Color = (0, 255, 0, 255);
52 hint.W = 50; 52 hint.W = 50;
53 hint.H = 100; 53 hint.H = 100;
54 rect.SetHintMin(hint); 54 rect.SetHintMin(hint);
@@ -56,7 +56,7 @@ class TestMain
56 table.Pack(rect, 1, 2, 1, 2); 56 table.Pack(rect, 1, 2, 1, 2);
57 57
58 rect = new Efl.Canvas.Rectangle(canvas); 58 rect = new Efl.Canvas.Rectangle(canvas);
59 rect.SetColor(0, 0, 255, 255); 59 rect.Color = (0, 0, 255, 255);
60 hint.W = 50; 60 hint.W = 50;
61 hint.H = 50; 61 hint.H = 50;
62 rect.SetHintMin(hint); 62 rect.SetHintMin(hint);
@@ -64,7 +64,7 @@ class TestMain
64 table.Pack(rect, 2, 2, 1, 1); 64 table.Pack(rect, 2, 2, 1, 1);
65 65
66 rect = new Efl.Canvas.Rectangle(canvas); 66 rect = new Efl.Canvas.Rectangle(canvas);
67 rect.SetColor(255, 255, 0, 255); 67 rect.Color = (255, 255, 0, 255);
68 rect.SetHintMin(hint); 68 rect.SetHintMin(hint);
69 rect.SetVisible(true); 69 rect.SetVisible(true);
70 table.Pack(rect, 2, 3, 1, 1); 70 table.Pack(rect, 2, 3, 1, 1);
diff --git a/unsorted/evas/evas_mono_text.cs b/unsorted/evas/evas_mono_text.cs
index 54bd3fde..d55104e1 100644
--- a/unsorted/evas/evas_mono_text.cs
+++ b/unsorted/evas/evas_mono_text.cs
@@ -35,13 +35,13 @@ class TestMain
35 canvas.SetVisible(true); 35 canvas.SetVisible(true);
36 36
37 bg = new Efl.Canvas.Rectangle(canvas); 37 bg = new Efl.Canvas.Rectangle(canvas);
38 bg.SetColor(255, 255, 255, 255); 38 bg.Color = (255, 255, 255, 255);
39 position.X = 0; 39 position.X = 0;
40 position.Y = 0; 40 position.Y = 0;
41 bg.SetPosition(position); 41 bg.SetPosition(position);
42 size.W = WIDTH; 42 size.W = WIDTH;
43 size.H = HEIGHT; 43 size.H = HEIGHT;
44 bg.SetSize(size); 44 bg.Size = size;
45 bg.SetVisible(true); 45 bg.SetVisible(true);
46 bg.SetKeyFocus(true); 46 bg.SetKeyFocus(true);
47 47
@@ -50,16 +50,16 @@ class TestMain
50 text = new evas.Text(canvas); 50 text = new evas.Text(canvas);
51 text.SetStyle(evas.Text_Style_Type.OutlineSoftShadow); 51 text.SetStyle(evas.Text_Style_Type.OutlineSoftShadow);
52 52
53 text.SetColor(0, 0, 0, 255); 53 text.Color = (0, 0, 0, 255);
54 text.SetGlowColor(255, 0, 0, 255); 54 text.SetGlowColor(255, 0, 0, 255);
55 text.SetOutlineColor(0, 0, 255, 255); 55 text.SetOutlineColor(0, 0, 255, 255);
56 text.SetShadowColor(0, 255,255, 255); 56 text.SetShadowColor(0, 255,255, 255);
57 text.SetFont("Courier", 30); 57 text.SetFont("Courier", 30);
58 58
59 text.SetText("sample text"); 59 text.Text = "sample text";
60 size.W = 3*WIDTH / 4; 60 size.W = 3*WIDTH / 4;
61 size.H = HEIGHT / 4; 61 size.H = HEIGHT / 4;
62 text.SetSize(size); 62 text.Size = size;
63 position.X = WIDTH / 8; 63 position.X = WIDTH / 8;
64 position.Y = 3 * HEIGHT / 8; 64 position.Y = 3 * HEIGHT / 8;
65 text.SetPosition(position); 65 text.SetPosition(position);
@@ -78,7 +78,7 @@ class TestMain
78 78
79 size.W = 3 * WIDTH / 4 + 3; 79 size.W = 3 * WIDTH / 4 + 3;
80 size.H = HEIGHT / 4 + 3; 80 size.H = HEIGHT / 4 + 3;
81 border.SetSize(size); 81 border.Size = size;
82 position.X = WIDTH / 8 - 3; 82 position.X = WIDTH / 8 - 3;
83 position.Y = 3 * HEIGHT / 8 - 3; 83 position.Y = 3 * HEIGHT / 8 - 3;
84 border.SetPosition(position); 84 border.SetPosition(position);