summaryrefslogtreecommitdiff
path: root/reference
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-03-22 09:13:15 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-03-22 09:14:27 +0100
commit735b848660480e964664c601e4f6077cd606ab59 (patch)
treefd6072a64351bcf9894aaaa5d163a0bb538ac09b /reference
parent82dd23ba0210f4d546f82b3f1099997595161800 (diff)
csharp: Changes after adding I to interfaces
Summary: Ref T7751 Depends on D8397 in the EFL repo Reviewers: segfaultxavi, vitor.sousa, felipealmeida Reviewed By: segfaultxavi Tags: #efl_language_bindings Maniphest Tasks: T7751 Differential Revision: https://phab.enlightenment.org/D8398
Diffstat (limited to 'reference')
-rw-r--r--reference/csharp/ui/src/focus_main.cs4
-rw-r--r--reference/csharp/ui/src/ui_container.cs10
-rw-r--r--reference/csharp/ui/src/ui_sizing.cs2
3 files changed, 8 insertions, 8 deletions
diff --git a/reference/csharp/ui/src/focus_main.cs b/reference/csharp/ui/src/focus_main.cs
index a8d26156..d5948bdf 100644
--- a/reference/csharp/ui/src/focus_main.cs
+++ b/reference/csharp/ui/src/focus_main.cs
@@ -4,7 +4,7 @@ public class Example
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.Text)sender).GetText()} changed to {((Efl.Ui.Widget)sender).GetFocus()}"); 7 Console.WriteLine($"Focus for object {((Efl.IText)sender).GetText()} changed to {((Efl.Ui.Widget)sender).GetFocus()}");
8 } 8 }
9 9
10#if WIN32 10#if WIN32
@@ -20,7 +20,7 @@ public class Example
20 win.SetWinType(Efl.Ui.WinType.Basic); 20 win.SetWinType(Efl.Ui.WinType.Basic);
21 win.SetText("Focus example"); 21 win.SetText("Focus example");
22 win.SetAutohide(true); 22 win.SetAutohide(true);
23 win.VisibilityChangedEvt += (object sender, Efl.Gfx.EntityVisibilityChangedEvt_Args e) => { 23 win.VisibilityChangedEvt += (object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) => {
24 // Exit the EFL main loop 24 // Exit the EFL main loop
25 if (e.arg == false) 25 if (e.arg == false)
26 Efl.Ui.Config.Exit(); 26 Efl.Ui.Config.Exit();
diff --git a/reference/csharp/ui/src/ui_container.cs b/reference/csharp/ui/src/ui_container.cs
index 8b611f14..fd1bdf15 100644
--- a/reference/csharp/ui/src/ui_container.cs
+++ b/reference/csharp/ui/src/ui_container.cs
@@ -70,7 +70,7 @@ public class Example
70 win.SetWinType(Efl.Ui.WinType.Basic); 70 win.SetWinType(Efl.Ui.WinType.Basic);
71 win.SetText("Container demo"); 71 win.SetText("Container demo");
72 win.SetAutohide(true); 72 win.SetAutohide(true);
73 win.VisibilityChangedEvt += (object sender, Efl.Gfx.EntityVisibilityChangedEvt_Args e) => { 73 win.VisibilityChangedEvt += (object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) => {
74 // Exit the EFL main loop 74 // Exit the EFL main loop
75 if (e.arg == false) 75 if (e.arg == false)
76 Efl.Ui.Config.Exit(); 76 Efl.Ui.Config.Exit();
@@ -86,19 +86,19 @@ public class Example
86 86
87 // Create some boxes and set them as the content of the first pane of the container 87 // Create some boxes and set them as the content of the first pane of the container
88 var box = CreateBox(win); 88 var box = CreateBox(win);
89 Efl.ContentConcrete.static_cast(vsplit.GetPart("first")).SetContent(box); 89 Efl.IContentConcrete.static_cast(vsplit.GetPart("first")).SetContent(box);
90 90
91 // Create a second, horizontally-split panes container and set it as the content of 91 // Create a second, horizontally-split panes container and set it as the content of
92 // the second pane of the first container 92 // the second pane of the first container
93 Efl.Ui.Panes hsplit = new Efl.Ui.Panes(win); 93 Efl.Ui.Panes hsplit = new Efl.Ui.Panes(win);
94 hsplit.SetDirection(Efl.Ui.Dir.Horizontal); 94 hsplit.SetDirection(Efl.Ui.Dir.Horizontal);
95 hsplit.SetSplitRatio(0.85); 95 hsplit.SetSplitRatio(0.85);
96 Efl.ContentConcrete.static_cast(vsplit.GetPart("second")).SetContent(hsplit); 96 Efl.IContentConcrete.static_cast(vsplit.GetPart("second")).SetContent(hsplit);
97 97
98 // Create a table and set it as the content of the first pane of the horizontal 98 // Create a table and set it as the content of the first pane of the horizontal
99 // container 99 // container
100 var table = CreateTable(win); 100 var table = CreateTable(win);
101 Efl.ContentConcrete.static_cast(hsplit.GetPart("first")).SetContent(table); 101 Efl.IContentConcrete.static_cast(hsplit.GetPart("first")).SetContent(table);
102 102
103 // Create a button and set it as the content of the second pane of the horizontal 103 // Create a button and set it as the content of the second pane of the horizontal
104 // container 104 // container
@@ -109,7 +109,7 @@ public class Example
109 // Exit the EFL main loop 109 // Exit the EFL main loop
110 Efl.Ui.Config.Exit(); 110 Efl.Ui.Config.Exit();
111 }; 111 };
112 Efl.ContentConcrete.static_cast(hsplit.GetPart("second")).SetContent(quit_btn); 112 Efl.IContentConcrete.static_cast(hsplit.GetPart("second")).SetContent(quit_btn);
113 113
114 // Start the EFL main loop 114 // Start the EFL main loop
115 Efl.Ui.Config.Run(); 115 Efl.Ui.Config.Run();
diff --git a/reference/csharp/ui/src/ui_sizing.cs b/reference/csharp/ui/src/ui_sizing.cs
index c8cdf901..f84fc4bd 100644
--- a/reference/csharp/ui/src/ui_sizing.cs
+++ b/reference/csharp/ui/src/ui_sizing.cs
@@ -23,7 +23,7 @@ public class Example
23 win.SetWinType(Efl.Ui.WinType.Basic); 23 win.SetWinType(Efl.Ui.WinType.Basic);
24 win.SetText("Size Control"); 24 win.SetText("Size Control");
25 win.SetAutohide(true); 25 win.SetAutohide(true);
26 win.VisibilityChangedEvt += (object sender, Efl.Gfx.EntityVisibilityChangedEvt_Args e) => { 26 win.VisibilityChangedEvt += (object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) => {
27 // Exit the EFL main loop 27 // Exit the EFL main loop
28 if (e.arg == false) 28 if (e.arg == false)
29 Efl.Ui.Config.Exit(); 29 Efl.Ui.Config.Exit();