summaryrefslogtreecommitdiff
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
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.
-rw-r--r--apps/csharp/calculator/src/calculator.cs18
-rw-r--r--apps/csharp/life/src/life_main.cs12
-rw-r--r--apps/csharp/life/src/life_render.cs12
-rw-r--r--apps/csharp/mvvm-example/src/mvvm_basic.cs6
-rw-r--r--apps/csharp/texteditor/src/texteditor_main.cs30
-rw-r--r--reference/csharp/core/src/core_event.cs8
-rw-r--r--reference/csharp/snippets/Efl.Ui.Bg.cs2
-rw-r--r--reference/csharp/snippets/Efl.Ui.Button.cs4
-rw-r--r--reference/csharp/snippets/Efl.Ui.Check.cs2
-rw-r--r--reference/csharp/snippets/Efl.Ui.Popup.cs2
-rw-r--r--reference/csharp/snippets/Efl.Ui.RadioBox.cs2
-rw-r--r--reference/csharp/snippets/Efl.Ui.Scroller.cs2
-rw-r--r--reference/csharp/snippets/Efl.Ui.SpinButton.cs2
-rw-r--r--reference/csharp/snippets/Efl.Ui.Win.cs4
-rw-r--r--reference/csharp/ui/src/focus_main.cs24
-rw-r--r--reference/csharp/ui/src/ui_container.cs34
-rw-r--r--reference/csharp/ui/src/ui_custom_widget.cs16
-rw-r--r--reference/csharp/ui/src/ui_sizing.cs14
-rw-r--r--tutorial/csharp/eo-intro/src/eo_intro_main.cs6
-rw-r--r--tutorial/csharp/hello-gui/src/gui_main.cs18
-rw-r--r--tutorial/csharp/hello-world/src/hello-world.cs6
-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
29 files changed, 172 insertions, 170 deletions
diff --git a/apps/csharp/calculator/src/calculator.cs b/apps/csharp/calculator/src/calculator.cs
index 725dacd1..704cb126 100644
--- a/apps/csharp/calculator/src/calculator.cs
+++ b/apps/csharp/calculator/src/calculator.cs
@@ -48,10 +48,10 @@ public class Calculator : Efl.Csharp.Application
48 { 48 {
49 if (mustOverwrite) 49 if (mustOverwrite)
50 { 50 {
51 screen.SetText(""); 51 screen.Text = "";
52 mustOverwrite = false; 52 mustOverwrite = false;
53 } 53 }
54 screen.SetText(screen.GetText() + button.ToString()); 54 screen.Text = screen.Text + button.ToString();
55 } 55 }
56 else 56 else
57 { 57 {
@@ -59,7 +59,7 @@ public class Calculator : Efl.Csharp.Application
59 { 59 {
60 case 'C': 60 case 'C':
61 // Clear current input 61 // Clear current input
62 screen.SetText("0"); 62 screen.Text = "0";
63 break; 63 break;
64 case '+': 64 case '+':
65 case '-': 65 case '-':
@@ -70,7 +70,7 @@ public class Calculator : Efl.Csharp.Application
70 if (operation != '=') 70 if (operation != '=')
71 { 71 {
72 Operate(); 72 Operate();
73 screen.SetText(currValue.ToString()); 73 screen.Text = currValue.ToString();
74 } 74 }
75 // Store this operation 75 // Store this operation
76 operation = button; 76 operation = button;
@@ -90,7 +90,7 @@ public class Calculator : Efl.Csharp.Application
90 private void ScreenChangedCb(object sender, EventArgs ea) 90 private void ScreenChangedCb(object sender, EventArgs ea)
91 { 91 {
92 string text = ""; 92 string text = "";
93 string str = screen.GetText(); 93 string str = screen.Text;
94 int d; 94 int d;
95 if (str == "" || str == "-") 95 if (str == "" || str == "-")
96 { 96 {
@@ -106,7 +106,7 @@ public class Calculator : Efl.Csharp.Application
106 } 106 }
107 catch {} 107 catch {}
108 } 108 }
109 if (text != str) screen.SetText(text); 109 if (text != str) screen.Text = text;
110 } 110 }
111 111
112 // Creates an Efl.Ui.Button and positions it in the given position inside the table 112 // Creates an Efl.Ui.Button and positions it in the given position inside the table
@@ -128,7 +128,7 @@ public class Calculator : Efl.Csharp.Application
128 label.TextHorizontalAlign = 0.5; 128 label.TextHorizontalAlign = 0.5;
129 label.TextVerticalAlign = 0.5; 129 label.TextVerticalAlign = 0.5;
130 label.Color = (r, g, b, 255); 130 label.Color = (r, g, b, 255);
131 label.SetText(text); 131 label.Text = text;
132 label.FontFamily = "Sans"; 132 label.FontFamily = "Sans";
133 label.FontSize = 36; 133 label.FontSize = 36;
134 button.Content = label; 134 button.Content = label;
@@ -139,7 +139,7 @@ public class Calculator : Efl.Csharp.Application
139 { 139 {
140 // The window 140 // The window
141 var win = new Efl.Ui.Win(Efl.App.AppMain); 141 var win = new Efl.Ui.Win(Efl.App.AppMain);
142 win.SetText("EFL Calculator"); 142 win.Text = "EFL Calculator";
143 win.Autohide = true; 143 win.Autohide = true;
144 win.VisibilityChangedEvent += GUIQuitCb; 144 win.VisibilityChangedEvent += GUIQuitCb;
145 145
@@ -169,7 +169,7 @@ public class Calculator : Efl.Csharp.Application
169 169
170 // Create a big Efl.Ui.Text screen to display the current input 170 // Create a big Efl.Ui.Text screen to display the current input
171 screen = new Efl.Ui.Textbox(table); 171 screen = new Efl.Ui.Textbox(table);
172 screen.SetText("0"); 172 screen.Text = "0";
173 screen.FontFamily = "Sans"; 173 screen.FontFamily = "Sans";
174 screen.FontSize = 48; 174 screen.FontSize = 48;
175 screen.Multiline = false; 175 screen.Multiline = false;
diff --git a/apps/csharp/life/src/life_main.cs b/apps/csharp/life/src/life_main.cs
index dc1a4d64..e44cbd9e 100644
--- a/apps/csharp/life/src/life_main.cs
+++ b/apps/csharp/life/src/life_main.cs
@@ -21,7 +21,7 @@ public class LifeWindow : Efl.Csharp.Application
21 void TouchEvent(object sender, Efl.Input.InterfacePointerDownEventArgs ev) 21 void TouchEvent(object sender, Efl.Input.InterfacePointerDownEventArgs ev)
22 { 22 {
23 int cellx, celly; 23 int cellx, celly;
24 var position = ev.Arg.GetPosition(); 24 var position = ev.Arg.Position;
25 lifeRender.CellForCoords(win, position, out cellx, out celly); 25 lifeRender.CellForCoords(win, position, out cellx, out celly);
26 26
27 int i = LifeBoard.IndexForPosition(cellx, celly); 27 int i = LifeBoard.IndexForPosition(cellx, celly);
@@ -31,15 +31,15 @@ public class LifeWindow : Efl.Csharp.Application
31 31
32 void KeyDownEvent(object sender, Efl.Input.InterfaceKeyDownEventArgs ev) 32 void KeyDownEvent(object sender, Efl.Input.InterfaceKeyDownEventArgs ev)
33 { 33 {
34 if (ev.Arg.GetKeySym() == "space") 34 if (ev.Arg.KeySym == "space")
35 lifeBoard.TogglePause(win); 35 lifeBoard.TogglePause(win);
36 } 36 }
37 37
38 protected override void OnInitialize(string[] args) 38 protected override void OnInitialize(string[] args)
39 { 39 {
40 win = new Efl.Ui.Win(parent: null, winName: "Life", winType: Efl.Ui.WinType.Basic); 40 win = new Efl.Ui.Win(parent: null, winName: "Life", winType: Efl.Ui.WinType.Basic);
41 win.SetText("EFL Life"); 41 win.Text = "EFL Life";
42 win.SetAutohide(true); 42 win.Autohide = true;
43 43
44 // when the user clicks "close" on a window there is a request to hide 44 // when the user clicks "close" on a window there is a request to hide
45 ((Efl.Gfx.IEntity)win).VisibilityChangedEvent += QuitEvent; 45 ((Efl.Gfx.IEntity)win).VisibilityChangedEvent += QuitEvent;
@@ -52,8 +52,8 @@ public class LifeWindow : Efl.Csharp.Application
52 ((Efl.Input.IInterface)win).PointerDownEvent += TouchEvent; 52 ((Efl.Input.IInterface)win).PointerDownEvent += TouchEvent;
53 ((Efl.Input.IInterface)win).KeyDownEvent += KeyDownEvent; 53 ((Efl.Input.IInterface)win).KeyDownEvent += KeyDownEvent;
54 54
55 win.SetSize(new Eina.Size2D((int)(10 * LifeBoard.Width * win.GetScale()), 55 win.Size = new Eina.Size2D((int)(10 * LifeBoard.Width * win.Scale),
56 (int)(10 * LifeBoard.Height * win.GetScale()))); 56 (int)(10 * LifeBoard.Height * win.Scale));
57 57
58 lifeBoard.Run(win); 58 lifeBoard.Run(win);
59 } 59 }
diff --git a/apps/csharp/life/src/life_render.cs b/apps/csharp/life/src/life_render.cs
index 155c87a0..16f4c190 100644
--- a/apps/csharp/life/src/life_render.cs
+++ b/apps/csharp/life/src/life_render.cs
@@ -21,7 +21,7 @@ public class LifeRender
21 21
22 public void CellForCoords(Efl.Ui.Win win, Eina.Position2D coord, out int x, out int y) 22 public void CellForCoords(Efl.Ui.Win win, Eina.Position2D coord, out int x, out int y)
23 { 23 {
24 Eina.Size2D size = win.GetSize(); 24 Eina.Size2D size = win.Size;
25 25
26 x = coord.X * LifeBoard.Width / size.W; 26 x = coord.X * LifeBoard.Width / size.W;
27 y = coord.Y * LifeBoard.Height / size.H; 27 y = coord.Y * LifeBoard.Height / size.H;
@@ -29,7 +29,7 @@ public class LifeRender
29 29
30 public void RenderLayout(Efl.Ui.Win win) 30 public void RenderLayout(Efl.Ui.Win win)
31 { 31 {
32 Eina.Size2D size = win.GetSize(); 32 Eina.Size2D size = win.Size;
33 double cw = (double) size.W / LifeBoard.Width; 33 double cw = (double) size.W / LifeBoard.Width;
34 double ch = (double) size.H / LifeBoard.Height; 34 double ch = (double) size.H / LifeBoard.Height;
35 35
@@ -39,9 +39,9 @@ public class LifeRender
39 var rect = lifeCells[LifeBoard.IndexForPosition(x, y)]; 39 var rect = lifeCells[LifeBoard.IndexForPosition(x, y)];
40 40
41 // the little +1 here will avoid tearing as we layout non-multiple sizes 41 // the little +1 here will avoid tearing as we layout non-multiple sizes
42 rect.SetSize(new Eina.Size2D((int)(cw + 1), (int)(ch + 1))); 42 rect.Size = new Eina.Size2D((int)(cw + 1), (int)(ch + 1));
43 43
44 rect.SetPosition(new Eina.Position2D((int)(x * cw), (int)(y * ch))); 44 rect.Position = new Eina.Position2D((int)(x * cw), (int)(y * ch));
45 } 45 }
46 } 46 }
47 47
@@ -51,9 +51,9 @@ public class LifeRender
51 var rect = lifeCells[i]; 51 var rect = lifeCells[i];
52 52
53 if (lifeBoard.Cells[i]) 53 if (lifeBoard.Cells[i])
54 rect.SetColor(0, 0, 0, 255); 54 rect.Color = (0, 0, 0, 255);
55 else 55 else
56 rect.SetColor(255, 255, 255, 255); 56 rect.Color = (255, 255, 255, 255);
57 } 57 }
58 58
59 public void Refresh(Efl.Ui.Win win) 59 public void Refresh(Efl.Ui.Win win)
diff --git a/apps/csharp/mvvm-example/src/mvvm_basic.cs b/apps/csharp/mvvm-example/src/mvvm_basic.cs
index f75af64e..4c7e0fcf 100644
--- a/apps/csharp/mvvm-example/src/mvvm_basic.cs
+++ b/apps/csharp/mvvm-example/src/mvvm_basic.cs
@@ -29,8 +29,8 @@ class Application : Efl.Csharp.Application
29 { 29 {
30 win = new Efl.Ui.Win(parent: null, winName: "MVVM Example", 30 win = new Efl.Ui.Win(parent: null, winName: "MVVM Example",
31 winType: Efl.Ui.WinType.Basic); 31 winType: Efl.Ui.WinType.Basic);
32 win.SetText("EFL Life"); 32 win.Text = "EFL Life";
33 win.SetAutohide(true); 33 win.Autohide = true;
34 34
35 win.VisibilityChangedEvent += QuitEvt; 35 win.VisibilityChangedEvent += QuitEvt;
36 36
@@ -49,7 +49,7 @@ class Application : Efl.Csharp.Application
49 list.Factory = factory; 49 list.Factory = factory;
50 50
51 win.SetContent(list); 51 win.SetContent(list);
52 win.SetSize(new Eina.Size2D(640, 480)); 52 win.Size = new Eina.Size2D(640, 480);
53 win.Visible = true; 53 win.Visible = true;
54 } 54 }
55 55
diff --git a/apps/csharp/texteditor/src/texteditor_main.cs b/apps/csharp/texteditor/src/texteditor_main.cs
index c8f0b802..eaa533bf 100644
--- a/apps/csharp/texteditor/src/texteditor_main.cs
+++ b/apps/csharp/texteditor/src/texteditor_main.cs
@@ -42,11 +42,11 @@ public class TextEditor : Efl.Csharp.Application
42 private void GUIToolbarRefresh() 42 private void GUIToolbarRefresh()
43 { 43 {
44 // "New" is enabled if there is text in the text box 44 // "New" is enabled if there is text in the text box
45 toolbarButtonNew.SetDisabled(string.IsNullOrEmpty(editorTextBox.GetText())); 45 toolbarButtonNew.Disabled = string.IsNullOrEmpty(editorTextBox.Text);
46 // "Save" is enabled if the text has been modified since last save or load 46 // "Save" is enabled if the text has been modified since last save or load
47 toolbarButtonSave.SetDisabled(!edited); 47 toolbarButtonSave.Disabled = !edited;
48 // "Load" is enabled if there is a file to load 48 // "Load" is enabled if there is a file to load
49 toolbarButtonLoad.SetDisabled(!System.IO.File.Exists(filename)); 49 toolbarButtonLoad.Disabled = !System.IO.File.Exists(filename);
50 } 50 }
51 51
52 // Called when the text in the editor has changed 52 // Called when the text in the editor has changed
@@ -60,8 +60,8 @@ public class TextEditor : Efl.Csharp.Application
60 private void ShowMessage(string message) 60 private void ShowMessage(string message)
61 { 61 {
62 var popup = new Efl.Ui.AlertPopup (win); 62 var popup = new Efl.Ui.AlertPopup (win);
63 popup.SetScrollableText(message); 63 popup.ScrollableText = message;
64 popup.SetHintSizeMax(new Eina.Size2D(200, 200)); 64 popup.HintSizeMax = new Eina.Size2D(200, 200);
65 popup.SetButton(Efl.Ui.AlertPopupButton.Positive, "OK", null); 65 popup.SetButton(Efl.Ui.AlertPopupButton.Positive, "OK", null);
66 popup.ButtonClickedEvent += 66 popup.ButtonClickedEvent +=
67 (object sender, Efl.Ui.AlertPopupButtonClickedEventArgs ea) => { 67 (object sender, Efl.Ui.AlertPopupButtonClickedEventArgs ea) => {
@@ -75,9 +75,9 @@ public class TextEditor : Efl.Csharp.Application
75 string iconName, EventHandler<Efl.Input.ClickableClickedEventArgs> func) 75 string iconName, EventHandler<Efl.Input.ClickableClickedEventArgs> func)
76 { 76 {
77 var button = new Efl.Ui.Button(toolbar); 77 var button = new Efl.Ui.Button(toolbar);
78 button.SetText(name); 78 button.Text = name;
79 button.ClickedEvent += func; 79 button.ClickedEvent += func;
80 button.SetHintWeight(0, 1); 80 button.HintWeight = (0, 1);
81 81
82 // Set the content of the button, which is an image 82 // Set the content of the button, which is an image
83 var image = new Efl.Ui.Image(toolbar); 83 var image = new Efl.Ui.Image(toolbar);
@@ -96,15 +96,15 @@ public class TextEditor : Efl.Csharp.Application
96 // 0 vertical weight means that the toolbar will have the minimum height 96 // 0 vertical weight means that the toolbar will have the minimum height
97 // to accommodate all its buttons and not a pixel more. The rest of the 97 // to accommodate all its buttons and not a pixel more. The rest of the
98 // space will be given to the other object in the parent container. 98 // space will be given to the other object in the parent container.
99 bar.SetHintWeight(1, 0); 99 bar.HintWeight = (1, 0);
100 bar.SetOrientation(Efl.Ui.LayoutOrientation.Horizontal); 100 bar.Orientation = Efl.Ui.LayoutOrientation.Horizontal;
101 parent.Pack(bar); 101 parent.Pack(bar);
102 102
103 // "New" button 103 // "New" button
104 toolbarButtonNew = GUIToolbarButtonAdd(bar, "New", "document-new", 104 toolbarButtonNew = GUIToolbarButtonAdd(bar, "New", "document-new",
105 (object sender, Efl.Input.ClickableClickedEventArgs ea) => { 105 (object sender, Efl.Input.ClickableClickedEventArgs ea) => {
106 // When this button is clicked, remove content and refresh toolbar 106 // When this button is clicked, remove content and refresh toolbar
107 editorTextBox.SetText(""); 107 editorTextBox.Text = "";
108 GUIToolbarRefresh(); 108 GUIToolbarRefresh();
109 }); 109 });
110 110
@@ -113,7 +113,7 @@ public class TextEditor : Efl.Csharp.Application
113 (object sender, Efl.Input.ClickableClickedEventArgs ea) => { 113 (object sender, Efl.Input.ClickableClickedEventArgs ea) => {
114 // When this button is clicked, try to save content and refresh toolbar 114 // When this button is clicked, try to save content and refresh toolbar
115 try { 115 try {
116 System.IO.File.WriteAllText(filename, editorTextBox.GetText()); 116 System.IO.File.WriteAllText(filename, editorTextBox.Text);
117 edited = false; 117 edited = false;
118 GUIToolbarRefresh(); 118 GUIToolbarRefresh();
119 ShowMessage("Saved!"); 119 ShowMessage("Saved!");
@@ -128,7 +128,7 @@ public class TextEditor : Efl.Csharp.Application
128 (object sender, Efl.Input.ClickableClickedEventArgs ea) => { 128 (object sender, Efl.Input.ClickableClickedEventArgs ea) => {
129 // When this button is clicked, try to load content and refresh toolbar 129 // When this button is clicked, try to load content and refresh toolbar
130 try { 130 try {
131 editorTextBox.SetText(System.IO.File.ReadAllText(filename)); 131 editorTextBox.Text = System.IO.File.ReadAllText(filename);
132 edited = false; 132 edited = false;
133 GUIToolbarRefresh(); 133 GUIToolbarRefresh();
134 ShowMessage("Loaded!"); 134 ShowMessage("Loaded!");
@@ -155,8 +155,8 @@ public class TextEditor : Efl.Csharp.Application
155 { 155 {
156 // Create a window and initialize it 156 // Create a window and initialize it
157 win = new Efl.Ui.Win(parent: Efl.App.AppMain); 157 win = new Efl.Ui.Win(parent: Efl.App.AppMain);
158 win.SetText("Text Editor"); 158 win.Text = "Text Editor";
159 win.SetAutohide(true); 159 win.Autohide = true;
160 win.VisibilityChangedEvent += GUIQuitCb; 160 win.VisibilityChangedEvent += GUIQuitCb;
161 161
162 // Create a vertical box container 162 // Create a vertical box container
@@ -173,7 +173,7 @@ public class TextEditor : Efl.Csharp.Application
173 editorTextBox.Multiline = true; 173 editorTextBox.Multiline = true;
174 editorTextBox.Editable = true; 174 editorTextBox.Editable = true;
175 editorTextBox.Scrollable = true; 175 editorTextBox.Scrollable = true;
176 editorTextBox.SetHintSizeMin(new Eina.Size2D(360, 240)); 176 editorTextBox.HintSizeMin = new Eina.Size2D(360, 240);
177 editorTextBox.ChangedEvent += EditorChangedCb; 177 editorTextBox.ChangedEvent += EditorChangedCb;
178 editorTextBox.ChangedUserEvent += EditorChangedCb; 178 editorTextBox.ChangedUserEvent += EditorChangedCb;
179 box.Pack(editorTextBox); 179 box.Pack(editorTextBox);
diff --git a/reference/csharp/core/src/core_event.cs b/reference/csharp/core/src/core_event.cs
index cb500a44..d2a5e8d7 100644
--- a/reference/csharp/core/src/core_event.cs
+++ b/reference/csharp/core/src/core_event.cs
@@ -12,21 +12,21 @@ public class Example : Efl.Csharp.Application
12 // Polling callback 12 // Polling callback
13 private static void PollCb(object sender, EventArgs e) 13 private static void PollCb(object sender, EventArgs e)
14 { 14 {
15 Console.WriteLine(" Poll from {0}", ((Efl.Object)sender).GetName()); 15 Console.WriteLine(" Poll from {0}", ((Efl.Object)sender).Name);
16 } 16 }
17 17
18 protected override void OnInitialize(string[] args) 18 protected override void OnInitialize(string[] args)
19 { 19 {
20 // Retrieve the application's main loop 20 // Retrieve the application's main loop
21 var mainloop = Efl.App.AppMain; 21 var mainloop = Efl.App.AppMain;
22 mainloop.SetName("Mainloop"); 22 mainloop.Name = "Mainloop";
23 23
24 // This event gets triggered continuously 24 // This event gets triggered continuously
25 mainloop.PollHighEvent += PollCb; 25 mainloop.PollHighEvent += PollCb;
26 26
27 // This timer will control events fired by the main loop 27 // This timer will control events fired by the main loop
28 var timer = new Efl.LoopTimer(mainloop, 0.1); 28 var timer = new Efl.LoopTimer(mainloop, 0.1);
29 timer.SetName("Timer"); 29 timer.Name = "Timer";
30 // To count number of timer triggers 30 // To count number of timer triggers
31 int tick_count = 0; 31 int tick_count = 0;
32 timer.TimerTickEvent += (object sender, EventArgs e) => { 32 timer.TimerTickEvent += (object sender, EventArgs e) => {
@@ -46,7 +46,7 @@ public class Example : Efl.Csharp.Application
46 mainloop.Quit(new Eina.Value(0)); 46 mainloop.Quit(new Eina.Value(0));
47 break; 47 break;
48 } 48 }
49 Console.WriteLine(message, tick_count, ((Efl.Object)sender).GetName()); 49 Console.WriteLine(message, tick_count, ((Efl.Object)sender).Name);
50 tick_count++; 50 tick_count++;
51 }; 51 };
52 52
diff --git a/reference/csharp/snippets/Efl.Ui.Bg.cs b/reference/csharp/snippets/Efl.Ui.Bg.cs
index 380a0a16..306286fa 100644
--- a/reference/csharp/snippets/Efl.Ui.Bg.cs
+++ b/reference/csharp/snippets/Efl.Ui.Bg.cs
@@ -1,6 +1,6 @@
1Efl.Ui.Bg bg = new Efl.Ui.Bg(parent); 1Efl.Ui.Bg bg = new Efl.Ui.Bg(parent);
2 2
3bg.SetColor(66, 162, 206, 255); 3bg.Color = (66, 162, 206, 255);
4 4
5bg.SetFile(image_path + "background.png"); 5bg.SetFile(image_path + "background.png");
6bg.Load(); 6bg.Load();
diff --git a/reference/csharp/snippets/Efl.Ui.Button.cs b/reference/csharp/snippets/Efl.Ui.Button.cs
index cb7162e7..e2677660 100644
--- a/reference/csharp/snippets/Efl.Ui.Button.cs
+++ b/reference/csharp/snippets/Efl.Ui.Button.cs
@@ -1,9 +1,9 @@
1Efl.Ui.Button button = new Efl.Ui.Button(parent); 1Efl.Ui.Button button = new Efl.Ui.Button(parent);
2 2
3button.SetText("Test Button"); 3button.Text = "Test Button";
4 4
5button.ClickedEvent += (sender, args) => 5button.ClickedEvent += (sender, args) =>
6{ 6{
7 Efl.Ui.Button btn = (Efl.Ui.Button)sender; 7 Efl.Ui.Button btn = (Efl.Ui.Button)sender;
8 btn.SetText("Clicked"); 8 btn.Text = "Clicked";
9}; 9};
diff --git a/reference/csharp/snippets/Efl.Ui.Check.cs b/reference/csharp/snippets/Efl.Ui.Check.cs
index 8d3f47ca..9cb20d39 100644
--- a/reference/csharp/snippets/Efl.Ui.Check.cs
+++ b/reference/csharp/snippets/Efl.Ui.Check.cs
@@ -1,6 +1,6 @@
1Efl.Ui.Check check = new Efl.Ui.Check(parent); 1Efl.Ui.Check check = new Efl.Ui.Check(parent);
2 2
3check.SetText("Test Check"); 3check.Text = "Test Check";
4check.SetSelected(true); 4check.SetSelected(true);
5 5
6check.SelectedChangedEvent += (sender, args) => 6check.SelectedChangedEvent += (sender, args) =>
diff --git a/reference/csharp/snippets/Efl.Ui.Popup.cs b/reference/csharp/snippets/Efl.Ui.Popup.cs
index ec75e006..eb9bf02b 100644
--- a/reference/csharp/snippets/Efl.Ui.Popup.cs
+++ b/reference/csharp/snippets/Efl.Ui.Popup.cs
@@ -2,7 +2,7 @@ Efl.Ui.Popup popup = new Efl.Ui.Popup(parent);
2 2
3Efl.Ui.Button button = new Efl.Ui.Button(parent); 3Efl.Ui.Button button = new Efl.Ui.Button(parent);
4 4
5button.SetText("Click to hide the popup"); 5button.Text = "Click to hide the popup";
6 6
7button.ClickedEvent += (sender, args) => 7button.ClickedEvent += (sender, args) =>
8{ 8{
diff --git a/reference/csharp/snippets/Efl.Ui.RadioBox.cs b/reference/csharp/snippets/Efl.Ui.RadioBox.cs
index e54a5bf9..79d3eee2 100644
--- a/reference/csharp/snippets/Efl.Ui.RadioBox.cs
+++ b/reference/csharp/snippets/Efl.Ui.RadioBox.cs
@@ -3,7 +3,7 @@ Efl.Ui.RadioBox radioBox = new Efl.Ui.RadioBox(parent);
3for (int i = 1; i <= 3; i++) 3for (int i = 1; i <= 3; i++)
4{ 4{
5 Efl.Ui.Radio radio = new Efl.Ui.Radio(radioBox); 5 Efl.Ui.Radio radio = new Efl.Ui.Radio(radioBox);
6 radio.SetText("Choice no. " + i); 6 radio.Text = "Choice no. " + i;
7 radio.SetStateValue(i); 7 radio.SetStateValue(i);
8 radioBox.Pack(radio); 8 radioBox.Pack(radio);
9} 9}
diff --git a/reference/csharp/snippets/Efl.Ui.Scroller.cs b/reference/csharp/snippets/Efl.Ui.Scroller.cs
index 91f30d5d..2b2f3882 100644
--- a/reference/csharp/snippets/Efl.Ui.Scroller.cs
+++ b/reference/csharp/snippets/Efl.Ui.Scroller.cs
@@ -3,7 +3,7 @@ Efl.Ui.Scroller scroller = new Efl.Ui.Scroller(parent);
3// Create a large image to put it inside the scroller 3// Create a large image to put it inside the scroller
4Efl.Ui.Image image = new Efl.Ui.Image(scroller); 4Efl.Ui.Image image = new Efl.Ui.Image(scroller);
5 5
6image.SetHintSizeMin(new Eina.Size2D(1000, 1000)); 6image.HintSizeMin = new Eina.Size2D(1000, 1000);
7image.SetFile(image_path + "image.png"); 7image.SetFile(image_path + "image.png");
8image.Load(); 8image.Load();
9 9
diff --git a/reference/csharp/snippets/Efl.Ui.SpinButton.cs b/reference/csharp/snippets/Efl.Ui.SpinButton.cs
index d253adfb..0f0ba0a5 100644
--- a/reference/csharp/snippets/Efl.Ui.SpinButton.cs
+++ b/reference/csharp/snippets/Efl.Ui.SpinButton.cs
@@ -1,6 +1,6 @@
1Efl.Ui.SpinButton spinButton = new Efl.Ui.SpinButton(parent); 1Efl.Ui.SpinButton spinButton = new Efl.Ui.SpinButton(parent);
2 2
3spinButton.SetOrientation(Efl.Ui.LayoutOrientation.Vertical); 3spinButton.Orientation = Efl.Ui.LayoutOrientation.Vertical;
4 4
5spinButton.SetRangeLimits(0, 100); 5spinButton.SetRangeLimits(0, 100);
6spinButton.SetRangeStep(2); 6spinButton.SetRangeStep(2);
diff --git a/reference/csharp/snippets/Efl.Ui.Win.cs b/reference/csharp/snippets/Efl.Ui.Win.cs
index 721f0de7..507f8eff 100644
--- a/reference/csharp/snippets/Efl.Ui.Win.cs
+++ b/reference/csharp/snippets/Efl.Ui.Win.cs
@@ -1,8 +1,8 @@
1var win = new Efl.Ui.Win(Efl.App.AppMain); 1var win = new Efl.Ui.Win(Efl.App.AppMain);
2 2
3win.SetWinType(Efl.Ui.WinType.Basic); 3win.SetWinType(Efl.Ui.WinType.Basic);
4win.SetText("Hello World"); 4win.Text = "Hello World";
5win.SetAutohide(true); 5win.Autohide = true;
6 6
7win.VisibilityChangedEvent += 7win.VisibilityChangedEvent +=
8 (sender, args) => { }; 8 (sender, args) => { };
diff --git a/reference/csharp/ui/src/focus_main.cs b/reference/csharp/ui/src/focus_main.cs
index 5bc6ace2..1eff3d9f 100644
--- a/reference/csharp/ui/src/focus_main.cs
+++ b/reference/csharp/ui/src/focus_main.cs
@@ -4,15 +4,15 @@ public class Example : Efl.Csharp.Application
4{ 4{
5 public static void FocusChangedCb(object sender, EventArgs e) 5 public static void FocusChangedCb(object sender, EventArgs e)
6 { 6 {
7 Console.WriteLine($"Focus for object {((Efl.IText)sender).GetText()} changed to {((Efl.Ui.Widget)sender).GetFocus()}"); 7 Console.WriteLine($"Focus for object {((Efl.IText)sender).Text} changed to {((Efl.Ui.Widget)sender).Focus}");
8 } 8 }
9 9
10 protected override void OnInitialize(string[] args) 10 protected override void OnInitialize(string[] args)
11 { 11 {
12 // Create a window and initialize it 12 // Create a window and initialize it
13 var win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic); 13 var win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic);
14 win.SetText("Focus example"); 14 win.Text = "Focus example";
15 win.SetAutohide(true); 15 win.Autohide = true;
16 win.VisibilityChangedEvent += (object sender, Efl.Gfx.EntityVisibilityChangedEventArgs e) => { 16 win.VisibilityChangedEvent += (object sender, Efl.Gfx.EntityVisibilityChangedEventArgs e) => {
17 // Exit the EFL main loop 17 // Exit the EFL main loop
18 if (e.Arg == false) 18 if (e.Arg == false)
@@ -22,16 +22,16 @@ public class Example : Efl.Csharp.Application
22 22
23 // Create the main box container 23 // Create the main box container
24 var vbox = new Efl.Ui.Box(win); 24 var vbox = new Efl.Ui.Box(win);
25 vbox.SetHintSizeMin(new Eina.Size2D(360, 240)); 25 vbox.HintSizeMin = new Eina.Size2D(360, 240);
26 win.SetContent(vbox); 26 win.Content = vbox;
27 27
28 // Create some check boxes 28 // Create some check boxes
29 Efl.Ui.Check first_checkbox = null; 29 Efl.Ui.Check first_checkbox = null;
30 for (int i = 0; i< 5; i++) { 30 for (int i = 0; i< 5; i++) {
31 var checkbox = new Efl.Ui.Check(vbox); 31 var checkbox = new Efl.Ui.Check(vbox);
32 checkbox.SetText("Check " + i); 32 checkbox.Text = "Check " + i;
33 checkbox.SetHintFill(false, false); 33 checkbox.HintFill = (false, false);
34 checkbox.SetHintAlign(0.5, 0.5); 34 checkbox.HintAlign = ((Efl.Gfx.Align)0.5, (Efl.Gfx.Align)0.5);
35 checkbox.FocusChangedEvent += FocusChangedCb; 35 checkbox.FocusChangedEvent += FocusChangedCb;
36 vbox.Pack(checkbox); 36 vbox.Pack(checkbox);
37 if (i == 0) first_checkbox = checkbox; 37 if (i == 0) first_checkbox = checkbox;
@@ -39,12 +39,12 @@ public class Example : Efl.Csharp.Application
39 39
40 // Create an horizontal box to contain the two buttons 40 // Create an horizontal box to contain the two buttons
41 var hbox = new Efl.Ui.Box(vbox); 41 var hbox = new Efl.Ui.Box(vbox);
42 hbox.SetOrientation(Efl.Ui.LayoutOrientation.Horizontal); 42 hbox.Orientation = Efl.Ui.LayoutOrientation.Horizontal;
43 vbox.Pack(hbox); 43 vbox.Pack(hbox);
44 44
45 // Create a "Focus Mover" button 45 // Create a "Focus Mover" button
46 var button = new Efl.Ui.Button(hbox); 46 var button = new Efl.Ui.Button(hbox);
47 button.SetText("Focus mover"); 47 button.Text = "Focus mover";
48 button.FocusChangedEvent += FocusChangedCb; 48 button.FocusChangedEvent += FocusChangedCb;
49 button.ClickedEvent += (object sender, Efl.Input.ClickableClickedEventArgs e) => { 49 button.ClickedEvent += (object sender, Efl.Input.ClickableClickedEventArgs e) => {
50 Console.WriteLine("Clicked Focus Mover"); 50 Console.WriteLine("Clicked Focus Mover");
@@ -55,7 +55,7 @@ public class Example : Efl.Csharp.Application
55 55
56 // Create a Quit button 56 // Create a Quit button
57 button = new Efl.Ui.Button(hbox); 57 button = new Efl.Ui.Button(hbox);
58 button.SetText("Quit"); 58 button.Text = "Quit";
59 button.FocusChangedEvent += FocusChangedCb; 59 button.FocusChangedEvent += FocusChangedCb;
60 button.ClickedEvent += (object sender, Efl.Input.ClickableClickedEventArgs e) => { 60 button.ClickedEvent += (object sender, Efl.Input.ClickableClickedEventArgs e) => {
61 Console.WriteLine("Clicked Quit"); 61 Console.WriteLine("Clicked Quit");
@@ -64,7 +64,7 @@ public class Example : Efl.Csharp.Application
64 hbox.Pack(button); 64 hbox.Pack(button);
65 65
66 // Show the focus highlight 66 // Show the focus highlight
67 win.SetFocusHighlightEnabled(true); 67 win.FocusHighlightEnabled = true;
68 } 68 }
69 69
70#if WIN32 70#if WIN32
diff --git a/reference/csharp/ui/src/ui_container.cs b/reference/csharp/ui/src/ui_container.cs
index 61f48ad0..ebdead33 100644
--- a/reference/csharp/ui/src/ui_container.cs
+++ b/reference/csharp/ui/src/ui_container.cs
@@ -14,17 +14,17 @@ public class Example : Efl.Csharp.Application
14 { 14 {
15 Efl.Ui.Box box = new Efl.Ui.Box(win); 15 Efl.Ui.Box box = new Efl.Ui.Box(win);
16 // Set distance between contained elements 16 // Set distance between contained elements
17 box.SetContentPadding(5, 0); 17 box.ContentPadding = (5, 0);
18 18
19 for (int i = 1; i <= 4; ++i) 19 for (int i = 1; i <= 4; ++i)
20 { 20 {
21 // Add 4 buttons, one below the other 21 // Add 4 buttons, one below the other
22 var button = new Efl.Ui.Button(win); 22 var button = new Efl.Ui.Button(win);
23 button.SetText($"Boxed {i}"); 23 button.Text = $"Boxed {i}";
24 if (i == 2) 24 if (i == 2)
25 { 25 {
26 // Button 2 has its maximum size limited, so it will be smaller 26 // Button 2 has its maximum size limited, so it will be smaller
27 button.SetHintSizeMax(new Eina.Size2D(100,50)); 27 button.HintSizeMax = new Eina.Size2D(100,50);
28 } 28 }
29 box.Pack(button); 29 box.Pack(button);
30 } 30 }
@@ -37,21 +37,21 @@ public class Example : Efl.Csharp.Application
37 { 37 {
38 Efl.Ui.Table table = new Efl.Ui.Table(win); 38 Efl.Ui.Table table = new Efl.Ui.Table(win);
39 // Table with two columns, that get filled left to right, and then top to bottom 39 // Table with two columns, that get filled left to right, and then top to bottom
40 table.SetTableColumns(2); 40 table.TableColumns = 2;
41 table.SetOrientation(Efl.Ui.LayoutOrientation.Horizontal); 41 table.Orientation = Efl.Ui.LayoutOrientation.Horizontal;
42 Efl.Ui.Button button; 42 Efl.Ui.Button button;
43 43
44 for (int i = 1; i <= 4; ++i) 44 for (int i = 1; i <= 4; ++i)
45 { 45 {
46 // Add 4 buttons, following the defined table flow 46 // Add 4 buttons, following the defined table flow
47 button = new Efl.Ui.Button(win); 47 button = new Efl.Ui.Button(win);
48 button.SetText($"Table {i}"); 48 button.Text = $"Table {i}";
49 table.Pack(button); 49 table.Pack(button);
50 } 50 }
51 51
52 // Last button spans two table cells 52 // Last button spans two table cells
53 button = new Efl.Ui.Button(win); 53 button = new Efl.Ui.Button(win);
54 button.SetText("Long Button"); 54 button.Text = "Long Button";
55 table.PackTable(button, 0, 2, 2, 1); 55 table.PackTable(button, 0, 2, 2, 1);
56 56
57 return table; 57 return table;
@@ -61,8 +61,8 @@ public class Example : Efl.Csharp.Application
61 { 61 {
62 // Create a window and initialize it 62 // Create a window and initialize it
63 Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic); 63 Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic);
64 win.SetText("Container demo"); 64 win.Text = "Container demo";
65 win.SetAutohide(true); 65 win.Autohide = true;
66 win.VisibilityChangedEvent += (object sender, Efl.Gfx.EntityVisibilityChangedEventArgs e) => { 66 win.VisibilityChangedEvent += (object sender, Efl.Gfx.EntityVisibilityChangedEventArgs e) => {
67 // Exit the EFL main loop 67 // Exit the EFL main loop
68 if (e.Arg == false) 68 if (e.Arg == false)
@@ -70,22 +70,22 @@ public class Example : Efl.Csharp.Application
70 }; 70 };
71 // Give the window an initial size so there is room to resize the panes. 71 // Give the window an initial size so there is room to resize the panes.
72 // Otherwise, all widgets are tightly packed 72 // Otherwise, all widgets are tightly packed
73 win.SetSize(new Eina.Size2D(350,250)); 73 win.Size = new Eina.Size2D(350,250);
74 74
75 // Create a vertically-split panes container 75 // Create a vertically-split panes container
76 Efl.Ui.Panes vsplit = new Efl.Ui.Panes(win); 76 Efl.Ui.Panes vsplit = new Efl.Ui.Panes(win);
77 vsplit.SetSplitRatio(0.75); 77 vsplit.SplitRatio = 0.75;
78 win.SetContent(vsplit); 78 win.Content = vsplit;
79 79
80 // Create some boxes and set them as the content of the first pane of the container 80 // Create some boxes and set them as the content of the first pane of the container
81 var box = CreateBox(win); 81 var box = CreateBox(win);
82 vsplit.FirstPart.SetContent(box); 82 vsplit.FirstPart.Content = box;
83 83
84 // Create a second, horizontally-split panes container and set it as the content of 84 // Create a second, horizontally-split panes container and set it as the content of
85 // the second pane of the first container 85 // the second pane of the first container
86 Efl.Ui.Panes hsplit = new Efl.Ui.Panes(win); 86 Efl.Ui.Panes hsplit = new Efl.Ui.Panes(win);
87 hsplit.SetOrientation(Efl.Ui.LayoutOrientation.Horizontal); 87 hsplit.Orientation = Efl.Ui.LayoutOrientation.Horizontal;
88 hsplit.SetSplitRatio(0.85); 88 hsplit.SplitRatio = 0.85;
89 vsplit.SecondPart.SetContent(hsplit); 89 vsplit.SecondPart.SetContent(hsplit);
90 90
91 // Create a table and set it as the content of the first pane of the horizontal 91 // Create a table and set it as the content of the first pane of the horizontal
@@ -96,8 +96,8 @@ public class Example : Efl.Csharp.Application
96 // Create a button and set it as the content of the second pane of the horizontal 96 // Create a button and set it as the content of the second pane of the horizontal
97 // container 97 // container
98 Efl.Ui.Button quit_btn = new Efl.Ui.Button(win); 98 Efl.Ui.Button quit_btn = new Efl.Ui.Button(win);
99 quit_btn.SetText("Quit"); 99 quit_btn.Text = "Quit";
100 quit_btn.SetHintSizeMax(new Eina.Size2D(150, 30)); 100 quit_btn.HintSizeMax = new Eina.Size2D(150, 30);
101 quit_btn.ClickedEvent += (object sender, Efl.Input.ClickableClickedEventArgs e) => { 101 quit_btn.ClickedEvent += (object sender, Efl.Input.ClickableClickedEventArgs e) => {
102 // Exit the EFL main loop 102 // Exit the EFL main loop
103 Efl.Ui.Config.Exit(); 103 Efl.Ui.Config.Exit();
diff --git a/reference/csharp/ui/src/ui_custom_widget.cs b/reference/csharp/ui/src/ui_custom_widget.cs
index 978b8ac5..ee3e8e5f 100644
--- a/reference/csharp/ui/src/ui_custom_widget.cs
+++ b/reference/csharp/ui/src/ui_custom_widget.cs
@@ -18,13 +18,15 @@ public class MyButton : Efl.Ui.Button
18 base(parent) 18 base(parent)
19 { 19 {
20 button_id = id; 20 button_id = id;
21 base.SetText("Base text for button id " + id); 21 base.Text = "Base text for button id " + id;
22 } 22 }
23 23
24 // This calls the parent's SetText() method with a modified string 24 // This calls the parent's SetText() method with a modified string
25 public override void SetText(System.String text) 25 public override string Text
26 { 26 {
27 base.SetText("Overriden text for button id " + button_id + ": " + text); 27 set {
28 base.Text = "Overriden text for button id " + button_id + ": " + value;
29 }
28 } 30 }
29} 31}
30 32
@@ -34,22 +36,22 @@ public class Example : Efl.Csharp.Application
34 { 36 {
35 // Create a window and initialize it 37 // Create a window and initialize it
36 Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic); 38 Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic);
37 win.SetText("Custom widget demo"); 39 win.Text = "Custom widget demo";
38 win.SetAutohide(true); 40 win.Autohide = true;
39 win.VisibilityChangedEvent += (object sender, Efl.Gfx.EntityVisibilityChangedEventArgs e) => { 41 win.VisibilityChangedEvent += (object sender, Efl.Gfx.EntityVisibilityChangedEventArgs e) => {
40 // Exit the EFL main loop when the window is closed 42 // Exit the EFL main loop when the window is closed
41 if (e.Arg == false) 43 if (e.Arg == false)
42 Efl.Ui.Config.Exit(); 44 Efl.Ui.Config.Exit();
43 }; 45 };
44 // Give the window an initial size 46 // Give the window an initial size
45 win.SetSize(new Eina.Size2D(350,250)); 47 win.Size = new Eina.Size2D(350,250);
46 48
47 // Instantiate our custom button widget 49 // Instantiate our custom button widget
48 MyButton btn = new MyButton(win, 99); 50 MyButton btn = new MyButton(win, 99);
49 btn.ClickedEvent += (object sender, Efl.Input.ClickableClickedEventArgs e) => { 51 btn.ClickedEvent += (object sender, Efl.Input.ClickableClickedEventArgs e) => {
50 // When the button is clicked, change its text 52 // When the button is clicked, change its text
51 MyButton b = (MyButton)sender; 53 MyButton b = (MyButton)sender;
52 b.SetText("Hello!"); 54 b.Text = "Hello!";
53 }; 55 };
54 56
55 win.SetContent(btn); 57 win.SetContent(btn);
diff --git a/reference/csharp/ui/src/ui_sizing.cs b/reference/csharp/ui/src/ui_sizing.cs
index e875f1d9..c891e9e0 100644
--- a/reference/csharp/ui/src/ui_sizing.cs
+++ b/reference/csharp/ui/src/ui_sizing.cs
@@ -14,8 +14,8 @@ public class Example : Efl.Csharp.Application
14 { 14 {
15 // Create a window and initialize it 15 // Create a window and initialize it
16 Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic); 16 Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic);
17 win.SetText("Size Control"); 17 win.Text = "Size Control";
18 win.SetAutohide(true); 18 win.Autohide = true;
19 win.VisibilityChangedEvent += (object sender, Efl.Gfx.EntityVisibilityChangedEventArgs e) => { 19 win.VisibilityChangedEvent += (object sender, Efl.Gfx.EntityVisibilityChangedEventArgs e) => {
20 // Exit the EFL main loop 20 // Exit the EFL main loop
21 if (e.Arg == false) 21 if (e.Arg == false)
@@ -28,19 +28,19 @@ public class Example : Efl.Csharp.Application
28 28
29 // Create a regular button (without size hints) 29 // Create a regular button (without size hints)
30 var button = new Efl.Ui.Button(win); 30 var button = new Efl.Ui.Button(win);
31 button.SetText("Button"); 31 button.Text = "Button";
32 box.Pack(button); 32 box.Pack(button);
33 33
34 // Create a small button (max size is limited) 34 // Create a small button (max size is limited)
35 button = new Efl.Ui.Button(win); 35 button = new Efl.Ui.Button(win);
36 button.SetText("Small"); 36 button.Text = "Small";
37 button.SetHintSizeMax(new Eina.Size2D(50,50)); 37 button.HintSizeMax = new Eina.Size2D(50,50);
38 box.Pack(button); 38 box.Pack(button);
39 39
40 // Create a big button (min size is limited) 40 // Create a big button (min size is limited)
41 button = new Efl.Ui.Button(win); 41 button = new Efl.Ui.Button(win);
42 button.SetText("Big button"); 42 button.Text = "Big button";
43 button.SetHintSizeMin(new Eina.Size2D(100,100)); 43 button.HintSizeMin = new Eina.Size2D(100,100);
44 box.Pack(button); 44 box.Pack(button);
45 } 45 }
46 46
diff --git a/tutorial/csharp/eo-intro/src/eo_intro_main.cs b/tutorial/csharp/eo-intro/src/eo_intro_main.cs
index b5ee7730..6e76a809 100644
--- a/tutorial/csharp/eo-intro/src/eo_intro_main.cs
+++ b/tutorial/csharp/eo-intro/src/eo_intro_main.cs
@@ -9,15 +9,15 @@ public class Example : Efl.Csharp.Application
9 { 9 {
10 // First create a root element 10 // First create a root element
11 root = new Efl.GenericModel(null); 11 root = new Efl.GenericModel(null);
12 root.SetName("Root"); 12 root.Name = "Root";
13 13
14 // Create the first child element 14 // Create the first child element
15 var child = new Efl.GenericModel(root); 15 var child = new Efl.GenericModel(root);
16 child.SetName("Child1"); 16 child.Name = "Child1";
17 17
18 // Create the second child element, this time, with an extra reference 18 // Create the second child element, this time, with an extra reference
19 child2 = new Efl.GenericModel(root); 19 child2 = new Efl.GenericModel(root);
20 child2.SetName("Child2"); 20 child2.Name = "Child2";
21 } 21 }
22 22
23 // Destroy the test hierarchy 23 // Destroy the test hierarchy
diff --git a/tutorial/csharp/hello-gui/src/gui_main.cs b/tutorial/csharp/hello-gui/src/gui_main.cs
index caa8064b..d40dc5ae 100644
--- a/tutorial/csharp/hello-gui/src/gui_main.cs
+++ b/tutorial/csharp/hello-gui/src/gui_main.cs
@@ -15,17 +15,17 @@ public class Example : Efl.Csharp.Application
15 // Create a window and initialize it 15 // Create a window and initialize it
16 Efl.Ui.Win win = new Efl.Ui.Win(Efl.App.AppMain); 16 Efl.Ui.Win win = new Efl.Ui.Win(Efl.App.AppMain);
17 // Set the window's title 17 // Set the window's title
18 win.SetText("Hello World"); 18 win.Text = "Hello World";
19 // Request that the window is automatically hidden when the "close" 19 // Request that the window is automatically hidden when the "close"
20 // button is pressed 20 // button is pressed
21 win.SetAutohide(true); 21 win.Autohide = true;
22 // Hook to the Hide event 22 // Hook to the Hide event
23 win.VisibilityChangedEvent += QuitCb; 23 win.VisibilityChangedEvent += QuitCb;
24 24
25 // Create a box container 25 // Create a box container
26 var box = new Efl.Ui.Box(win); 26 var box = new Efl.Ui.Box(win);
27 // Set its minimum size 27 // Set its minimum size
28 box.SetHintSizeMin(new Eina.Size2D(360, 240)); 28 box.HintSizeMin = new Eina.Size2D(360, 240);
29 // Set the box as the content for the window 29 // Set the box as the content for the window
30 // The window size will adapt to the box size 30 // The window size will adapt to the box size
31 win.SetContent(box); 31 win.SetContent(box);
@@ -33,20 +33,20 @@ public class Example : Efl.Csharp.Application
33 // Create a text label widget 33 // Create a text label widget
34 var label = new Efl.Ui.Textbox(box); 34 var label = new Efl.Ui.Textbox(box);
35 // Set its content and customize it 35 // Set its content and customize it
36 label.SetText("Hello World. This is an Efl.Ui application!"); 36 label.Text = "Hello World. This is an Efl.Ui application!";
37 label.Editable = false; 37 label.Editable = false;
38 label.SelectionAllowed = false; 38 label.SelectionAllowed = false;
39 label.SetHintWeight(1.0, 0.9); 39 label.HintWeight = (1.0, 0.9);
40 label.SetHintFill(false, false); 40 label.HintFill = (false, false);
41 label.SetHintAlign(0.5, 0.5); 41 label.HintAlign = ((Efl.Gfx.Align)0.5, (Efl.Gfx.Align)0.5);
42 // Add the text to the box container 42 // Add the text to the box container
43 box.Pack(label); 43 box.Pack(label);
44 44
45 // Create a button widget 45 // Create a button widget
46 var button = new Efl.Ui.Button(box); 46 var button = new Efl.Ui.Button(box);
47 // Customize it 47 // Customize it
48 button.SetText("Quit"); 48 button.Text = "Quit";
49 button.SetHintWeight(1.0, 0.1); 49 button.HintWeight = (1.0, 0.1);
50 // Set the method to be called when the button is pressed 50 // Set the method to be called when the button is pressed
51 button.ClickedEvent += (object sender, Efl.Input.ClickableClickedEventArgs e) => { Efl.App.AppMain.Quit(0); }; 51 button.ClickedEvent += (object sender, Efl.Input.ClickableClickedEventArgs e) => { Efl.App.AppMain.Quit(0); };
52 // Add the button to the box container 52 // Add the button to the box container
diff --git a/tutorial/csharp/hello-world/src/hello-world.cs b/tutorial/csharp/hello-world/src/hello-world.cs
index f99e55ad..8828a2ac 100644
--- a/tutorial/csharp/hello-world/src/hello-world.cs
+++ b/tutorial/csharp/hello-world/src/hello-world.cs
@@ -15,13 +15,13 @@ public class Example : Efl.Csharp.Application
15 // Create a window and initialize it 15 // Create a window and initialize it
16 Efl.Ui.Win win = new Efl.Ui.Win(Efl.App.AppMain); 16 Efl.Ui.Win win = new Efl.Ui.Win(Efl.App.AppMain);
17 // Set the window's title 17 // Set the window's title
18 win.SetText("Hello World"); 18 win.Text = "Hello World";
19 // Request that the window is automatically hidden when the "close" 19 // Request that the window is automatically hidden when the "close"
20 // button is pressed 20 // button is pressed
21 win.SetAutohide(true); 21 win.Autohide = true;
22 // Window size must be explicitly set, otherwise it will be invisible 22 // Window size must be explicitly set, otherwise it will be invisible
23 // due to its lack of content. 23 // due to its lack of content.
24 win.SetSize(new Eina.Size2D(360, 240)); 24 win.Size = new Eina.Size2D(360, 240);
25 win.VisibilityChangedEvent += QuitCb; 25 win.VisibilityChangedEvent += QuitCb;
26 } 26 }
27 27
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);