summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono/Evas.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/efl_mono/Evas.cs')
-rw-r--r--src/tests/efl_mono/Evas.cs77
1 files changed, 0 insertions, 77 deletions
diff --git a/src/tests/efl_mono/Evas.cs b/src/tests/efl_mono/Evas.cs
deleted file mode 100644
index 6d40412..0000000
--- a/src/tests/efl_mono/Evas.cs
+++ /dev/null
@@ -1,77 +0,0 @@
1using System;
2using System.Runtime.InteropServices;
3using System.Runtime.CompilerServices;
4
5public class MyBox : Evas.Box
6{
7 public MyBox(Efl.Object parent) : base(parent) {}
8
9 [DllImport("evas")] static extern void evas_obj_box_layout_vertical(IntPtr obj, IntPtr data, IntPtr privdata);
10 [DllImport("evas")] static extern void evas_obj_box_layout_horizontal(IntPtr obj, IntPtr data, IntPtr privdata);
11 [DllImport("evas")] static extern void evas_object_box_layout_horizontal(IntPtr obj, IntPtr data, IntPtr privdata);
12 [DllImport("evas")] static extern IntPtr evas_object_evas_get(IntPtr obj);
13 [DllImport("evas")] static extern void evas_event_freeze(IntPtr obj);
14 [DllImport("evas")] static extern void evas_event_thaw(IntPtr obj);
15
16 override public void CalculateGroup()
17 {
18 IntPtr evas = evas_object_evas_get(NativeHandle);
19 evas_event_freeze(evas);
20 Eina.Log.Debug("called group_calculate");
21 // slayouting_set(true);
22 evas_obj_box_layout_vertical(NativeHandle, IntPtr.Zero, IntPtr.Zero);
23 // layouting_set(false);
24 // children_changed_set(false);
25 evas_event_thaw(evas);
26 }
27}
28
29namespace TestSuite
30{
31
32class TestEvas
33{
34 /* private static string ImagePath([CallerFilePath] string folder="") */
35 /* { */
36 /* return System.IO.Path.GetDirectoryName(folder); */
37 /* } */
38
39 /* public static void simple_layout() */
40 /* { */
41/* // efl.Loop loop = new efl.LoopConcrete(); */
42
43 /* EcoreEvas ecore_evas = new EcoreEvas(); */
44
45 /* efl.canvas.Object canvas = ecore_evas.canvas; */
46 /* canvas.visible_set(true); */
47
48 /* efl.Object parent = canvas.parent_get(); */
49 /* Test.Assert(parent.NativeHandle != IntPtr.Zero); */
50
51 /* efl.canvas.Rectangle rect = new efl.canvas.RectangleConcrete(canvas); */
52 /* rect.color_set(255, 255, 255, 255); */
53 /* rect.size_set(640, 480); */
54 /* rect.visible_set(true); */
55
56 /* evas.Box box = new MyBox(canvas); */
57 /* rect.size_set(320, 240); */
58 /* box.visible_set(true); */
59
60 /* efl.canvas.Image image1 = new efl.canvas.ImageConcrete(canvas); */
61 /* image1.file_set(ImagePath() + "/../../examples/elementary/sphere_hunter/score.jpg", ""); */
62 /* image1.hint_min_set(160, 240); */
63 /* image1.visible_set(true); */
64
65 /* efl.canvas.Image image2 = new efl.canvas.ImageConcrete(canvas); */
66 /* image2.file_set(ImagePath() + "/../../examples/evas/shooter/assets/images/bricks.jpg", ""); */
67 /* image2.hint_min_set(160, 120); */
68 /* image2.visible_set(true); */
69
70 /* box.append(image1); */
71 /* box.append(image2); */
72
73/* // loop.begin(); */
74 /* } */
75}
76
77}