Author: nigel
Date: 2005-05-24 21:49:38 -0400 (Tue, 24 May 2005)
New Revision: 44958

Modified:
   trunk/efl-sharp/libs/efl-sharp/src/bin/efl_sharp_test.cs
   trunk/efl-sharp/libs/efl-sharp/src/lib/ecore/ecore_evas.cs
Log:
too tired to finish this tonight

Modified: trunk/efl-sharp/libs/efl-sharp/src/bin/efl_sharp_test.cs
===================================================================
--- trunk/efl-sharp/libs/efl-sharp/src/bin/efl_sharp_test.cs    2005-05-25 
01:23:24 UTC (rev 44957)
+++ trunk/efl-sharp/libs/efl-sharp/src/bin/efl_sharp_test.cs    2005-05-25 
01:49:38 UTC (rev 44958)
@@ -6,7 +6,7 @@
 public class EcoreEvasTest
 {
 
-   private static EcoreEvas EE = new EcoreEvas();
+   private static Ecore.Canvas EE = new Ecore.Canvas();
    
    public static void EdjeMouseDownEventCallback(object o, EvasEventMouseDown 
e)
      {
@@ -57,7 +57,7 @@
    public static void Main(string [] args)
      { 
        Ecore.MainLoop.Init();
-       EcoreEvas.Init();
+       Ecore.Canvas.Init();
        Edje.Init();
                        
        EE.SoftwareX11New(":0", IntPtr.Zero, 0, 0, 640, 480);

Modified: trunk/efl-sharp/libs/efl-sharp/src/lib/ecore/ecore_evas.cs
===================================================================
--- trunk/efl-sharp/libs/efl-sharp/src/lib/ecore/ecore_evas.cs  2005-05-25 
01:23:24 UTC (rev 44957)
+++ trunk/efl-sharp/libs/efl-sharp/src/lib/ecore/ecore_evas.cs  2005-05-25 
01:49:38 UTC (rev 44958)
@@ -1,712 +1,714 @@
+namespace Ecore {
+
 using System;
 using System.Collections;
 using System.Runtime.InteropServices;
-using Evas;
 
-public class EcoreEvas
-{
-   const string Library = "ecore_evas";
-   
-   [DllImport(Library)]
-   private extern static int ecore_evas_engine_type_supported_get(IntPtr 
engine);       
-   
-   [DllImport(Library)]
-   private extern static int ecore_evas_init();
-   
-   [DllImport(Library)]
-   private extern static int ecore_evas_shutdown();      
-   
-   [DllImport(Library)]
-   private extern static IntPtr ecore_evas_software_x11_new(string disp_name,
+       public class Canvas
+       {
+               const string Library = "ecore_evas";
+
+               [DllImport(Library)]
+               private extern static int 
ecore_evas_engine_type_supported_get(IntPtr engine);       
+
+               [DllImport(Library)]
+               private extern static int ecore_evas_init();
+
+               [DllImport(Library)]
+               private extern static int ecore_evas_shutdown();      
+
+               [DllImport(Library)]
+               private extern static IntPtr ecore_evas_software_x11_new(string 
disp_name,
                                                            IntPtr parent,
                                                            int x, int y, 
                                                            int w, int h);
-   [DllImport(Library)]
-   private extern static IntPtr ecore_evas_software_x11_window_get(IntPtr ee);
+               [DllImport(Library)]
+               private extern static IntPtr 
ecore_evas_software_x11_window_get(IntPtr ee);
    
-   [DllImport(Library)]
-   private extern static IntPtr ecore_evas_software_x11_subwindow_get(IntPtr 
ee);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_software_x11_direct_resize_set(IntPtr 
ee, int on);
-   
-   [DllImport(Library)]
-   private extern static int ecore_evas_software_x11_direct_resize_get(IntPtr 
ee);
-   
-   [DllImport(Library)]
-   private extern static IntPtr ecore_evas_gl_x11_new(string disp_name, IntPtr 
parent, int x, int y, int w, int h);
-   
-   [DllImport(Library)]
-   private extern static IntPtr ecore_evas_gl_x11_window_get(IntPtr ee);
-   
-   [DllImport(Library)]
-   private extern static IntPtr ecore_evas_gl_x11_subwindow_get(IntPtr ee);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_gl_x11_direct_resize_set(IntPtr ee, 
int on);
-   
-   [DllImport(Library)]
-   private extern static int ecore_evas_gl_x11_direct_resize_get(IntPtr ee);
-   
-   [DllImport(Library)]
-   private extern static IntPtr ecore_evas_fb_new(string disp_name, int 
rotation, int w, int h);
-   
-   [DllImport(Library)]
-   private extern static IntPtr ecore_evas_buffer_new(int w, int h);
-   
-   [DllImport(Library)]
-   private extern static int ecore_evas_buffer_pixels_get(IntPtr ee);
-   
-   [DllImport(Library)]
-   private extern static IntPtr ecore_evas_object_image_new(IntPtr ee_target);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_free(IntPtr ee);
-   
-   [DllImport(Library)]
-   private extern static IntPtr ecore_evas_data_get(IntPtr ee, string key);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_data_set(IntPtr ee, string key, 
IntPtr data);
-   
-   public delegate void ecore_evas_callback(IntPtr ee);
-   [DllImport(Library)]
-   private extern static void ecore_evas_callback_resize_set(IntPtr ee, 
ecore_evas_callback func);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_callback_move_set(IntPtr ee, 
ecore_evas_callback func);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_callback_show_set(IntPtr ee, 
ecore_evas_callback func);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_callback_hide_set(IntPtr ee, 
ecore_evas_callback func);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_callback_delete_request_set(IntPtr 
ee, ecore_evas_callback func);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_callback_destroy_set(IntPtr ee, 
ecore_evas_callback func);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_callback_focus_in_set(IntPtr ee, 
ecore_evas_callback func);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_callback_focus_out_set(IntPtr ee, 
ecore_evas_callback func);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_callback_mouse_in_set(IntPtr ee, 
ecore_evas_callback func);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_callback_mouse_out_set(IntPtr ee, 
ecore_evas_callback func);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_callback_pre_render_set(IntPtr ee, 
ecore_evas_callback func);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_callback_post_render_set(IntPtr ee, 
ecore_evas_callback func);   
-   
-   [DllImport(Library)]
-   private extern static IntPtr ecore_evas_get(IntPtr ee);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_move(IntPtr ee, int x, int y);   
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_resize(IntPtr ee, int w, int h);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_move_resize(IntPtr ee, int x, int y, 
int w, int h);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_geometry_get(IntPtr ee, out int x, 
out int y, out int w, out int h);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_rotation_set(IntPtr ee, int rot);
-   
-   [DllImport(Library)]
-   private extern static int ecore_evas_rotation_get(IntPtr ee);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_shaped_set(IntPtr ee, int shaped);
-   
-   [DllImport(Library)]
-   private extern static int ecore_evas_shaped_get(IntPtr ee);
-      
-   [DllImport(Library)]
-   private extern static void ecore_evas_show(IntPtr ee);  
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_hide(IntPtr ee);
-   
-   [DllImport(Library)]
-   private extern static int ecore_evas_visibility_get(IntPtr ee);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_raise(IntPtr ee);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_lower(IntPtr ee);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_title_set(IntPtr ee, string t);
-   
-   [DllImport(Library)]
-   private extern static string ecore_evas_title_get(IntPtr ee);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_name_class_set(IntPtr ee, string n, 
string c);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_name_class_get(IntPtr ee, out string 
n, out string c);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_size_min_set(IntPtr ee, int w, int h);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_size_min_get(IntPtr ee, out int w, 
out int h);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_size_max_set(IntPtr ee, int w, int h);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_size_max_get(IntPtr ee, out int w, 
out int h);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_size_base_set(IntPtr ee, int w, int 
h);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_size_base_get(IntPtr ee, out int w, 
out int h);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_size_step_set(IntPtr ee, int w, int 
h);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_size_step_get(IntPtr ee, out int w, 
out int h);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_cursor_set(IntPtr ee, string file, 
int layer, int hot_x, int hot_y);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_cursor_get(IntPtr ee, out string 
file, out int layer, out int hot_x, out int hot_y);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_layer_set(IntPtr ee, int layer);
-   
-   [DllImport(Library)]
-   private extern static int ecore_evas_layer_get(IntPtr ee);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_focus_set(IntPtr ee, int on);
-   
-   [DllImport(Library)]
-   private extern static int ecore_evas_focus_get(IntPtr ee);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_iconified_set(IntPtr ee, int on);
-   
-   [DllImport(Library)]
-   private extern static int ecore_evas_iconified_get(IntPtr ee);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_borderless_set(IntPtr ee, bool on);
-   
-   [DllImport(Library)]
-   private extern static bool ecore_evas_borderless_get(IntPtr ee);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_override_set(IntPtr ee, int on);
-   
-   [DllImport(Library)]
-   private extern static int ecore_evas_override_get(IntPtr ee);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_maximized_set(IntPtr ee, int on);
-   
-   [DllImport(Library)]
-   private extern static int ecore_evas_maximized_get(IntPtr ee);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_fullscreen_set(IntPtr ee, int on);
-   
-   [DllImport(Library)]
-   private extern static int ecore_evas_fullscreen_get(IntPtr ee);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_avoid_damage_set(IntPtr ee, int on);
-   
-   [DllImport(Library)]
-   private extern static int ecore_evas_avoid_damage_get(IntPtr ee);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_withdrawn_set(IntPtr ee, int 
withdrawn);
-   
-   [DllImport(Library)]
-   private extern static int ecore_evas_withdrawn_get(IntPtr ee);
-   
-   [DllImport(Library)]
-   private extern static void ecore_evas_sticky_set(IntPtr ee, int sticky);
+               [DllImport(Library)]
+               private extern static IntPtr 
ecore_evas_software_x11_subwindow_get(IntPtr ee);
 
-   [DllImport(Library)]
-   private extern static int ecore_evas_sticky_get(IntPtr ee);
-      
-   private HandleRef objRaw;
-   private static Hashtable callbacks = new Hashtable ();
-   private static Hashtable dataptrs = new Hashtable ();
-   
-   public const int ECORE_EVAS_ENGINE_SOFTWARE_X11 = 0;
-   public const int ECORE_EVAS_ENGINE_SOFTWARE_FB = 1;
-   public const int ECORE_EVAS_ENGINE_GL_X11 = 2;
-   public const int ECORE_EVAS_ENGINE_SOFTWARE_BUFFER = 3;
-   
-   
-   // Public Methods
-   
-   public EcoreEvas()
-     { 
-     }
-   
+               [DllImport(Library)]
+               private extern static void 
ecore_evas_software_x11_direct_resize_set(IntPtr ee, int on);
 
-   /* ************************* */
-   
-   public static int EngineTypeSupportedGet(IntPtr engine)
-     {
-       return ecore_evas_engine_type_supported_get(engine);
-     }
-   
-   /* ************************* */
-   
-   public static int Init()
-     {
-       return ecore_evas_init();
-     }
-      
-   public static int ShutDown()
-     {
-       return ecore_evas_shutdown();
-     }
-   
-   /* ************************* */
-   
-   public void SoftwareX11New(string disp_name, IntPtr parent, int x, int y, 
int w, int h)
-     {
-       objRaw = new HandleRef(this, ecore_evas_software_x11_new(disp_name, 
parent, x, y, w, h));
-     }
-   
-   public IntPtr SoftwareX11WindowGet()
-     {
-       return ecore_evas_software_x11_window_get(Raw);
-     }
-   
-   public IntPtr SoftwareX11SubWindowGet()
-     {
-       return ecore_evas_software_x11_subwindow_get(Raw);
-     }
-   
-   public void SoftwareX11DirectResizeSet(int on)
-     {
-       ecore_evas_software_x11_direct_resize_set(Raw, on);
-     }
-   
-   public int SoftwareX11DirectResizeGet()
-     {
-       return ecore_evas_software_x11_direct_resize_get(Raw);
-     }
-         
-   /* ************************* */
-   
-   public void GlX11New(string disp_name, IntPtr parent, int x, int y, int w, 
int h)
-     {
-       objRaw = new HandleRef(this, ecore_evas_gl_x11_new(disp_name, parent, 
x, y, w, h));
-     }
-   
-   public IntPtr GlX11WindowGet()
-     {
-       return ecore_evas_gl_x11_window_get(Raw);
-     }
-   
-   public IntPtr GlX11SubWindowGet()
-     {
-       return ecore_evas_gl_x11_subwindow_get(Raw);
-     }
-   
-   public void GlX11DirectResizeSet(int on)
-     {
-       ecore_evas_gl_x11_direct_resize_set(Raw, on);
-     }
-   
-   public int GlX11DirectResizeGet()
-     {
-       return ecore_evas_gl_x11_direct_resize_get(Raw);
-     }
-   
-   /* ************************* */
-   
-   public void FbNew(string DispName, int Rotation, int w, int h)
-     {
-       ecore_evas_fb_new(DispName, Rotation, w, h);
-     }
-   
-   /* ************************* */
-   
-   public void BufferNew(int w, int h)
-     {
-       objRaw = new HandleRef(this, ecore_evas_buffer_new(w, h));
-     }
-   
-   public int BufferPixelsGet()
-     {
-       return ecore_evas_buffer_pixels_get(Raw);
-     }
-   
-   /* ************************* */
-   
-   public IntPtr ObjectImageNew()
-     {
-       return ecore_evas_object_image_new(Raw);
-     }
-   
-   /* ************************* */
-   
-   public void Free()
-     {
-       ecore_evas_free(Raw);
-     }
-   
-   public object DataGet(string key)
-     {
-       IntPtr p = ecore_evas_data_get(Raw, key);
-       return dataptrs[p];
-     }
-   
-   public void DataSet(string key, object data)
-     {
-       IntPtr p = new IntPtr(dataptrs.Count);
-       dataptrs[p] = data;
-       ecore_evas_data_set(Raw, key, p);
-     }
-   
-   public void CallbackResizeSet(ecore_evas_callback func)
-     {
-       ecore_evas_callback_resize_set(Raw, func);
-       callbacks["resize"] = func;
-     }
-   
-   public void CallbackMoveSet(ecore_evas_callback func)
-     {
-       ecore_evas_callback_move_set(Raw, func);
-       callbacks["move"] = func;
-     }   
-   
-   public void CallbackShowSet(ecore_evas_callback func)
-     {
-       ecore_evas_callback_show_set(Raw, func);
-       callbacks["show"] = func;
-     }
-   
-   public void CallbackHideSet(ecore_evas_callback func)
-     {
-       ecore_evas_callback_hide_set(Raw, func);
-       callbacks["hide"] = func;
-     }
-   
-   public void CallbackDeleteRequestSet(ecore_evas_callback func)
-     {
-       ecore_evas_callback_delete_request_set(Raw, func);
-       callbacks["delete"] = func;
-     }
-   
-   public void CallbackDestroySet(ecore_evas_callback func)
-     {
-       ecore_evas_callback_destroy_set(Raw, func);
-       callbacks["destroy"] = func;
-     }
-   
-   public void CallbackFocusInSet(ecore_evas_callback func)
-     {
-       ecore_evas_callback_focus_in_set(Raw, func);
-       callbacks["focus_in"] = func;
-     }
-   
-   public void CallbackFocusOutSet(ecore_evas_callback func)
-     {
-       ecore_evas_callback_focus_out_set(Raw, func);
-       callbacks["focus_out"] = func;
-     }
-   
-   public void CallbackMouseInSet(ecore_evas_callback func)
-     {
-       ecore_evas_callback_mouse_in_set(Raw, func);
-       callbacks["mouse_in"] = func;
-     }
-   
-   public void CallbackMouseOutSet(ecore_evas_callback func)
-     {
-       ecore_evas_callback_mouse_out_set(Raw, func);
-       callbacks["mouse_out"] = func;
-     }
-   
-   public void CallbackPreRenderSet(ecore_evas_callback func)
-     {
-       ecore_evas_callback_pre_render_set(Raw, func);
-       callbacks["pre_render"] = func;
-     }
-   
-   public void CallbackPostRenderSet(ecore_evas_callback func)
-     {
-       ecore_evas_callback_post_render_set(Raw, func);
-       callbacks["post_render"] = func;
-     }   
-         
-   public Canvas Get()
-     {
-       
-       return new Canvas(ecore_evas_get(Raw));
-     }
-   
-   public void Move(int x, int y)
-     {
-       ecore_evas_move(Raw, x, y);
-     }
-         
-   public void Resize(int w, int h)
-     {
-       ecore_evas_resize(Raw, w, h);
-     }   
-      
-   public void MoveResize(int x, int y, int w, int h)
-     {
-       ecore_evas_move_resize(Raw, x, y, w, h);
-     }
-   
-   public void GeometryGet(out int x, out int y, out int w, out int h)
-     {
-       ecore_evas_geometry_get(Raw, out x, out y, out w, out h);
-     }
-   
-   public void RotationSet(int rot)
-     {
-       ecore_evas_rotation_set(Raw, rot);
-     }
-   
-   public int RotationGet()
-     {
-       return ecore_evas_rotation_get(Raw);
-     }
-   
-   public void ShapedSet(int shaped)
-     {
-       ecore_evas_shaped_set(Raw, shaped);
-     }
-   
-   public int ShapedGet()
-     {
-       return ecore_evas_shaped_get(Raw);
-     }   
-   
-   public void Show()
-     {
-       ecore_evas_show(Raw);
-     }
-   
-   public void Hide()
-     {
-       ecore_evas_hide(Raw);
-     }
-   
-   public int VisibilityGet()
-     {
-       return ecore_evas_visibility_get(Raw);
-     }
-   
-   public void Raise()
-     {
-       ecore_evas_raise(Raw);
-     }
-   
-   public void Lower()
-     {
-       ecore_evas_lower(Raw);
-     }
-   
-   public void TitleSet(string title)
-     {
-       ecore_evas_title_set(Raw, title);
-     }
-   
-   public string TitleGet()
-     {
-       return ecore_evas_title_get(Raw);
-     }
-   
-   public void NameClassSet(string n, string c)
-     {
-       ecore_evas_name_class_set(Raw, n, c);
-     }
-   
-   public void NameClassGet(out string n, out string c)
-     {
-       ecore_evas_name_class_get(Raw, out n, out c);
-     }
-   
-   public void SizeMinSet(int w, int h)
-     {
-       ecore_evas_size_min_set(Raw, w, h);
-     }
-   
-   public void SizeMinGet(out int w, out int h)
-     {
-       ecore_evas_size_min_get(Raw, out w, out h);
-     }
-   
-   public void SizeMaxSet(int w, int h)
-     {
-       ecore_evas_size_max_set(Raw, w, h);
-     }
-   
-   public void SizeMaxGet(out int w, out int h)
-     {
-       ecore_evas_size_max_get(Raw, out w, out h);
-     }
-   
-   public void SizeBaseSet(int w, int h)
-     {
-       ecore_evas_size_base_set(Raw, w, h);
-     }
-   
-   public void SizeBaseGet(out int w, out int h)
-     {
-       ecore_evas_size_base_get(Raw, out w, out h);
-     }   
-   
-   public void SizeStepSet(int w, int h)
-     {
-       ecore_evas_size_step_set(Raw, w, h);
-     }
-   
-   public void SizeStepGet(out int w, out int h)
-     {
-       ecore_evas_size_step_get(Raw, out w, out h);
-     }   
-   
-   public void CursorSet(string file, int layer, int HotX, int HotY)
-     {
-       ecore_evas_cursor_set(Raw, file, layer, HotX, HotY);
-     }
-   
-  public void CursorGet(out string file, out int layer, out int HotX, out int 
HotY)
-     {
-       ecore_evas_cursor_get(Raw, out file, out layer, out HotX, out HotY);
-     }
-   
-   public void LayerSet(int layer)
-     {
-       ecore_evas_layer_set(Raw, layer);
-     }
-   
-   public int LayerSet()
-     {
-       return ecore_evas_layer_get(Raw);
-     }
-   
-   public void FocusSet(int on)
-     {
-       ecore_evas_focus_set(Raw, on);
-     }
-   
-   public int FocusGet()
-     {
-       return ecore_evas_focus_get(Raw);
-     }
-   
-   public void IconifiedSet(int on)
-     {
-       ecore_evas_iconified_set(Raw, on);
-     }
-   
-   public int IconifiedGet()
-     {
-       return ecore_evas_iconified_get(Raw);
-     }   
-      
-   public void BorderlessSet(bool on)
-     {
-       ecore_evas_borderless_set(Raw, on);
-     }
-   
-   public bool BorderlessGet()
-     {
-       return ecore_evas_borderless_get(Raw);
-     }   
-   
-   public void OverrideSet(int on)
-     {
-       ecore_evas_override_set(Raw, on);
-     }
-   
-   public int OverrideGet()
-     {
-       return ecore_evas_override_get(Raw);
-     }   
-   
-   public void MaximizedSet(int on)
-     {
-       ecore_evas_maximized_set(Raw, on);
-     }
-   
-   public int MaximizedGet()
-     {
-       return ecore_evas_maximized_get(Raw);
-     }   
-   
-   public void FullscreenSet(int on)
-     {
-       ecore_evas_fullscreen_set(Raw, on);
-     }
-   
-   public int FullscreenGet()
-     {
-       return ecore_evas_fullscreen_get(Raw);
-     }   
-      
-   public void AvoidDamageSet(int on)
-     {
-       ecore_evas_avoid_damage_set(Raw, on);
-     }
-   
-   public int AvoidDamageGet()
-     {
-       return ecore_evas_avoid_damage_get(Raw);
-     }   
-   
-   public void WithdraenSet(int on)
-     {
-       ecore_evas_withdrawn_set(Raw, on);
-     }
-   
-   public int WithdrawnGet()
-     {
-       return ecore_evas_withdrawn_get(Raw);
-     }   
-   
-   public void StickySet(int on)
-     {
-       ecore_evas_sticky_set(Raw, on);
-     }
-   
-   public int StickyGet()
-     {
-       return ecore_evas_sticky_get(Raw);
-     }   
-   
-   public virtual IntPtr Raw
-     {
-       get { return objRaw.Handle; }
-     }
-   
-   
-   ~EcoreEvas()
-     {
-       ecore_evas_free(Raw);
-     }   
+               [DllImport(Library)]
+               private extern static int 
ecore_evas_software_x11_direct_resize_get(IntPtr ee);
+
+               [DllImport(Library)]
+               private extern static IntPtr ecore_evas_gl_x11_new(string 
disp_name, IntPtr parent, int x, int y, int w, int h);
+
+               [DllImport(Library)]
+               private extern static IntPtr 
ecore_evas_gl_x11_window_get(IntPtr ee);
+
+               [DllImport(Library)]
+               private extern static IntPtr 
ecore_evas_gl_x11_subwindow_get(IntPtr ee);
+
+               [DllImport(Library)]
+               private extern static void 
ecore_evas_gl_x11_direct_resize_set(IntPtr ee, int on);
+
+               [DllImport(Library)]
+               private extern static int 
ecore_evas_gl_x11_direct_resize_get(IntPtr ee);
+
+               [DllImport(Library)]
+               private extern static IntPtr ecore_evas_fb_new(string 
disp_name, int rotation, int w, int h);
+
+               [DllImport(Library)]
+               private extern static IntPtr ecore_evas_buffer_new(int w, int 
h);
+
+               [DllImport(Library)]
+               private extern static int ecore_evas_buffer_pixels_get(IntPtr 
ee);
+
+               [DllImport(Library)]
+               private extern static IntPtr ecore_evas_object_image_new(IntPtr 
ee_target);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_free(IntPtr ee);
+
+               [DllImport(Library)]
+               private extern static IntPtr ecore_evas_data_get(IntPtr ee, 
string key);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_data_set(IntPtr ee, 
string key, IntPtr data);
+
+               public delegate void ecore_evas_callback(IntPtr ee);
+               [DllImport(Library)]
+               private extern static void 
ecore_evas_callback_resize_set(IntPtr ee, ecore_evas_callback func);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_callback_move_set(IntPtr 
ee, ecore_evas_callback func);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_callback_show_set(IntPtr 
ee, ecore_evas_callback func);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_callback_hide_set(IntPtr 
ee, ecore_evas_callback func);
+
+               [DllImport(Library)]
+               private extern static void 
ecore_evas_callback_delete_request_set(IntPtr ee, ecore_evas_callback func);
+
+               [DllImport(Library)]
+               private extern static void 
ecore_evas_callback_destroy_set(IntPtr ee, ecore_evas_callback func);
+
+               [DllImport(Library)]
+               private extern static void 
ecore_evas_callback_focus_in_set(IntPtr ee, ecore_evas_callback func);
+
+               [DllImport(Library)]
+               private extern static void 
ecore_evas_callback_focus_out_set(IntPtr ee, ecore_evas_callback func);
+
+               [DllImport(Library)]
+               private extern static void 
ecore_evas_callback_mouse_in_set(IntPtr ee, ecore_evas_callback func);
+
+               [DllImport(Library)]
+               private extern static void 
ecore_evas_callback_mouse_out_set(IntPtr ee, ecore_evas_callback func);
+
+               [DllImport(Library)]
+               private extern static void 
ecore_evas_callback_pre_render_set(IntPtr ee, ecore_evas_callback func);
+
+               [DllImport(Library)]
+               private extern static void 
ecore_evas_callback_post_render_set(IntPtr ee, ecore_evas_callback func);   
+
+               [DllImport(Library)]
+               private extern static IntPtr ecore_evas_get(IntPtr ee);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_move(IntPtr ee, int x, 
int y);   
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_resize(IntPtr ee, int w, 
int h);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_move_resize(IntPtr ee, 
int x, int y, int w, int h);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_geometry_get(IntPtr ee, 
out int x, out int y, out int w, out int h);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_rotation_set(IntPtr ee, 
int rot);
+
+               [DllImport(Library)]
+               private extern static int ecore_evas_rotation_get(IntPtr ee);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_shaped_set(IntPtr ee, int 
shaped);
+
+               [DllImport(Library)]
+               private extern static int ecore_evas_shaped_get(IntPtr ee);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_show(IntPtr ee);  
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_hide(IntPtr ee);
+
+               [DllImport(Library)]
+               private extern static int ecore_evas_visibility_get(IntPtr ee);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_raise(IntPtr ee);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_lower(IntPtr ee);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_title_set(IntPtr ee, 
string t);
+
+               [DllImport(Library)]
+               private extern static string ecore_evas_title_get(IntPtr ee);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_name_class_set(IntPtr ee, 
string n, string c);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_name_class_get(IntPtr ee, 
out string n, out string c);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_size_min_set(IntPtr ee, 
int w, int h);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_size_min_get(IntPtr ee, 
out int w, out int h);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_size_max_set(IntPtr ee, 
int w, int h);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_size_max_get(IntPtr ee, 
out int w, out int h);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_size_base_set(IntPtr ee, 
int w, int h);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_size_base_get(IntPtr ee, 
out int w, out int h);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_size_step_set(IntPtr ee, 
int w, int h);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_size_step_get(IntPtr ee, 
out int w, out int h);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_cursor_set(IntPtr ee, 
string file, int layer, int hot_x, int hot_y);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_cursor_get(IntPtr ee, out 
string file, out int layer, out int hot_x, out int hot_y);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_layer_set(IntPtr ee, int 
layer);
+
+               [DllImport(Library)]
+               private extern static int ecore_evas_layer_get(IntPtr ee);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_focus_set(IntPtr ee, int 
on);
+
+               [DllImport(Library)]
+               private extern static int ecore_evas_focus_get(IntPtr ee);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_iconified_set(IntPtr ee, 
int on);
+
+               [DllImport(Library)]
+               private extern static int ecore_evas_iconified_get(IntPtr ee);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_borderless_set(IntPtr ee, 
bool on);
+
+               [DllImport(Library)]
+               private extern static bool ecore_evas_borderless_get(IntPtr ee);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_override_set(IntPtr ee, 
int on);
+
+               [DllImport(Library)]
+               private extern static int ecore_evas_override_get(IntPtr ee);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_maximized_set(IntPtr ee, 
int on);
+
+               [DllImport(Library)]
+               private extern static int ecore_evas_maximized_get(IntPtr ee);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_fullscreen_set(IntPtr ee, 
int on);
+
+               [DllImport(Library)]
+               private extern static int ecore_evas_fullscreen_get(IntPtr ee);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_avoid_damage_set(IntPtr 
ee, int on);
+
+               [DllImport(Library)]
+               private extern static int ecore_evas_avoid_damage_get(IntPtr 
ee);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_withdrawn_set(IntPtr ee, 
int withdrawn);
+
+               [DllImport(Library)]
+               private extern static int ecore_evas_withdrawn_get(IntPtr ee);
+
+               [DllImport(Library)]
+               private extern static void ecore_evas_sticky_set(IntPtr ee, int 
sticky);
+
+               [DllImport(Library)]
+               private extern static int ecore_evas_sticky_get(IntPtr ee);
+
+               private HandleRef objRaw;
+               private static Hashtable callbacks = new Hashtable ();
+               private static Hashtable dataptrs = new Hashtable ();
+
+               public const int ECORE_EVAS_ENGINE_SOFTWARE_X11 = 0;
+               public const int ECORE_EVAS_ENGINE_SOFTWARE_FB = 1;
+               public const int ECORE_EVAS_ENGINE_GL_X11 = 2;
+               public const int ECORE_EVAS_ENGINE_SOFTWARE_BUFFER = 3;
+
+
+               // Public Methods
+
+               public Canvas()
+               {
+               }
+
+
+               /* ************************* */
+
+               public static int EngineTypeSupportedGet(IntPtr engine)
+               {
+                       return ecore_evas_engine_type_supported_get(engine);
+               }
+
+               /* ************************* */
+
+               public static int Init()
+               {
+                       return ecore_evas_init();
+               }
+
+               public static int ShutDown()
+               {
+                       return ecore_evas_shutdown();
+               }
+
+               /* ************************* */
+
+               public void SoftwareX11New(string disp_name, IntPtr parent, int 
x, int y, int w, int h)
+               {
+                       objRaw = new HandleRef(this, 
ecore_evas_software_x11_new(disp_name, parent, x, y, w, h));
+               }
+
+               public IntPtr SoftwareX11WindowGet()
+               {
+                       return ecore_evas_software_x11_window_get(Raw);
+               }
+
+               public IntPtr SoftwareX11SubWindowGet()
+               {
+                       return ecore_evas_software_x11_subwindow_get(Raw);
+               }
+
+               public void SoftwareX11DirectResizeSet(int on)
+               {
+                       ecore_evas_software_x11_direct_resize_set(Raw, on);
+               }
+
+               public int SoftwareX11DirectResizeGet()
+               {
+                       return ecore_evas_software_x11_direct_resize_get(Raw);
+               }
+
+               /* ************************* */
+
+               public void GlX11New(string disp_name, IntPtr parent, int x, 
int y, int w, int h)
+               {
+                       objRaw = new HandleRef(this, 
ecore_evas_gl_x11_new(disp_name, parent, x, y, w, h));
+               }
+
+               public IntPtr GlX11WindowGet()
+               {
+                       return ecore_evas_gl_x11_window_get(Raw);
+               }
+
+               public IntPtr GlX11SubWindowGet()
+               {
+                       return ecore_evas_gl_x11_subwindow_get(Raw);
+               }
+
+               public void GlX11DirectResizeSet(int on)
+               {
+                       ecore_evas_gl_x11_direct_resize_set(Raw, on);
+               }
+
+               public int GlX11DirectResizeGet()
+               {
+                       return ecore_evas_gl_x11_direct_resize_get(Raw);
+               }
+
+               /* ************************* */
+
+               public void FbNew(string DispName, int Rotation, int w, int h)
+               {
+                       ecore_evas_fb_new(DispName, Rotation, w, h);
+               }
+
+               /* ************************* */
+
+               public void BufferNew(int w, int h)
+               {
+                       objRaw = new HandleRef(this, ecore_evas_buffer_new(w, 
h));
+               }
+
+               public int BufferPixelsGet()
+               {
+                       return ecore_evas_buffer_pixels_get(Raw);
+               }
+
+               /* ************************* */
+
+               public IntPtr ObjectImageNew()
+               {
+                       return ecore_evas_object_image_new(Raw);
+               }
+
+               /* ************************* */
+
+               public void Free()
+               {
+                       ecore_evas_free(Raw);
+               }
+
+               public object DataGet(string key)
+               {
+                       IntPtr p = ecore_evas_data_get(Raw, key);
+                       return dataptrs[p];
+               }
+
+               public void DataSet(string key, object data)
+               {
+                       IntPtr p = new IntPtr(dataptrs.Count);
+                       dataptrs[p] = data;
+                       ecore_evas_data_set(Raw, key, p);
+               }
+
+               public void CallbackResizeSet(ecore_evas_callback func)
+               {
+                       ecore_evas_callback_resize_set(Raw, func);
+                       callbacks["resize"] = func;
+               }
+
+               public void CallbackMoveSet(ecore_evas_callback func)
+               {
+                       ecore_evas_callback_move_set(Raw, func);
+                       callbacks["move"] = func;
+               }   
+
+               public void CallbackShowSet(ecore_evas_callback func)
+               {
+                       ecore_evas_callback_show_set(Raw, func);
+                       callbacks["show"] = func;
+               }
+
+               public void CallbackHideSet(ecore_evas_callback func)
+               {
+                       ecore_evas_callback_hide_set(Raw, func);
+                       callbacks["hide"] = func;
+               }
+
+               public void CallbackDeleteRequestSet(ecore_evas_callback func)
+               {
+                       ecore_evas_callback_delete_request_set(Raw, func);
+                       callbacks["delete"] = func;
+               }
+
+               public void CallbackDestroySet(ecore_evas_callback func)
+               {
+                       ecore_evas_callback_destroy_set(Raw, func);
+                       callbacks["destroy"] = func;
+               }
+
+               public void CallbackFocusInSet(ecore_evas_callback func)
+               {
+                       ecore_evas_callback_focus_in_set(Raw, func);
+                       callbacks["focus_in"] = func;
+               }
+
+               public void CallbackFocusOutSet(ecore_evas_callback func)
+               {
+                       ecore_evas_callback_focus_out_set(Raw, func);
+                       callbacks["focus_out"] = func;
+               }
+
+               public void CallbackMouseInSet(ecore_evas_callback func)
+               {
+                       ecore_evas_callback_mouse_in_set(Raw, func);
+                       callbacks["mouse_in"] = func;
+               }
+
+               public void CallbackMouseOutSet(ecore_evas_callback func)
+               {
+                       ecore_evas_callback_mouse_out_set(Raw, func);
+                       callbacks["mouse_out"] = func;
+               }
+
+               public void CallbackPreRenderSet(ecore_evas_callback func)
+               {
+                       ecore_evas_callback_pre_render_set(Raw, func);
+                       callbacks["pre_render"] = func;
+               }
+
+               public void CallbackPostRenderSet(ecore_evas_callback func)
+               {
+                       ecore_evas_callback_post_render_set(Raw, func);
+                       callbacks["post_render"] = func;
+               }   
+
+               public Evas.Canvas Get()
+               {
+                       return new Evas.Canvas(ecore_evas_get(Raw));
+               }
+
+               public void Move(int x, int y)
+               {
+                       ecore_evas_move(Raw, x, y);
+               }
+
+               public void Resize(int w, int h)
+               {
+                       ecore_evas_resize(Raw, w, h);
+               }
+
+               public void MoveResize(int x, int y, int w, int h)
+               {
+                       ecore_evas_move_resize(Raw, x, y, w, h);
+               }
+
+               public void GeometryGet(out int x, out int y, out int w, out 
int h)
+               {
+                       ecore_evas_geometry_get(Raw, out x, out y, out w, out 
h);
+               }
+
+               public void RotationSet(int rot)
+               {
+                       ecore_evas_rotation_set(Raw, rot);
+               }
+
+               public int RotationGet()
+               {
+                       return ecore_evas_rotation_get(Raw);
+               }
+
+               public void ShapedSet(int shaped)
+               {
+                       ecore_evas_shaped_set(Raw, shaped);
+               }
+
+               public int ShapedGet()
+               {
+                       return ecore_evas_shaped_get(Raw);
+               }
+
+               public void Show()
+               {
+                       ecore_evas_show(Raw);
+               }
+
+               public void Hide()
+               {
+                       ecore_evas_hide(Raw);
+               }
+
+               public int VisibilityGet()
+               {
+                       return ecore_evas_visibility_get(Raw);
+               }
+
+               public void Raise()
+               {
+                       ecore_evas_raise(Raw);
+               }
+
+               public void Lower()
+               {
+                       ecore_evas_lower(Raw);
+               }
+
+               public void TitleSet(string title)
+               {
+                       ecore_evas_title_set(Raw, title);
+               }
+
+               public string TitleGet()
+               {
+                       return ecore_evas_title_get(Raw);
+               }
+
+               public void NameClassSet(string n, string c)
+               {
+                       ecore_evas_name_class_set(Raw, n, c);
+               }
+
+               public void NameClassGet(out string n, out string c)
+               {
+                       ecore_evas_name_class_get(Raw, out n, out c);
+               }
+
+               public void SizeMinSet(int w, int h)
+               {
+                       ecore_evas_size_min_set(Raw, w, h);
+               }
+
+               public void SizeMinGet(out int w, out int h)
+               {
+                       ecore_evas_size_min_get(Raw, out w, out h);
+               }
+
+               public void SizeMaxSet(int w, int h)
+               {
+                       ecore_evas_size_max_set(Raw, w, h);
+               }
+
+               public void SizeMaxGet(out int w, out int h)
+               {
+                       ecore_evas_size_max_get(Raw, out w, out h);
+               }
+
+               public void SizeBaseSet(int w, int h)
+               {
+                       ecore_evas_size_base_set(Raw, w, h);
+               }
+
+               public void SizeBaseGet(out int w, out int h)
+               {
+                       ecore_evas_size_base_get(Raw, out w, out h);
+               }   
+
+               public void SizeStepSet(int w, int h)
+               {
+                       ecore_evas_size_step_set(Raw, w, h);
+               }
+
+               public void SizeStepGet(out int w, out int h)
+               {
+                       ecore_evas_size_step_get(Raw, out w, out h);
+               }   
+
+               public void CursorSet(string file, int layer, int HotX, int 
HotY)
+               {
+                       ecore_evas_cursor_set(Raw, file, layer, HotX, HotY);
+               }
+
+               public void CursorGet(out string file, out int layer, out int 
HotX, out int HotY)
+               {
+                       ecore_evas_cursor_get(Raw, out file, out layer, out 
HotX, out HotY);
+               }
+
+               public void LayerSet(int layer)
+               {
+                       ecore_evas_layer_set(Raw, layer);
+               }
+
+               public int LayerSet()
+               {
+                       return ecore_evas_layer_get(Raw);
+               }
+
+               public void FocusSet(int on)
+               {
+                       ecore_evas_focus_set(Raw, on);
+               }
+
+               public int FocusGet()
+               {
+                       return ecore_evas_focus_get(Raw);
+               }
+
+               public void IconifiedSet(int on)
+               {
+                       ecore_evas_iconified_set(Raw, on);
+               }
+
+               public int IconifiedGet()
+               {
+                       return ecore_evas_iconified_get(Raw);
+               }   
+
+               public void BorderlessSet(bool on)
+               {
+                       ecore_evas_borderless_set(Raw, on);
+               }
+
+               public bool BorderlessGet()
+               {
+                       return ecore_evas_borderless_get(Raw);
+               }   
+
+               public void OverrideSet(int on)
+               {
+                       ecore_evas_override_set(Raw, on);
+               }
+
+               public int OverrideGet()
+               {
+                       return ecore_evas_override_get(Raw);
+               }   
+
+               public void MaximizedSet(int on)
+               {
+                       ecore_evas_maximized_set(Raw, on);
+               }
+
+               public int MaximizedGet()
+               {
+                       return ecore_evas_maximized_get(Raw);
+               }
+
+               public void FullscreenSet(int on)
+               {
+                       ecore_evas_fullscreen_set(Raw, on);
+               }
+
+               public int FullscreenGet()
+               {
+                       return ecore_evas_fullscreen_get(Raw);
+               }   
+
+               public void AvoidDamageSet(int on)
+               {
+                       ecore_evas_avoid_damage_set(Raw, on);
+               }
+
+               public int AvoidDamageGet()
+               {
+                       return ecore_evas_avoid_damage_get(Raw);
+               }
+
+               public void WithdraenSet(int on)
+               {
+                       ecore_evas_withdrawn_set(Raw, on);
+               }
+
+               public int WithdrawnGet()
+               {
+                       return ecore_evas_withdrawn_get(Raw);
+               }
+
+               public void StickySet(int on)
+               {
+                       ecore_evas_sticky_set(Raw, on);
+               }
+
+               public int StickyGet()
+               {
+                       return ecore_evas_sticky_get(Raw);
+               }
+
+               public virtual IntPtr Raw
+               {
+                       get { return objRaw.Handle; }
+               }
+
+               ~Canvas()
+               {
+                       ecore_evas_free(Raw);
+               }   
+
+       }
+
 }

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

Reply via email to