summaryrefslogtreecommitdiff
path: root/reference/csharp/ui/src
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-09-06 16:01:45 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-09-06 16:01:45 +0200
commit5472a77fb3ace3fa3dba7ae4c4770314412d5e55 (patch)
treed8cefe8c79195557178db6f8904e32d7dab45f15 /reference/csharp/ui/src
parent17609ba6bf8bea42e121f742fceea77308e50d5d (diff)
mono-examples: adapt to latest bindings syntax
Diffstat (limited to 'reference/csharp/ui/src')
-rw-r--r--reference/csharp/ui/src/focus_main.cs12
-rw-r--r--reference/csharp/ui/src/ui_container.cs4
-rw-r--r--reference/csharp/ui/src/ui_custom_widget.cs4
-rw-r--r--reference/csharp/ui/src/ui_sizing.cs2
4 files changed, 11 insertions, 11 deletions
diff --git a/reference/csharp/ui/src/focus_main.cs b/reference/csharp/ui/src/focus_main.cs
index 4ced2a8..ae943ba 100644
--- a/reference/csharp/ui/src/focus_main.cs
+++ b/reference/csharp/ui/src/focus_main.cs
@@ -13,7 +13,7 @@ public class Example : Efl.Csharp.Application
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.SetText("Focus example");
15 win.SetAutohide(true); 15 win.SetAutohide(true);
16 win.VisibilityChangedEvt += (object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) => { 16 win.VisibilityChangedEvent += (object sender, Efl.Gfx.IEntityVisibilityChangedEventArgs e) => {
17 // Exit the EFL main loop 17 // Exit the EFL main loop
18 if (e.arg == false) 18 if (e.arg == false)
19 Efl.Ui.Config.Exit(); 19 Efl.Ui.Config.Exit();
@@ -32,7 +32,7 @@ public class Example : Efl.Csharp.Application
32 checkbox.SetText("Check " + i); 32 checkbox.SetText("Check " + i);
33 checkbox.SetHintFill(false, false); 33 checkbox.SetHintFill(false, false);
34 checkbox.SetHintAlign(0.5, 0.5); 34 checkbox.SetHintAlign(0.5, 0.5);
35 checkbox.FocusChangedEvt += 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;
38 }; 38 };
@@ -45,8 +45,8 @@ public class Example : Efl.Csharp.Application
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.SetText("Focus mover");
48 button.FocusChangedEvt += FocusChangedCb; 48 button.FocusChangedEvent += FocusChangedCb;
49 button.ClickedEvt += (object sender, Efl.Input.IClickableClickedEvt_Args e) => { 49 button.ClickedEvent += (object sender, Efl.Input.IClickableClickedEventArgs e) => {
50 Console.WriteLine("Clicked Focus Mover"); 50 Console.WriteLine("Clicked Focus Mover");
51 // Manually transfer focus to the first check box 51 // Manually transfer focus to the first check box
52 Efl.Ui.Focus.Util.Focus(first_checkbox); 52 Efl.Ui.Focus.Util.Focus(first_checkbox);
@@ -56,8 +56,8 @@ public class Example : Efl.Csharp.Application
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.SetText("Quit");
59 button.FocusChangedEvt += FocusChangedCb; 59 button.FocusChangedEvent += FocusChangedCb;
60 button.ClickedEvt += (object sender, Efl.Input.IClickableClickedEvt_Args e) => { 60 button.ClickedEvent += (object sender, Efl.Input.IClickableClickedEventArgs e) => {
61 Console.WriteLine("Clicked Quit"); 61 Console.WriteLine("Clicked Quit");
62 Efl.Ui.Config.Exit(); 62 Efl.Ui.Config.Exit();
63 }; 63 };
diff --git a/reference/csharp/ui/src/ui_container.cs b/reference/csharp/ui/src/ui_container.cs
index c3f05da..9d987e1 100644
--- a/reference/csharp/ui/src/ui_container.cs
+++ b/reference/csharp/ui/src/ui_container.cs
@@ -63,7 +63,7 @@ public class Example : Efl.Csharp.Application
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.SetText("Container demo");
65 win.SetAutohide(true); 65 win.SetAutohide(true);
66 win.VisibilityChangedEvt += (object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) => { 66 win.VisibilityChangedEvent += (object sender, Efl.Gfx.IEntityVisibilityChangedEventArgs e) => {
67 // Exit the EFL main loop 67 // Exit the EFL main loop
68 if (e.arg == false) 68 if (e.arg == false)
69 Efl.Ui.Config.Exit(); 69 Efl.Ui.Config.Exit();
@@ -98,7 +98,7 @@ public class Example : Efl.Csharp.Application
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.SetText("Quit");
100 quit_btn.SetHintSizeMax(new Eina.Size2D(150, 30)); 100 quit_btn.SetHintSizeMax(new Eina.Size2D(150, 30));
101 quit_btn.ClickedEvt += (object sender, Efl.Input.IClickableClickedEvt_Args e) => { 101 quit_btn.ClickedEvent += (object sender, Efl.Input.IClickableClickedEventArgs e) => {
102 // Exit the EFL main loop 102 // Exit the EFL main loop
103 Efl.Ui.Config.Exit(); 103 Efl.Ui.Config.Exit();
104 }; 104 };
diff --git a/reference/csharp/ui/src/ui_custom_widget.cs b/reference/csharp/ui/src/ui_custom_widget.cs
index 03e57af..6cc14d2 100644
--- a/reference/csharp/ui/src/ui_custom_widget.cs
+++ b/reference/csharp/ui/src/ui_custom_widget.cs
@@ -36,7 +36,7 @@ public class Example : Efl.Csharp.Application
36 Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic); 36 Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic);
37 win.SetText("Custom widget demo"); 37 win.SetText("Custom widget demo");
38 win.SetAutohide(true); 38 win.SetAutohide(true);
39 win.VisibilityChangedEvt += (object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) => { 39 win.VisibilityChangedEvent += (object sender, Efl.Gfx.IEntityVisibilityChangedEventArgs e) => {
40 // Exit the EFL main loop when the window is closed 40 // Exit the EFL main loop when the window is closed
41 if (e.arg == false) 41 if (e.arg == false)
42 Efl.Ui.Config.Exit(); 42 Efl.Ui.Config.Exit();
@@ -46,7 +46,7 @@ public class Example : Efl.Csharp.Application
46 46
47 // Instantiate our custom button widget 47 // Instantiate our custom button widget
48 MyButton btn = new MyButton(win, 99); 48 MyButton btn = new MyButton(win, 99);
49 btn.ClickedEvt += (object sender, Efl.Input.IClickableClickedEvt_Args e) => { 49 btn.ClickedEvent += (object sender, Efl.Input.IClickableClickedEventArgs e) => {
50 // When the button is clicked, change its text 50 // When the button is clicked, change its text
51 MyButton b = (MyButton)sender; 51 MyButton b = (MyButton)sender;
52 b.SetText("Hello!"); 52 b.SetText("Hello!");
diff --git a/reference/csharp/ui/src/ui_sizing.cs b/reference/csharp/ui/src/ui_sizing.cs
index e1574c8..23e0f2d 100644
--- a/reference/csharp/ui/src/ui_sizing.cs
+++ b/reference/csharp/ui/src/ui_sizing.cs
@@ -16,7 +16,7 @@ public class Example : Efl.Csharp.Application
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.SetText("Size Control");
18 win.SetAutohide(true); 18 win.SetAutohide(true);
19 win.VisibilityChangedEvt += (object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) => { 19 win.VisibilityChangedEvent += (object sender, Efl.Gfx.IEntityVisibilityChangedEventArgs e) => {
20 // Exit the EFL main loop 20 // Exit the EFL main loop
21 if (e.arg == false) 21 if (e.arg == false)
22 Efl.Ui.Config.Exit(); 22 Efl.Ui.Config.Exit();