Author: nigel
Date: 2005-05-24 19:32:50 -0400 (Tue, 24 May 2005)
New Revision: 44948

Modified:
   trunk/efl-sharp/libs/efl-sharp/src/lib/Makefile.am
   trunk/efl-sharp/libs/efl-sharp/src/lib/ewl/ewl_object.cs
Log:
add new ecore files

Modified: trunk/efl-sharp/libs/efl-sharp/src/lib/Makefile.am
===================================================================
--- trunk/efl-sharp/libs/efl-sharp/src/lib/Makefile.am  2005-05-24 23:28:18 UTC 
(rev 44947)
+++ trunk/efl-sharp/libs/efl-sharp/src/lib/Makefile.am  2005-05-24 23:32:50 UTC 
(rev 44948)
@@ -4,7 +4,14 @@
 
 FILES = \
 AssemblyInfo.cs \
-ecore/Ecore.cs \
+ecore/ecore_animator.cs \
+ecore/ecore_app.cs \
+ecore/ecore_evas.cs \
+ecore/ecore_event.cs \
+ecore/ecore_file.cs \
+ecore/ecore_idler.cs \
+ecore/ecore_main.cs \
+ecore/ecore_timer.cs \
 evas/Evas.cs \
 ecore/EcoreEvas.cs \
 edje/Edje.cs \

Modified: trunk/efl-sharp/libs/efl-sharp/src/lib/ewl/ewl_object.cs
===================================================================
--- trunk/efl-sharp/libs/efl-sharp/src/lib/ewl/ewl_object.cs    2005-05-24 
23:28:18 UTC (rev 44947)
+++ trunk/efl-sharp/libs/efl-sharp/src/lib/ewl/ewl_object.cs    2005-05-24 
23:32:50 UTC (rev 44948)
@@ -35,19 +35,11 @@
                }
                
                [DllImport(Library)]
-               static extern void ewl_object_current_geometry_get(IntPtr obj, 
ref int x, ref int y, ref int w, ref int h);
-               public int Geometry {
-                       //TODO: Return struct
-                       get {
+               static extern void ewl_object_current_geometry_get(IntPtr obj, 
out int x, out int y, out int w, out int h);
+               public void Geometry(out x, out y, out w, out h) {
                        
-                               int x = 0, y = 0, w = 0, h = 0;
-                               ewl_object_current_geometry_get(Raw, ref x , 
ref y, ref w, ref h);
-                               
-                               Console.WriteLine(x + " " + y + " " + w + " " + 
h);
-                               
-                               return 1;
-                       
-                       }
+                       int x = 0, y = 0, w = 0, h = 0;
+                       ewl_object_current_geometry_get(Raw, out x , out y, out 
w, out h);
                
                }
                
@@ -107,25 +99,15 @@
                
                }
                
-               //The actual size of the object
                [DllImport(Library)]
-               static extern void ewl_object_current_size_get(IntPtr obj, ref 
int w, ref int h);
-               public int Size {
-               
-                       get {
+               static extern void ewl_object_current_size_get(IntPtr obj, out 
int w, out int h);
+               public int Size(out int w, out int h) {
                        
-                               int w = 0, h = 0;
-                               ewl_object_current_size_get(Raw, ref w, ref h);
+                       int w = 0, h = 0;
+                       ewl_object_current_size_get(Raw, out w, out h);
                                
-                               Console.WriteLine(w + " " + h);
-                               
-                               return 1;
-                       
-                       }
-               
                }
                
-               //Set the requested size of the object
                [DllImport(Library)]
                static extern void ewl_object_size_request(IntPtr obj, int w, 
int h);
                public void SizeRequest(int w, int h) {
@@ -134,22 +116,13 @@
                
                }
                
-               //Return the requested size of the object
                [DllImport(Library)]
-               static extern void ewl_object_preferred_size_get(IntPtr obj, 
ref int w, ref int h);
-               public int PreferredSize {
-               
-                       get {
+               static extern void ewl_object_preferred_size_get(IntPtr obj, 
out int w, out int h);
+               public int PreferredSize(out int w, out int h) {
                        
-                               int w = 0, h = 0;
-                               ewl_object_preferred_size_get(Raw, ref w, ref 
h);
-                               
-                               Console.WriteLine(w + " " + h);
-                               
-                               return 1;
-                       
-                       }
-               
+                       int w = 0, h = 0;
+                       ewl_object_preferred_size_get(Raw, out w, out h);
+
                }
                
                [DllImport(Library)]

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to