Author: miguel
Date: 2007-06-28 15:11:55 -0400 (Thu, 28 Jun 2007)
New Revision: 80993

Added:
   trunk/olive/class/agmono/Assembly/
   trunk/olive/class/agmono/Assembly/AssemblyInfo.cs
   trunk/olive/class/agmono/Makefile
   trunk/olive/class/agmono/Mono/
   trunk/olive/class/agmono/Mono/Kind.cs
   trunk/olive/class/agmono/Mono/NativeMethods.cs
   trunk/olive/class/agmono/Mono/Value.cs
   trunk/olive/class/agmono/agmono.dll.sources
Removed:
   trunk/olive/class/agclr/Mono/Kind.cs
   trunk/olive/class/agclr/Mono/NativeMethods.cs
   trunk/olive/class/agclr/Mono/Value.cs
Modified:
   trunk/olive/class/agclr/ChangeLog
   trunk/olive/class/agclr/Makefile
   trunk/olive/class/agclr/Mono/Events.cs
   trunk/olive/class/agclr/agclr.dll.sources
Log:
2007-06-28  Miguel de Icaza  <[EMAIL PROTECTED]>

        * Move Kind.cs, Value.cs and NativeMethods to the agmono assembly
        as well as some events from Events.cs that are now public and part
        of the NativeMethods APIS.

        This is only the initial move, we will later move some more stuff
        that we need.




Modified: trunk/olive/class/agclr/ChangeLog
===================================================================
--- trunk/olive/class/agclr/ChangeLog   2007-06-28 18:58:42 UTC (rev 80992)
+++ trunk/olive/class/agclr/ChangeLog   2007-06-28 19:11:55 UTC (rev 80993)
@@ -1,3 +1,12 @@
+2007-06-28  Miguel de Icaza  <[EMAIL PROTECTED]>
+
+       * Move Kind.cs, Value.cs and NativeMethods to the agmono assembly
+       as well as some events from Events.cs that are now public and part
+       of the NativeMethods APIS.
+
+       This is only the initial move, we will later move some more stuff
+       that we need.
+
 2007-06-26  Miguel de Icaza  <[EMAIL PROTECTED]>
 
        * Internal.cs: Implement most of the public interface for

Modified: trunk/olive/class/agclr/Makefile
===================================================================
--- trunk/olive/class/agclr/Makefile    2007-06-28 18:58:42 UTC (rev 80992)
+++ trunk/olive/class/agclr/Makefile    2007-06-28 19:11:55 UTC (rev 80993)
@@ -3,7 +3,7 @@
 
 LIBRARY = agclr.dll
 
-LIB_MCS_FLAGS = -r:System -r:System.Xml -d:AGCLR -unsafe
+LIB_MCS_FLAGS = -r:System -r:System.Xml -r:agmono -d:AGCLR -unsafe
 
 include ../../build/library.make
 

