aboutsummaryrefslogtreecommitdiffstats
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
parentFix Hello World tutorial (multiline support) (diff)
downloadexamples-735b848660480e964664c601e4f6077cd606ab59.tar.gz
csharp: Changes after adding I to interfaces
Summary: Ref https://phab.enlightenment.org/T7751 Depends on https://phab.enlightenment.org/D8397 in the EFL repo Reviewers: segfaultxavi, vitor.sousa, felipealmeida Reviewed By: segfaultxavi Tags: #efl_language_bindings Maniphest Tasks: https://phab.enlightenment.org/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
{
public static void FocusChangedCb(object sender, EventArgs e)
{
- Console.WriteLine($"Focus for object {((Efl.Text)sender).GetText()} changed to {((Efl.Ui.Widget)sender).GetFocus()}");
+ Console.WriteLine($"Focus for object {((Efl.IText)sender).GetText()} changed to {((Efl.Ui.Widget)sender).GetFocus()}");
}
#if WIN32
@@ -20,7 +20,7 @@ public class Example
win.SetWinType(Efl.Ui.WinType.Basic);
win.SetText("Focus example");
win.SetAutohide(true);
- win.VisibilityChangedEvt += (object sender, Efl.Gfx.EntityVisibilityChangedEvt_Args e) => {
+ win.VisibilityChangedEvt += (object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) => {
// Exit the EFL main loop
if (e.arg == false)
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
win.SetWinType(Efl.Ui.WinType.Basic);
win.SetText("Container demo");
win.SetAutohide(true);
- win.VisibilityChangedEvt += (object sender, Efl.Gfx.EntityVisibilityChangedEvt_Args e) => {
+ win.VisibilityChangedEvt += (object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) => {
// Exit the EFL main loop
if (e.arg == false)
Efl.Ui.Config.Exit();
@@ -86,19 +86,19 @@ public class Example
// Create some boxes and set them as the content of the first pane of the container
var box = CreateBox(win);
- Efl.ContentConcrete.static_cast(vsplit.GetPart("first")).SetContent(box);
+ Efl.IContentConcrete.static_cast(vsplit.GetPart("first")).SetContent(box);
// Create a second, horizontally-split panes container and set it as the content of
// the second pane of the first container
Efl.Ui.Panes hsplit = new Efl.Ui.Panes(win);
hsplit.SetDirection(Efl.Ui.Dir.Horizontal);
hsplit.SetSplitRatio(0.85);
- Efl.ContentConcrete.static_cast(vsplit.GetPart("second")).SetContent(hsplit);
+ Efl.IContentConcrete.static_cast(vsplit.GetPart("second")).SetContent(hsplit);
// Create a table and set it as the content of the first pane of the horizontal
// container
var table = CreateTable(win);
- Efl.ContentConcrete.static_cast(hsplit.GetPart("first")).SetContent(table);
+ Efl.IContentConcrete.static_cast(hsplit.GetPart("first")).SetContent(table);
// Create a button and set it as the content of the second pane of the horizontal
// container
@@ -109,7 +109,7 @@ public class Example
// Exit the EFL main loop
Efl.Ui.Config.Exit();
};
- Efl.ContentConcrete.static_cast(hsplit.GetPart("second")).SetContent(quit_btn);
+ Efl.IContentConcrete.static_cast(hsplit.GetPart("second")).SetContent(quit_btn);
// Start the EFL main loop
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
win.SetWinType(Efl.Ui.WinType.Basic);
win.SetText("Size Control");
win.SetAutohide(true);
- win.VisibilityChangedEvt += (object sender, Efl.Gfx.EntityVisibilityChangedEvt_Args e) => {
+ win.VisibilityChangedEvt += (object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) => {
// Exit the EFL main loop
if (e.arg == false)
Efl.Ui.Config.Exit();