summaryrefslogtreecommitdiff
path: root/unsorted/evas/evas_mono_rectangle.cs
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-05-03 01:02:11 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2018-05-03 18:04:41 -0300
commit93d75b47c91123dec160efde623f7a49cf80c76c (patch)
tree6441d960da981cf72120343b8cff6f45bc6de040 /unsorted/evas/evas_mono_rectangle.cs
parent4eebe1b884272bdbe60c96c6ceb6cf3b7423b0b5 (diff)
efl_mono: Update tests and examples after rename
Summary: Separated from the generator and libs for easier review Depends on D6050 Reviewers: felipealmeida, vitor.sousa Reviewed By: vitor.sousa Subscribers: cedric Tags: #efl Differential Revision: https://phab.enlightenment.org/D6051
Diffstat (limited to 'unsorted/evas/evas_mono_rectangle.cs')
-rw-r--r--unsorted/evas/evas_mono_rectangle.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/unsorted/evas/evas_mono_rectangle.cs b/unsorted/evas/evas_mono_rectangle.cs
index 8db2c63e..c31c2478 100644
--- a/unsorted/evas/evas_mono_rectangle.cs
+++ b/unsorted/evas/evas_mono_rectangle.cs
@@ -14,15 +14,15 @@ class TestMain
14 14
15 efl.All.Init(); 15 efl.All.Init();
16 16
17 efl.Loop loop = new efl.LoopConcrete(); 17 efl.Loop loop = new efl.Loop();
18 EcoreEvas ecore_evas = new EcoreEvas(); 18 EcoreEvas ecore_evas = new EcoreEvas();
19 efl.canvas.Object canvas = ecore_evas.canvas; 19 efl.canvas.IObject canvas = ecore_evas.canvas;
20 canvas.SetVisible(true); 20 canvas.SetVisible(true);
21 21
22 efl.Object parent = canvas.GetParent(); 22 efl.IObject parent = canvas.GetParent();
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.RectangleConcrete(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.SetColor(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;
@@ -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.InterfaceConcrete.KeyDownEvt_Args e) => { 33 canvas.KeyDownEvt += (object sender, efl.input.Interface.KeyDownEvt_Args 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"));