Modified: trunk/olive/class/agclr/Mono/Events.cs
===================================================================
--- trunk/olive/class/agclr/Mono/Events.cs      2007-06-28 18:58:42 UTC (rev 
80992)
+++ trunk/olive/class/agclr/Mono/Events.cs      2007-06-28 19:11:55 UTC (rev 
80993)
@@ -31,10 +31,6 @@
 
 namespace Mono {
 
-       delegate void CallbackMouseEvent (IntPtr target, int state, double x, 
double y);
-       delegate void PlainEvent (IntPtr target);
-       delegate bool KeyboardEvent (IntPtr target, int state, int 
platformcode, int key);
-       
        internal class Events {
                static CallbackMouseEvent mouse_motion      = new 
CallbackMouseEvent (mouse_motion_notify_callback);
                static CallbackMouseEvent mouse_button_down = new 
CallbackMouseEvent (mouse_button_down_callback);

Deleted: trunk/olive/class/agclr/Mono/Kind.cs
===================================================================
--- trunk/olive/class/agclr/Mono/Kind.cs        2007-06-28 18:58:42 UTC (rev 
80992)
+++ trunk/olive/class/agclr/Mono/Kind.cs        2007-06-28 19:11:55 UTC (rev 
80993)
@@ -1,139 +0,0 @@
-/* this file was autogenerated from moon/src/value.h.  do not edit this file 
- */
-namespace Mono {
-       public enum Kind {
-
-               INVALID,
-               BOOL,
-               DOUBLE,
-               UINT64,
-               INT32,
-               STRING,
-               COLOR,
-               POINT,
-               RECT,
-               REPEATBEHAVIOR,
-               DURATION,
-               INT64,
-               TIMESPAN,
-               DOUBLE_ARRAY,
-               POINT_ARRAY,
-               KEYTIME,
-               MATRIX,
-
-               DEPENDENCY_OBJECT,
-               ANIMATION,
-               ANIMATIONCLOCK,
-               ARCSEGMENT,
-               BEGINSTORYBOARD,
-               BEZIERSEGMENT,
-               BRUSH,
-               CANVAS,
-               CLOCK,
-               CLOCKGROUP,
-               COLLECTION,
-               COLORANIMATION,
-               COLORANIMATIONUSINGKEYFRAMES,
-               COLORKEYFRAME,
-               CONTROL,
-               DISCRETECOLORKEYFRAME,
-               DISCRETEDOUBLEKEYFRAME,
-               DISCRETEPOINTKEYFRAME,
-               DOUBLEANIMATION,
-               DOUBLEANIMATIONUSINGKEYFRAMES,
-               DOUBLEKEYFRAME,
-               DOWNLOADER,
-               DRAWINGATTRIBUTES,
-               ELLIPSE,
-               ELLIPSEGEOMETRY,
-               EVENTTRIGGER,
-               FRAMEWORKELEMENT,
-               GEOMETRY,
-               GEOMETRY_COLLECTION,
-               GEOMETRYGROUP,
-               GLYPHS,
-               GRADIENTBRUSH,
-               GRADIENTSTOP,
-               GRADIENTSTOP_COLLECTION,
-               IMAGE,
-               IMAGEBRUSH,
-               INKPRESENTER,
-               INLINE,
-               INLINES,
-               KEYFRAME,
-               KEYFRAME_COLLECTION,
-               KEYSPLINE,
-               LINE,
-               LINEARCOLORKEYFRAME,
-               LINEARDOUBLEKEYFRAME,
-               LINEARGRADIENTBRUSH,
-               LINEARPOINTKEYFRAME,
-               LINEBREAK,
-               LINEGEOMETRY,
-               LINESEGMENT,
-               MATRIXTRANSFORM,
-               MEDIAATTRIBUTE,
-               MEDIAATTRIBUTE_COLLECTION,
-               MEDIABASE,
-               MEDIAELEMENT,
-               NAMESCOPE,
-               PANEL,
-               PARALLELTIMELINE,
-               PATH,
-               PATHFIGURE,
-               PATHFIGURE_COLLECTION,
-               PATHGEOMETRY,
-               PATHSEGMENT,
-               PATHSEGMENT_COLLECTION,
-               POINTANIMATION,
-               POINTANIMATIONUSINGKEYFRAMES,
-               POINTKEYFRAME,
-               POLYBEZIERSEGMENT,
-               POLYGON,
-               POLYLINE,
-               POLYLINESEGMENT,
-               POLYQUADRATICBEZIERSEGMENT,
-               QUADRATICBEZIERSEGMENT,
-               RADIALGRADIENTBRUSH,
-               RECTANGLE,
-               RECTANGLEGEOMETRY,
-               RESOURCE_COLLECTION,
-               ROTATETRANSFORM,
-               RUN,
-               SCALETRANSFORM,
-               SHAPE,
-               SKEWTRANSFORM,
-               SOLIDCOLORBRUSH,
-               SPLINECOLORKEYFRAME,
-               SPLINEDOUBLEKEYFRAME,
-               SPLINEPOINTKEYFRAME,
-               STORYBOARD,
-               STROKE,
-               STROKE_COLLECTION,
-               STYLUSINFO,
-               STYLUSPOINT,
-               STYLUSPOINT_COLLECTION,
-               TEXTBLOCK,
-               TILEBRUSH,
-               TIMELINE,
-               TIMELINE_COLLECTION,
-               TIMELINEGROUP,
-               TIMELINEMARKER,
-               TIMELINEMARKER_COLLECTION,
-               TRANSFORM,
-               TRANSFORM_COLLECTION,
-               TRANSFORMGROUP,
-               TRANSLATETRANSFORM,
-               TRIGGERACTION,
-               TRIGGERACTION_COLLECTION,
-               TRIGGER_COLLECTION,
-               UIELEMENT,
-               VIDEOBRUSH,
-               VISUAL,
-               VISUAL_COLLECTION,
-
-       
-               LASTTYPE,
-       
-       }
-}

Deleted: trunk/olive/class/agclr/Mono/NativeMethods.cs
===================================================================
--- trunk/olive/class/agclr/Mono/NativeMethods.cs       2007-06-28 18:58:42 UTC 
(rev 80992)
+++ trunk/olive/class/agclr/Mono/NativeMethods.cs       2007-06-28 19:11:55 UTC 
(rev 80993)
@@ -1,594 +0,0 @@
-//
-// NativeMethods.cs
-//
-// Author:
-//   Miguel de Icaza ([EMAIL PROTECTED])
-//
-// Copyright 2007 Novell, Inc.
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-using System;
-using System.Windows;
-using System.Runtime.InteropServices;
-
-namespace Mono {
-
-       internal delegate IntPtr CreateCustomXamlElementCallback (string xmlns, 
string name);
-       internal delegate void SetCustomXamlAttributeCallback (IntPtr target, 
string name, string value);
-       internal delegate void XamlHookupEventCallback (IntPtr target, string 
name, string value);
-       internal delegate void UnmanagedEventHandler (IntPtr data);
-
-       internal static class NativeMethods {
-
-       
-               [DllImport("moon")]
-               internal extern static void runtime_init ();
-
-               [DllImport("moon")]
-               internal extern static void surface_register_events (
-                       IntPtr surface,
-                       CallbackMouseEvent motion,
-                       CallbackMouseEvent down,
-                       CallbackMouseEvent up,
-                       CallbackMouseEvent enter,
-                       PlainEvent got_focus,
-                       PlainEvent lost_focus,
-                       PlainEvent loaded,
-                       PlainEvent mouse_leave,
-                       PlainEvent surface_resized,
-                       KeyboardEvent keydown,
-                       KeyboardEvent keyup);
-       
-#region Base
-               [DllImport("moon")]
-               internal extern static void base_ref (IntPtr ptr);
-
-               [DllImport("moon")]
-               internal extern static void base_unref (IntPtr ptr);
-#endregion
-
-               [DllImport("moon")]
-               internal extern static bool type_get_value_type (Kind type);
-               
-               [DllImport("moon")]
-               internal extern static IntPtr dependency_property_lookup (Kind 
type, string name);
-
-               [DllImport("moon")]
-               internal extern static Kind dependency_property_get_value_type 
(IntPtr obj);
-               
-               [DllImport("moon")]
-               internal extern static bool dependency_property_is_nullable 
(IntPtr obj);
-               
-               [DllImport("moon", EntryPoint="dependency_property_get_name")]
-               internal extern static IntPtr _dependency_property_get_name 
(IntPtr obj);
-
-               internal static string dependency_property_get_name (IntPtr obj)
-               {
-                       IntPtr p = _dependency_property_get_name (obj);
-                       if (p == IntPtr.Zero)
-                               return null;
-                       
-                       return Marshal.PtrToStringAnsi (p);
-               }
-               
-               [DllImport("moon")]
-               internal extern static IntPtr dependency_object_get_value 
(IntPtr obj, IntPtr property);
-               
-               [DllImport("moon")]
-               internal extern static IntPtr 
dependency_object_get_value_no_default (IntPtr obj, IntPtr property);
-               
-               [DllImport("moon")]
-               internal extern static IntPtr dependency_object_set_value 
(IntPtr obj, IntPtr property, ref Value val);
-
-               [DllImport("moon")]
-               internal extern static IntPtr dependency_object_set_value 
(IntPtr obj, IntPtr property, IntPtr zero);
-
-               [DllImport("moon")]
-               internal extern static IntPtr dependency_object_find_name 
(IntPtr obj, string name, out Kind kind);
-
-               [DllImport("moon", EntryPoint="dependency_object_get_name")]
-               internal extern static IntPtr _dependency_object_get_name 
(IntPtr obj);
-
-               internal static string dependency_object_get_name (IntPtr obj)
-               {
-                       IntPtr p = _dependency_object_get_name (obj);
-                       if (p == IntPtr.Zero)
-                               return null;
-                       
-                       return Marshal.PtrToStringAnsi (p);
-               }
-               
-               [DllImport("moon")]
-               internal extern static Kind dependency_object_get_object_type 
(IntPtr obj);
-               
-               [DllImport("moon")]
-               internal extern static IntPtr xaml_create_from_str (string 
xaml, bool create_namescope,
-                               Mono.CreateCustomXamlElementCallback ccecb,
-                               Mono.SetCustomXamlAttributeCallback scacb,
-                               Mono.XamlHookupEventCallback hue,
-                               out Kind kind);
-
-               [DllImport("moon")]
-               internal extern static void value_free_value (ref Value val);
-               
-#region UIElements
-               [DllImport("moon")]
-               internal extern static void uielement_transform_point (IntPtr 
item, ref double x, ref double y);
-#endregion
-
-
-#region Panel
-               [DllImport("moon")]
-               internal extern static IntPtr panel_new ();
-#endregion
-
-#region Controls
-               [DllImport("moon")]
-               internal extern static IntPtr control_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr image_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr media_base_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr text_block_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr run_new ();
-#endregion
-
-#region Documents
-               [DllImport ("moon")]
-               internal extern static IntPtr glyphs_new ();
-#endregion
-               
-#region Collections
-               [DllImport("moon")]
-               internal extern static void collection_add (IntPtr collection, 
IntPtr value);
-
-               [DllImport("moon")]
-               internal extern static bool collection_remove (IntPtr 
collection, IntPtr value);
-
-               [DllImport("moon")]
-               internal extern static void collection_insert (IntPtr 
collection, int index, IntPtr value);
-
-               [DllImport("moon")]
-               internal extern static void collection_clear (IntPtr 
collection);
-               
-               [DllImport("moon")]
-               internal extern static int collection_count (IntPtr collection);
-               
-               [DllImport("moon")]
-               internal extern static IntPtr collection_get_value_at (IntPtr 
collection, int index);
-               
-               [DllImport("moon")]
-               internal extern static IntPtr collection_set_value_at (IntPtr 
collection, int index, IntPtr value);
-
-               [DllImport("moon")]
-               internal extern static int collection_get_index_of (IntPtr 
collection, IntPtr obj);
-               
-               [DllImport("moon")]
-               internal extern static IntPtr collection_get_iterator (IntPtr 
collection);
-
-               [DllImport("moon")]
-               internal extern static Kind collection_get_element_type (IntPtr 
collection);
-               
-               [DllImport("moon")]
-               internal extern static bool collection_iterator_move_next 
(IntPtr iterator);
-
-               [DllImport("moon")]
-               internal extern static void collection_iterator_reset (IntPtr 
iterator);
-
-               [DllImport("moon")]
-               internal extern static IntPtr collection_iterator_get_current 
(IntPtr iterator);
-
-               [DllImport("moon")]
-               internal extern static void collection_iterator_destroy (IntPtr 
iterator);
-               
-               [DllImport("moon")]
-               internal extern static IntPtr resource_collection_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr trigger_collection_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr gradient_stop_collection_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr media_attribute_collection_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr path_figure_collection_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr path_segment_collection_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr collection_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr visual_collection_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr geometry_collection_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr transform_collection_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr timeline_collection_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr inlines_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr key_frame_collection_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr timeline_marker_collection_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr stylus_point_collection_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr stroke_collection_new ();
-#endregion
-               
-#region MediaElement
-               [DllImport("moon")]
-               internal extern static IntPtr media_element_stop (IntPtr 
native);
-               
-               [DllImport("moon")]
-               internal extern static IntPtr media_element_play (IntPtr 
native);
-               
-               [DllImport("moon")]
-               internal extern static IntPtr media_element_pause (IntPtr 
native);
-               
-               [DllImport("moon")]
-               internal extern static IntPtr media_element_setsource (IntPtr 
native, IntPtr downloader, string PartName);              
-#endregion
-               
-#region Constructors
-               [DllImport("moon")]
-               internal extern static IntPtr ink_presenter_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr media_element_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr stroke_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr drawing_attributes_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr stylus_info_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr stylus_point_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr timeline_marker_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr line_break_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr spline_point_key_frame_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr spline_color_key_frame_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr linear_double_key_frame_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr linear_point_key_frame_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr linear_color_key_frame_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr discrete_double_key_frame_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr discrete_point_key_frame_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr discrete_color_key_frame_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr 
color_animation_using_key_frames_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr point_key_frame_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr double_key_frame_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr color_key_frame_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr key_frame_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr spline_double_key_frame_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr key_spline_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr rectangle_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr framework_element_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr visual_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr path_segment_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr geometry_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr timeline_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr timeline_group_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr parallel_timeline_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr shape_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr uielement_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr solid_color_brush_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr radial_gradient_brush_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr brush_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr gradient_brush_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr gradient_stop_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr image_brush_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr linear_gradient_brush_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr media_attribute_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr skew_transform_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr tile_brush_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr transform_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr video_brush_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr canvas_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr geometry_group_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr ellipse_geometry_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr line_geometry_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr path_geometry_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr rectangle_geometry_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr path_figure_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr arc_segment_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr bezier_segment_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr line_segment_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr poly_bezier_segment_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr poly_line_segment_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr poly_quadratic_bezier_segment_new 
();
-
-               [DllImport("moon")]
-               internal extern static IntPtr quadratic_bezier_segment_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr ellipse_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr line_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr polygon_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr polyline_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr path_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr rotate_transform_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr translate_transform_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr scale_transform_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr matrix_transform_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr transform_group_new ();
-               
-               [DllImport("moon")]
-               internal extern static IntPtr downloader_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr storyboard_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr beginstoryboard_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr animation_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr coloranimation_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr trigger_action_collection_new ();
-
-
-#endregion
-
-#region Storyboard
-               [DllImport("moon")]
-               internal extern static IntPtr storyboard_begin (IntPtr native);
-               
-               [DllImport("moon")]
-               internal extern static IntPtr storyboard_pause (IntPtr native);
-               
-               [DllImport("moon")]
-               internal extern static IntPtr storyboard_resume (IntPtr native);
-               
-               [DllImport("moon")]
-               internal extern static IntPtr storyboard_seek (IntPtr native, 
long timespan);
-               
-               [DllImport("moon")]
-               internal extern static IntPtr storyboard_stop (IntPtr native);
-               
-               [DllImport("moon")]
-               internal extern static IntPtr double_animation_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr 
double_animation_using_key_frames_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr color_animation_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr event_trigger_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr point_animation_new ();
-
-               [DllImport("moon")]
-               internal extern static IntPtr begin_storyboard_new ();
-#endregion
-               
-#region APIs that we do not have a Managed class implemented yet.
-
-               [DllImport("moon")]
-               internal extern static IntPtr 
point_animation_using_key_frames_new ();
-
-#endregion
-
-#region Downloader
-               [DllImport("moon")]
-               internal extern static void downloader_abort (IntPtr handle);
-               
-               [DllImport("moon")]
-               internal extern static IntPtr downloader_get_response_text 
(IntPtr handle, string partname, out uint size);
-
-               [DllImport("moon")]
-               internal extern static void downloader_open (IntPtr handle, 
string verb, string uri, bool async);
-
-               [DllImport("moon")]
-               internal extern static void downloader_send (IntPtr handle);
-
-               internal delegate void UpdateFunction (int kind);
-               [DllImport("moon")]
-               internal extern static void downloader_want_events (IntPtr 
handle, UpdateFunction func, IntPtr closure);
-#endregion
-               
-               [DllImport ("moon")]
-               internal extern static IntPtr surface_attach (IntPtr surface, 
IntPtr toplevel);
-
-               [DllImport ("moon")]
-               internal extern static void image_set_source (IntPtr image, 
IntPtr downloader, string PartName);
-
-               [DllImport ("moon")]
-               internal extern static void text_block_set_font_source (IntPtr 
textblock, IntPtr downloader);
-
-               [DllImport ("moon")]
-               internal extern static IntPtr control_initialize_from_xaml 
(IntPtr control, string xaml,
-                                                                           
Mono.CreateCustomXamlElementCallback ccecb,
-                                                                           
Mono.SetCustomXamlAttributeCallback scacb,
-                                                                           
Mono.XamlHookupEventCallback hue,
-                                                                           out 
Kind kind);
-
-
-#region EventObject
-               [DllImport("moon")]
-               internal extern static void dependency_object_add_event_handler 
(IntPtr handle, string eventName, UnmanagedEventHandler handler, IntPtr 
closure);
-
-               [DllImport("moon")]
-               internal extern static void 
dependency_object_remove_event_handler (IntPtr handle, string eventName, 
UnmanagedEventHandler handler, IntPtr closure);
-#endregion
-
-#region plugin
-               [DllImport("moonplugin")]
-               internal extern static int plugin_instance_get_actual_height 
(IntPtr plugin_handle);
-
-               [DllImport("moonplugin")]
-               internal extern static int plugin_instance_get_actual_width 
(IntPtr plugin_handle);
-               
-#endregion
-       }
-}

Deleted: trunk/olive/class/agclr/Mono/Value.cs
===================================================================
--- trunk/olive/class/agclr/Mono/Value.cs       2007-06-28 18:58:42 UTC (rev 
80992)
+++ trunk/olive/class/agclr/Mono/Value.cs       2007-06-28 19:11:55 UTC (rev 
80993)
@@ -1,101 +0,0 @@
-//
-// Value.cs: represents the unmanaged Value structure from runtime.cpp
-//
-// Author:
-//   Miguel de Icaza ([EMAIL PROTECTED])
-//
-// Copyright 2007 Novell, Inc.
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-using System;
-using System.Windows;
-using System.Runtime.InteropServices;
-
-namespace Mono {
-
-       public struct UnmanagedRepeatBehavior {
-               public int kind;
-               int padding;
-               public double count;
-               public long timespan;
-       }
-
-       public struct UnmanagedKeyTime {
-               public int kind;
-               int padding;
-               public double percent;
-               public long timespan;
-       }
-
-       public struct UnmanagedDuration {
-               public int kind;
-               int padding;
-               public long timespan;
-       }
-
-       public struct UnmanagedColor {
-               public double r;
-               public double g;
-               public double b;
-               public double a;
-       }
-
-       [StructLayout(LayoutKind.Explicit)]
-       public struct UnmanagedArray {
-               [FieldOffset(0)] public int count;
-               [FieldOffset(4)] public int refcount;
-               [FieldOffset(8)] public double first_d;
-               [FieldOffset(8)] public UnmanagedPoint first_pnt;
-       }
-
-       public struct UnmanagedPoint {
-               public double x;
-               public double y;
-       }
-
-       public struct UnmanagedRect {
-               public double left;
-               public double top;
-               public double width;
-               public double height;
-       }
-
-       [StructLayout(LayoutKind.Explicit)]
-       public struct ValUnion {
-               [FieldOffset(0)] public double d;
-               [FieldOffset(0)] public long i64;
-               [FieldOffset(0)] public ulong ui64;
-               [FieldOffset(0)] public int i32;
-               [FieldOffset(0)] public IntPtr p;
-       }
-
-       [StructLayout(LayoutKind.Explicit)]
-       public struct Value {
-               [FieldOffset (0)]
-               public Kind k;
-
-               [FieldOffset (4)]
-               int padding;
-
-               [FieldOffset (8)]
-               public ValUnion u;
-       }
-}

Modified: trunk/olive/class/agclr/agclr.dll.sources
===================================================================
--- trunk/olive/class/agclr/agclr.dll.sources   2007-06-28 18:58:42 UTC (rev 
80992)
+++ trunk/olive/class/agclr/agclr.dll.sources   2007-06-28 19:11:55 UTC (rev 
80993)
@@ -4,9 +4,6 @@
 ../../build/common/MonoTODOAttribute.cs
 Mono/Events.cs
 Mono/Hosting.cs
-Mono/Kind.cs
-Mono/NativeMethods.cs
-Mono/Value.cs
 System.Windows.Controls/InkPresenter.cs
 System.Windows.Controls/MediaElement.cs
 System.Windows.Ink/DrawingAttributes.cs

Added: trunk/olive/class/agmono/Assembly/AssemblyInfo.cs
===================================================================
--- trunk/olive/class/agmono/Assembly/AssemblyInfo.cs   2007-06-28 18:58:42 UTC 
(rev 80992)
+++ trunk/olive/class/agmono/Assembly/AssemblyInfo.cs   2007-06-28 19:11:55 UTC 
(rev 80993)
@@ -0,0 +1,21 @@
+//
+// AssemblyInfo.cs
+//
+// Author:
+//   Iain McCoy ([EMAIL PROTECTED])
+//   Andreas Nahr ([EMAIL PROTECTED])
+//
+// (C) 2003 Ximian, Inc.  http://www.ximian.com
+// (C) 2004 Novell (http://www.novell.com)
+//
+// this file based on mcs/class/Mono.Data.SqlClient/Assembly/AssemblyInfo.cs
+
+using System;
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyVersion (Consts.FxVersion)]
+
+[assembly: AssemblyDelaySign (true)]
+[assembly: AssemblyKeyFile ("../msfinal3.pub")]
+


Property changes on: trunk/olive/class/agmono/Assembly/AssemblyInfo.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/olive/class/agmono/Makefile
===================================================================
--- trunk/olive/class/agmono/Makefile   2007-06-28 18:58:42 UTC (rev 80992)
+++ trunk/olive/class/agmono/Makefile   2007-06-28 19:11:55 UTC (rev 80993)
@@ -0,0 +1,11 @@
+thisdir = class/agmono
+include ../../build/rules.make
+
+LIBRARY = agmono.dll
+
+LIB_MCS_FLAGS = -r:System -r:System.Xml -d:AGCLR -unsafe
+
+include ../../build/library.make
+
+check:
+       cd scripts && make check
\ No newline at end of file


Property changes on: trunk/olive/class/agmono/Makefile
___________________________________________________________________
Name: svn:eol-style
   + native

Copied: trunk/olive/class/agmono/Mono/Kind.cs (from rev 80988, 
trunk/olive/class/agclr/Mono/Kind.cs)

Copied: trunk/olive/class/agmono/Mono/NativeMethods.cs (from rev 80988, 
trunk/olive/class/agclr/Mono/NativeMethods.cs)
===================================================================
--- trunk/olive/class/agclr/Mono/NativeMethods.cs       2007-06-28 18:47:34 UTC 
(rev 80988)
+++ trunk/olive/class/agmono/Mono/NativeMethods.cs      2007-06-28 19:11:55 UTC 
(rev 80993)
@@ -0,0 +1,597 @@
+//
+// NativeMethods.cs
+//
+// Author:
+//   Miguel de Icaza ([EMAIL PROTECTED])
+//
+// Copyright 2007 Novell, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+using System;
+using System.Runtime.InteropServices;
+
+namespace Mono {
+
+       public delegate IntPtr CreateCustomXamlElementCallback (string xmlns, 
string name);
+       public delegate void SetCustomXamlAttributeCallback (IntPtr target, 
string name, string value);
+       public delegate void XamlHookupEventCallback (IntPtr target, string 
name, string value);
+       public delegate void UnmanagedEventHandler (IntPtr data);
+
+       public delegate void CallbackMouseEvent (IntPtr target, int state, 
double x, double y);
+       public delegate void PlainEvent (IntPtr target);
+       public delegate bool KeyboardEvent (IntPtr target, int state, int 
platformcode, int key);
+       
+       public static class NativeMethods {
+
+       
+               [DllImport("moon")]
+               public extern static void runtime_init ();
+
+               [DllImport("moon")]
+               public extern static void surface_register_events (
+                       IntPtr surface,
+                       CallbackMouseEvent motion,
+                       CallbackMouseEvent down,
+                       CallbackMouseEvent up,
+                       CallbackMouseEvent enter,
+                       PlainEvent got_focus,
+                       PlainEvent lost_focus,
+                       PlainEvent loaded,
+                       PlainEvent mouse_leave,
+                       PlainEvent surface_resized,
+                       KeyboardEvent keydown,
+                       KeyboardEvent keyup);
+       
+#region Base
+               [DllImport("moon")]
+               public extern static void base_ref (IntPtr ptr);
+
+               [DllImport("moon")]
+               public extern static void base_unref (IntPtr ptr);
+#endregion
+
+               [DllImport("moon")]
+               public extern static bool type_get_value_type (Kind type);
+               
+               [DllImport("moon")]
+               public extern static IntPtr dependency_property_lookup (Kind 
type, string name);
+
+               [DllImport("moon")]
+               public extern static Kind dependency_property_get_value_type 
(IntPtr obj);
+               
+               [DllImport("moon")]
+               public extern static bool dependency_property_is_nullable 
(IntPtr obj);
+               
+               [DllImport("moon", EntryPoint="dependency_property_get_name")]
+               public extern static IntPtr _dependency_property_get_name 
(IntPtr obj);
+
+               public static string dependency_property_get_name (IntPtr obj)
+               {
+                       IntPtr p = _dependency_property_get_name (obj);
+                       if (p == IntPtr.Zero)
+                               return null;
+                       
+                       return Marshal.PtrToStringAnsi (p);
+               }
+               
+               [DllImport("moon")]
+               public extern static IntPtr dependency_object_get_value (IntPtr 
obj, IntPtr property);
+               
+               [DllImport("moon")]
+               public extern static IntPtr 
dependency_object_get_value_no_default (IntPtr obj, IntPtr property);
+               
+               [DllImport("moon")]
+               public extern static IntPtr dependency_object_set_value (IntPtr 
obj, IntPtr property, ref Value val);
+
+               [DllImport("moon")]
+               public extern static IntPtr dependency_object_set_value (IntPtr 
obj, IntPtr property, IntPtr zero);
+
+               [DllImport("moon")]
+               public extern static IntPtr dependency_object_find_name (IntPtr 
obj, string name, out Kind kind);
+
+               [DllImport("moon", EntryPoint="dependency_object_get_name")]
+               public extern static IntPtr _dependency_object_get_name (IntPtr 
obj);
+
+               public static string dependency_object_get_name (IntPtr obj)
+               {
+                       IntPtr p = _dependency_object_get_name (obj);
+                       if (p == IntPtr.Zero)
+                               return null;
+                       
+                       return Marshal.PtrToStringAnsi (p);
+               }
+               
+               [DllImport("moon")]
+               public extern static Kind dependency_object_get_object_type 
(IntPtr obj);
+               
+               [DllImport("moon")]
+               public extern static IntPtr xaml_create_from_str (string xaml, 
bool create_namescope,
+                               Mono.CreateCustomXamlElementCallback ccecb,
+                               Mono.SetCustomXamlAttributeCallback scacb,
+                               Mono.XamlHookupEventCallback hue,
+                               out Kind kind);
+
+               [DllImport("moon")]
+               public extern static void value_free_value (ref Value val);
+               
+#region UIElements
+               [DllImport("moon")]
+               public extern static void uielement_transform_point (IntPtr 
item, ref double x, ref double y);
+#endregion
+
+
+#region Panel
+               [DllImport("moon")]
+               public extern static IntPtr panel_new ();
+#endregion
+
+#region Controls
+               [DllImport("moon")]
+               public extern static IntPtr control_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr image_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr media_base_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr text_block_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr run_new ();
+#endregion
+
+#region Documents
+               [DllImport ("moon")]
+               public extern static IntPtr glyphs_new ();
+#endregion
+               
+#region Collections
+               [DllImport("moon")]
+               public extern static void collection_add (IntPtr collection, 
IntPtr value);
+
+               [DllImport("moon")]
+               public extern static bool collection_remove (IntPtr collection, 
IntPtr value);
+
+               [DllImport("moon")]
+               public extern static void collection_insert (IntPtr collection, 
int index, IntPtr value);
+
+               [DllImport("moon")]
+               public extern static void collection_clear (IntPtr collection);
+               
+               [DllImport("moon")]
+               public extern static int collection_count (IntPtr collection);
+               
+               [DllImport("moon")]
+               public extern static IntPtr collection_get_value_at (IntPtr 
collection, int index);
+               
+               [DllImport("moon")]
+               public extern static IntPtr collection_set_value_at (IntPtr 
collection, int index, IntPtr value);
+
+               [DllImport("moon")]
+               public extern static int collection_get_index_of (IntPtr 
collection, IntPtr obj);
+               
+               [DllImport("moon")]
+               public extern static IntPtr collection_get_iterator (IntPtr 
collection);
+
+               [DllImport("moon")]
+               public extern static Kind collection_get_element_type (IntPtr 
collection);
+               
+               [DllImport("moon")]
+               public extern static bool collection_iterator_move_next (IntPtr 
iterator);
+
+               [DllImport("moon")]
+               public extern static void collection_iterator_reset (IntPtr 
iterator);
+
+               [DllImport("moon")]
+               public extern static IntPtr collection_iterator_get_current 
(IntPtr iterator);
+
+               [DllImport("moon")]
+               public extern static void collection_iterator_destroy (IntPtr 
iterator);
+               
+               [DllImport("moon")]
+               public extern static IntPtr resource_collection_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr trigger_collection_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr gradient_stop_collection_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr media_attribute_collection_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr path_figure_collection_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr path_segment_collection_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr collection_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr visual_collection_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr geometry_collection_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr transform_collection_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr timeline_collection_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr inlines_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr key_frame_collection_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr timeline_marker_collection_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr stylus_point_collection_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr stroke_collection_new ();
+#endregion
+               
+#region MediaElement
+               [DllImport("moon")]
+               public extern static IntPtr media_element_stop (IntPtr native);
+               
+               [DllImport("moon")]
+               public extern static IntPtr media_element_play (IntPtr native);
+               
+               [DllImport("moon")]
+               public extern static IntPtr media_element_pause (IntPtr native);
+               
+               [DllImport("moon")]
+               public extern static IntPtr media_element_setsource (IntPtr 
native, IntPtr downloader, string PartName);                
+#endregion
+               
+#region Constructors
+               [DllImport("moon")]
+               public extern static IntPtr ink_presenter_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr media_element_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr stroke_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr drawing_attributes_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr stylus_info_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr stylus_point_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr timeline_marker_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr line_break_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr spline_point_key_frame_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr spline_color_key_frame_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr linear_double_key_frame_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr linear_point_key_frame_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr linear_color_key_frame_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr discrete_double_key_frame_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr discrete_point_key_frame_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr discrete_color_key_frame_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr 
color_animation_using_key_frames_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr point_key_frame_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr double_key_frame_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr color_key_frame_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr key_frame_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr spline_double_key_frame_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr key_spline_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr rectangle_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr framework_element_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr visual_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr path_segment_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr geometry_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr timeline_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr timeline_group_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr parallel_timeline_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr shape_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr uielement_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr solid_color_brush_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr radial_gradient_brush_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr brush_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr gradient_brush_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr gradient_stop_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr image_brush_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr linear_gradient_brush_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr media_attribute_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr skew_transform_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr tile_brush_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr transform_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr video_brush_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr canvas_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr geometry_group_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr ellipse_geometry_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr line_geometry_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr path_geometry_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr rectangle_geometry_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr path_figure_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr arc_segment_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr bezier_segment_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr line_segment_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr poly_bezier_segment_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr poly_line_segment_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr poly_quadratic_bezier_segment_new 
();
+
+               [DllImport("moon")]
+               public extern static IntPtr quadratic_bezier_segment_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr ellipse_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr line_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr polygon_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr polyline_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr path_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr rotate_transform_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr translate_transform_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr scale_transform_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr matrix_transform_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr transform_group_new ();
+               
+               [DllImport("moon")]
+               public extern static IntPtr downloader_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr storyboard_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr beginstoryboard_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr animation_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr coloranimation_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr trigger_action_collection_new ();
+
+
+#endregion
+
+#region Storyboard
+               [DllImport("moon")]
+               public extern static IntPtr storyboard_begin (IntPtr native);
+               
+               [DllImport("moon")]
+               public extern static IntPtr storyboard_pause (IntPtr native);
+               
+               [DllImport("moon")]
+               public extern static IntPtr storyboard_resume (IntPtr native);
+               
+               [DllImport("moon")]
+               public extern static IntPtr storyboard_seek (IntPtr native, 
long timespan);
+               
+               [DllImport("moon")]
+               public extern static IntPtr storyboard_stop (IntPtr native);
+               
+               [DllImport("moon")]
+               public extern static IntPtr double_animation_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr 
double_animation_using_key_frames_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr color_animation_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr event_trigger_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr point_animation_new ();
+
+               [DllImport("moon")]
+               public extern static IntPtr begin_storyboard_new ();
+#endregion
+               
+#region APIs that we do not have a Managed class implemented yet.
+
+               [DllImport("moon")]
+               public extern static IntPtr 
point_animation_using_key_frames_new ();
+
+#endregion
+
+#region Downloader
+               [DllImport("moon")]
+               public extern static void downloader_abort (IntPtr handle);
+               
+               [DllImport("moon")]
+               public extern static IntPtr downloader_get_response_text 
(IntPtr handle, string partname, out uint size);
+
+               [DllImport("moon")]
+               public extern static void downloader_open (IntPtr handle, 
string verb, string uri, bool async);
+
+               [DllImport("moon")]
+               public extern static void downloader_send (IntPtr handle);
+
+               public delegate void UpdateFunction (int kind);
+               [DllImport("moon")]
+               public extern static void downloader_want_events (IntPtr 
handle, UpdateFunction func, IntPtr closure);
+#endregion
+               
+               [DllImport ("moon")]
+               public extern static IntPtr surface_attach (IntPtr surface, 
IntPtr toplevel);
+
+               [DllImport ("moon")]
+               public extern static void image_set_source (IntPtr image, 
IntPtr downloader, string PartName);
+
+               [DllImport ("moon")]
+               public extern static void text_block_set_font_source (IntPtr 
textblock, IntPtr downloader);
+
+               [DllImport ("moon")]
+               public extern static IntPtr control_initialize_from_xaml 
(IntPtr control, string xaml,
+                                                                           
Mono.CreateCustomXamlElementCallback ccecb,
+                                                                           
Mono.SetCustomXamlAttributeCallback scacb,
+                                                                           
Mono.XamlHookupEventCallback hue,
+                                                                           out 
Kind kind);
+
+
+#region EventObject
+               [DllImport("moon")]
+               public extern static void dependency_object_add_event_handler 
(IntPtr handle, string eventName, UnmanagedEventHandler handler, IntPtr 
closure);
+
+               [DllImport("moon")]
+               public extern static void 
dependency_object_remove_event_handler (IntPtr handle, string eventName, 
UnmanagedEventHandler handler, IntPtr closure);
+#endregion
+
+#region plugin
+               [DllImport("moonplugin")]
+               public extern static int plugin_instance_get_actual_height 
(IntPtr plugin_handle);
+
+               [DllImport("moonplugin")]
+               public extern static int plugin_instance_get_actual_width 
(IntPtr plugin_handle);
+               
+#endregion
+       }
+}

Copied: trunk/olive/class/agmono/Mono/Value.cs (from rev 80988, 
trunk/olive/class/agclr/Mono/Value.cs)
===================================================================
--- trunk/olive/class/agclr/Mono/Value.cs       2007-06-28 18:47:34 UTC (rev 
80988)
+++ trunk/olive/class/agmono/Mono/Value.cs      2007-06-28 19:11:55 UTC (rev 
80993)
@@ -0,0 +1,100 @@
+//
+// Value.cs: represents the unmanaged Value structure from runtime.cpp
+//
+// Author:
+//   Miguel de Icaza ([EMAIL PROTECTED])
+//
+// Copyright 2007 Novell, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+using System;
+using System.Runtime.InteropServices;
+
+namespace Mono {
+
+       public struct UnmanagedRepeatBehavior {
+               public int kind;
+               int padding;
+               public double count;
+               public long timespan;
+       }
+
+       public struct UnmanagedKeyTime {
+               public int kind;
+               int padding;
+               public double percent;
+               public long timespan;
+       }
+
+       public struct UnmanagedDuration {
+               public int kind;
+               int padding;
+               public long timespan;
+       }
+
+       public struct UnmanagedColor {
+               public double r;
+               public double g;
+               public double b;
+               public double a;
+       }
+
+       [StructLayout(LayoutKind.Explicit)]
+       public struct UnmanagedArray {
+               [FieldOffset(0)] public int count;
+               [FieldOffset(4)] public int refcount;
+               [FieldOffset(8)] public double first_d;
+               [FieldOffset(8)] public UnmanagedPoint first_pnt;
+       }
+
+       public struct UnmanagedPoint {
+               public double x;
+               public double y;
+       }
+
+       public struct UnmanagedRect {
+               public double left;
+               public double top;
+               public double width;
+               public double height;
+       }
+
+       [StructLayout(LayoutKind.Explicit)]
+       public struct ValUnion {
+               [FieldOffset(0)] public double d;
+               [FieldOffset(0)] public long i64;
+               [FieldOffset(0)] public ulong ui64;
+               [FieldOffset(0)] public int i32;
+               [FieldOffset(0)] public IntPtr p;
+       }
+
+       [StructLayout(LayoutKind.Explicit)]
+       public struct Value {
+               [FieldOffset (0)]
+               public Kind k;
+
+               [FieldOffset (4)]
+               int padding;
+
+               [FieldOffset (8)]
+               public ValUnion u;
+       }
+}

Added: trunk/olive/class/agmono/agmono.dll.sources
===================================================================
--- trunk/olive/class/agmono/agmono.dll.sources 2007-06-28 18:58:42 UTC (rev 
80992)
+++ trunk/olive/class/agmono/agmono.dll.sources 2007-06-28 19:11:55 UTC (rev 
80993)
@@ -0,0 +1,6 @@
+../../build/common/Consts.cs
+../../build/common/MonoTODOAttribute.cs
+Assembly/AssemblyInfo.cs
+Mono/Kind.cs
+Mono/NativeMethods.cs
+Mono/Value.cs

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

Reply via email to