summaryrefslogtreecommitdiff
path: root/unsorted/evas/evas_mono_text.cs
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2018-11-06 10:39:14 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2018-12-19 16:51:15 +0100
commitd74a4df9946b69f769cd0ad40d4414c90d19a515 (patch)
tree7d4de6983ac9b319085fd84f559d2f592fc215b3 /unsorted/evas/evas_mono_text.cs
parent656b746be7ffb834a31d0a693071f9eebba186c6 (diff)
csharp examples: Adapt to new classes syntax
Summary: Mainly use PascalCase Namespaces and Classes and proper event names. Test Plan: Check all examples still build. Reviewers: lauromoura, vitor.sousa, felipealmeida, bu5hm4n Reviewed By: bu5hm4n Differential Revision: https://phab.enlightenment.org/D7479
Diffstat (limited to 'unsorted/evas/evas_mono_text.cs')
-rw-r--r--unsorted/evas/evas_mono_text.cs20
1 files changed, 10 insertions, 10 deletions
diff --git a/unsorted/evas/evas_mono_text.cs b/unsorted/evas/evas_mono_text.cs
index a1532a45..eb7e4191 100644
--- a/unsorted/evas/evas_mono_text.cs
+++ b/unsorted/evas/evas_mono_text.cs
@@ -22,19 +22,19 @@ class TestMain
22 static int HEIGHT = 240; 22 static int HEIGHT = 240;
23 23
24 private EcoreEvas ecore_evas; 24 private EcoreEvas ecore_evas;
25 private efl.canvas.IObject canvas; 25 private Efl.Canvas.Object canvas;
26 private efl.canvas.IRectangle bg; 26 private Efl.Canvas.Rectangle bg;
27 private evas.Text text; 27 private evas.Text text;
28 private evas.Image border; 28 private evas.Image border;
29 29
30 public TestMain(String border_file) { 30 public TestMain(String border_file) {
31 ecore_evas = new EcoreEvas(); 31 ecore_evas = new EcoreEvas();
32 eina.Size2D size = new eina.Size2D(); 32 Eina.Size2D size = new Eina.Size2D();
33 eina.Position2D position = new eina.Position2D(); 33 Eina.Position2D position = new Eina.Position2D();
34 canvas = ecore_evas.canvas; 34 canvas = ecore_evas.canvas;
35 canvas.SetVisible(true); 35 canvas.SetVisible(true);
36 36
37 bg = new efl.canvas.Rectangle(canvas); 37 bg = new Efl.Canvas.Rectangle(canvas);
38 bg.SetColor(255, 255, 255, 255); 38 bg.SetColor(255, 255, 255, 255);
39 position.X = 0; 39 position.X = 0;
40 position.Y = 0; 40 position.Y = 0;
@@ -65,7 +65,7 @@ class TestMain
65 text.SetPosition(position); 65 text.SetPosition(position);
66 text.SetVisible(true); 66 text.SetVisible(true);
67 67
68 efl.font.Size font_size = 0; 68 Efl.font.Size font_size = 0;
69 String font = String.Empty; 69 String font = String.Empty;
70 text.GetFont(out font, out font_size); 70 text.GetFont(out font, out font_size);
71 Console.WriteLine("Adding text object with font {0} and size {1}", font, size); 71 Console.WriteLine("Adding text object with font {0} and size {1}", font, size);
@@ -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.KeyDownEvt_Args e)
91 { 91 {
92 var key = e.arg.GetKey(); 92 var key = e.arg.GetKey();
93 93
@@ -107,19 +107,19 @@ class TestMain
107 107
108 static void Main(string[] args) 108 static void Main(string[] args)
109 { 109 {
110 efl.All.Init(); 110 Efl.All.Init();
111 111
112 String border_path = "./src/examples/evas/resources/images/red.png"; 112 String border_path = "./src/examples/evas/resources/images/red.png";
113 113
114 if (args.Length >= 1) 114 if (args.Length >= 1)
115 border_path = args[0]; 115 border_path = args[0];
116 116
117 efl.Loop loop = new efl.Loop(); 117 Efl.Loop loop = new Efl.Loop();
118 TestMain t = new TestMain(border_path); 118 TestMain t = new TestMain(border_path);
119 119
120 loop.Begin(); 120 loop.Begin();
121 121
122 efl.All.Shutdown(); 122 Efl.All.Shutdown();
123 } 123 }
124} 124}
125 125