summaryrefslogtreecommitdiff
path: root/unsorted
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 /unsorted
parent17609ba6bf8bea42e121f742fceea77308e50d5d (diff)
mono-examples: adapt to latest bindings syntax
Diffstat (limited to 'unsorted')
-rw-r--r--unsorted/elementary/efl_ui_slider_mono.cs4
-rw-r--r--unsorted/elementary/efl_ui_unit_converter.cs6
-rw-r--r--unsorted/evas/evas_mono_rectangle.cs2
-rw-r--r--unsorted/evas/evas_mono_text.cs4
4 files changed, 8 insertions, 8 deletions
diff --git a/unsorted/elementary/efl_ui_slider_mono.cs b/unsorted/elementary/efl_ui_slider_mono.cs
index c6787edf..d15ad680 100644
--- a/unsorted/elementary/efl_ui_slider_mono.cs
+++ b/unsorted/elementary/efl_ui_slider_mono.cs
@@ -10,7 +10,7 @@ public class Example
10 button.SetText(text); 10 button.SetText(text);
11 button.SetSize(new Eina.Size2D(w, h)); 11 button.SetSize(new Eina.Size2D(w, h));
12 12
13 button.ClickedEvt += callback; 13 button.ClickedEvent += callback;
14 14
15 return button; 15 return button;
16 } 16 }
@@ -56,7 +56,7 @@ public class Example
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.SetSize(new Eina.Size2D(W, H));
58 58
59 slider.ChangedEvt += (object sender, EventArgs e) => { 59 slider.ChangedEvent += (object sender, EventArgs e) => {
60 bar.SetRangeValue(slider.GetRangeValue()); 60 bar.SetRangeValue(slider.GetRangeValue());
61 }; 61 };
62 62
diff --git a/unsorted/elementary/efl_ui_unit_converter.cs b/unsorted/elementary/efl_ui_unit_converter.cs
index 64286a20..cf268464 100644
--- a/unsorted/elementary/efl_ui_unit_converter.cs
+++ b/unsorted/elementary/efl_ui_unit_converter.cs
@@ -23,7 +23,7 @@ public class Example
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.SetSize(new Eina.Size2D(150, 30));
26 popup.ButtonClickedEvt += (object sender, Efl.Ui.Popup_Alert.ButtonClickedEvt_Args e) => { 26 popup.ButtonClickedEvent += (object sender, Efl.Ui.Popup_Alert.ButtonClickedEventArgs e) => {
27 popup.SetParent(null); 27 popup.SetParent(null);
28 popup.Invalidate(); 28 popup.Invalidate();
29 }; 29 };
@@ -99,7 +99,7 @@ public class Example
99 kms_box.DoPack(kms_input); 99 kms_box.DoPack(kms_input);
100 kms_box.DoPack(kms_button); 100 kms_box.DoPack(kms_button);
101 101
102 kms_button.ClickedEvt += (object sender, EventArgs e) => { 102 kms_button.ClickedEvent += (object sender, EventArgs e) => {
103 try 103 try
104 { 104 {
105 string text = kms_input.GetText(); 105 string text = kms_input.GetText();
@@ -115,7 +115,7 @@ public class Example
115 } 115 }
116 }; 116 };
117 117
118 miles_button.ClickedEvt += (object sender, EventArgs e) => { 118 miles_button.ClickedEvent += (object sender, EventArgs e) => {
119 try 119 try
120 { 120 {
121 string text = miles_input.GetText(); 121 string text = miles_input.GetText();
diff --git a/unsorted/evas/evas_mono_rectangle.cs b/unsorted/evas/evas_mono_rectangle.cs
index 0b363a76..9fb85b2b 100644
--- a/unsorted/evas/evas_mono_rectangle.cs
+++ b/unsorted/evas/evas_mono_rectangle.cs
@@ -30,7 +30,7 @@ class TestMain
30 rect.SetSize(size); 30 rect.SetSize(size);
31 rect.SetVisible(true); 31 rect.SetVisible(true);
32 32
33 canvas.KeyDownEvt += (object sender, Efl.Input.Interface.KeyDownEvt_Args e) => { 33 canvas.KeyDownEvent += (object sender, Efl.Input.Interface.KeyDownEventArgs e) => {
34 color_index = (color_index + 1) % 3; 34 color_index = (color_index + 1) % 3;
35 Console.WriteLine("Key Down"); 35 Console.WriteLine("Key Down");
36 Console.WriteLine("Got key obj at {0}", e.arg.raw_handle.ToString("X")); 36 Console.WriteLine("Got key obj at {0}", e.arg.raw_handle.ToString("X"));
diff --git a/unsorted/evas/evas_mono_text.cs b/unsorted/evas/evas_mono_text.cs
index eb7e4191..54bd3fde 100644
--- a/unsorted/evas/evas_mono_text.cs
+++ b/unsorted/evas/evas_mono_text.cs
@@ -45,7 +45,7 @@ class TestMain
45 bg.SetVisible(true); 45 bg.SetVisible(true);
46 bg.SetKeyFocus(true); 46 bg.SetKeyFocus(true);
47 47
48 bg.KeyDownEvt += On_KeyDown; 48 bg.KeyDownEvent += On_KeyDown;
49 49
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);
@@ -87,7 +87,7 @@ class TestMain
87 87
88 } 88 }
89 89
90 private void On_KeyDown(object sender, Efl.Input.Interface.KeyDownEvt_Args e) 90 private void On_KeyDown(object sender, Efl.Input.Interface.KeyDownEventArgs e)
91 { 91 {
92 var key = e.arg.GetKey(); 92 var key = e.arg.GetKey();
93 93