Author: miguel
Date: 2007-06-09 12:27:53 -0400 (Sat, 09 Jun 2007)
New Revision: 79061

Modified:
   trunk/olive/class/agclr/ChangeLog
   trunk/olive/class/agclr/Mono/NativeMethods.cs
   trunk/olive/class/agclr/System.Windows.Media/ArcSegment.cs
   trunk/olive/class/agclr/System.Windows.Media/BezierSegment.cs
   trunk/olive/class/agclr/System.Windows.Media/EllipseGeometry.cs
   trunk/olive/class/agclr/System.Windows.Media/GeometryGroup.cs
   trunk/olive/class/agclr/System.Windows.Media/LineGeometry.cs
   trunk/olive/class/agclr/System.Windows.Media/LineSegment.cs
   trunk/olive/class/agclr/System.Windows.Media/MatrixTransform.cs
   trunk/olive/class/agclr/System.Windows.Media/PathFigure.cs
   trunk/olive/class/agclr/System.Windows.Media/PathGeometry.cs
   trunk/olive/class/agclr/System.Windows.Media/PolyBezierSegment.cs
   trunk/olive/class/agclr/System.Windows.Media/PolyLineSegment.cs
   trunk/olive/class/agclr/System.Windows.Media/PolyQuadraticBezierSegment.cs
   trunk/olive/class/agclr/System.Windows.Media/RectangleGeometry.cs
   trunk/olive/class/agclr/System.Windows.Media/RotateTransform.cs
   trunk/olive/class/agclr/System.Windows.Media/ScaleTransform.cs
   trunk/olive/class/agclr/System.Windows.Media/TransformGroup.cs
   trunk/olive/class/agclr/System.Windows.Media/TranslateTransform.cs
   trunk/olive/class/agclr/System.Windows.Shapes/Ellipse.cs
   trunk/olive/class/agclr/System.Windows.Shapes/Line.cs
   trunk/olive/class/agclr/System.Windows.Shapes/Path.cs
   trunk/olive/class/agclr/System.Windows.Shapes/Polygon.cs
Log:
2007-06-09  Miguel de Icaza  <[EMAIL PROTECTED]>

        * Everywhere: bind to our existing C++ methods.

Modified: trunk/olive/class/agclr/ChangeLog
===================================================================
--- trunk/olive/class/agclr/ChangeLog   2007-06-09 16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/ChangeLog   2007-06-09 16:27:53 UTC (rev 79061)
@@ -1,3 +1,7 @@
+2007-06-09  Miguel de Icaza  <[EMAIL PROTECTED]>
+
+       * Everywhere: bind to our existing C++ methods.
+
 2007-06-08  Miguel de Icaza  <[EMAIL PROTECTED]>
 
        * Internal.cs: Derive from DependencyObject, add Add method. 

Modified: trunk/olive/class/agclr/Mono/NativeMethods.cs
===================================================================
--- trunk/olive/class/agclr/Mono/NativeMethods.cs       2007-06-09 16:10:27 UTC 
(rev 79060)
+++ trunk/olive/class/agclr/Mono/NativeMethods.cs       2007-06-09 16:27:53 UTC 
(rev 79061)
@@ -95,6 +95,100 @@
 
                [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_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 ();
+
 #endregion
+               
+#region APIs that we do not have a Managed class implemented yet.
+               [DllImport("moon")]
+               internal extern static IntPtr event_trigger_new ();
+
+               [DllImport("moon")]
+               internal extern static IntPtr double_animation_new ();
+
+               [DllImport("moon")]
+               internal extern static IntPtr color_animation_new ();
+
+               [DllImport("moon")]
+               internal extern static IntPtr point_animation_new ();
+
+               [DllImport("moon")]
+               internal extern static IntPtr 
point_animation_using_key_frames_new ();
+
+               [DllImport("moon")]
+               internal extern static IntPtr storyboard_new ();
+
+               [DllImport("moon")]
+               internal extern static IntPtr begin_storyboard_new ();
+
+#endregion
        }
 }

Modified: trunk/olive/class/agclr/System.Windows.Media/ArcSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/ArcSegment.cs  2007-06-09 
16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/System.Windows.Media/ArcSegment.cs  2007-06-09 
16:27:53 UTC (rev 79061)
@@ -42,6 +42,7 @@
                
                public ArcSegment ()
                {
+                       native = NativeMethods.arc_segment_new ();
                }
 
                public bool IsLargeArc {

Modified: trunk/olive/class/agclr/System.Windows.Media/BezierSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/BezierSegment.cs       
2007-06-09 16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/System.Windows.Media/BezierSegment.cs       
2007-06-09 16:27:53 UTC (rev 79061)
@@ -38,6 +38,7 @@
                
                public BezierSegment ()
                {
+                       native = NativeMethods.bezier_segment_new ();
                }
                
                public Point Point1 {

Modified: trunk/olive/class/agclr/System.Windows.Media/EllipseGeometry.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/EllipseGeometry.cs     
2007-06-09 16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/System.Windows.Media/EllipseGeometry.cs     
2007-06-09 16:27:53 UTC (rev 79061)
@@ -36,6 +36,7 @@
 
                public EllipseGeometry ()
                {
+                       native = NativeMethods.ellipse_geometry_new ();
                }
 
                public Point Center {

Modified: trunk/olive/class/agclr/System.Windows.Media/GeometryGroup.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/GeometryGroup.cs       
2007-06-09 16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/System.Windows.Media/GeometryGroup.cs       
2007-06-09 16:27:53 UTC (rev 79061)
@@ -35,6 +35,7 @@
 
                public GeometryGroup ()
                {
+                       native = NativeMethods.geometry_group_new ();
                }
 
                public GeometryCollection Children {

Modified: trunk/olive/class/agclr/System.Windows.Media/LineGeometry.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/LineGeometry.cs        
2007-06-09 16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/System.Windows.Media/LineGeometry.cs        
2007-06-09 16:27:53 UTC (rev 79061)
@@ -35,6 +35,7 @@
 
                public LineGeometry ()
                {
+                       native = Mono.NativeMethods.line_geometry_new ();
                }
 
                public Point EndPoint {

Modified: trunk/olive/class/agclr/System.Windows.Media/LineSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/LineSegment.cs 2007-06-09 
16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/System.Windows.Media/LineSegment.cs 2007-06-09 
16:27:53 UTC (rev 79061)
@@ -34,6 +34,11 @@
                        PointProperty = DependencyProperty.Register (
                                "Point", typeof (Point), typeof (LineSegment));
                }
+
+               public LineSegment ()
+               {
+                       native = Mono.NativeMethods.line_segment_new ();
+               }
                
                public Point Point {
                        get {

Modified: trunk/olive/class/agclr/System.Windows.Media/MatrixTransform.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/MatrixTransform.cs     
2007-06-09 16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/System.Windows.Media/MatrixTransform.cs     
2007-06-09 16:27:53 UTC (rev 79061)
@@ -34,6 +34,7 @@
 
                public MatrixTransform ()
                {
+                       native = Mono.NativeMethods.matrix_transform_new ();
                }
 
                public Matrix X {

Modified: trunk/olive/class/agclr/System.Windows.Media/PathFigure.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PathFigure.cs  2007-06-09 
16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/System.Windows.Media/PathFigure.cs  2007-06-09 
16:27:53 UTC (rev 79061)
@@ -25,7 +25,7 @@
 // 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 Mono;
 namespace System.Windows.Media {
 
        public class PathFigure : DependencyObject {
@@ -37,6 +37,7 @@
 
                public PathFigure ()
                {
+                       native = NativeMethods.path_figure_new ();
                }
 
                public bool IsClosed {

Modified: trunk/olive/class/agclr/System.Windows.Media/PathGeometry.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PathGeometry.cs        
2007-06-09 16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/System.Windows.Media/PathGeometry.cs        
2007-06-09 16:27:53 UTC (rev 79061)
@@ -34,6 +34,7 @@
 
                public PathGeometry ()
                {
+                       native = Mono.NativeMethods.path_geometry_new ();
                }
 
                public PathFigureCollection Figures {

Modified: trunk/olive/class/agclr/System.Windows.Media/PolyBezierSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PolyBezierSegment.cs   
2007-06-09 16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/System.Windows.Media/PolyBezierSegment.cs   
2007-06-09 16:27:53 UTC (rev 79061)
@@ -25,7 +25,7 @@
 // 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 Mono;
 namespace System.Windows.Media {
        public sealed class PolyBezierSegment : PathSegment {
                
@@ -34,6 +34,11 @@
                        PointsProperty = DependencyProperty.Register (
                                "Points", typeof (Point []), typeof 
(PolyBezierSegment));
                }
+
+               public PolyBezierSegment ()
+               {
+                       native = NativeMethods.poly_bezier_segment_new ();
+               }
                
                public Point [] Points {
                        set {

Modified: trunk/olive/class/agclr/System.Windows.Media/PolyLineSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PolyLineSegment.cs     
2007-06-09 16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/System.Windows.Media/PolyLineSegment.cs     
2007-06-09 16:27:53 UTC (rev 79061)
@@ -25,6 +25,7 @@
 // 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 Mono;
 
 namespace System.Windows.Media {
        public sealed class PolyLineSegment : PathSegment {
@@ -34,6 +35,11 @@
                        PointsProperty = DependencyProperty.Register (
                                "Points", typeof (Point []), typeof 
(PolyLineSegment));
                }
+
+               public PolyLineSegment ()
+               {
+                       native = NativeMethods.poly_line_segment_new ();
+               }
                
                public Point [] Points {
                        set {

Modified: 
trunk/olive/class/agclr/System.Windows.Media/PolyQuadraticBezierSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PolyQuadraticBezierSegment.cs  
2007-06-09 16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/System.Windows.Media/PolyQuadraticBezierSegment.cs  
2007-06-09 16:27:53 UTC (rev 79061)
@@ -34,6 +34,11 @@
                        PointsProperty = DependencyProperty.Register (
                                "Points", typeof (Point []), typeof 
(PolyQuadraticBezierSegment));
                }
+
+               public PolyQuadraticBezierSegment ()
+               {
+                       native = Mono.NativeMethods.poly_quadratic_segment_new 
();
+               }
                
                public Point [] Points {
                        set {

Modified: trunk/olive/class/agclr/System.Windows.Media/RectangleGeometry.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/RectangleGeometry.cs   
2007-06-09 16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/System.Windows.Media/RectangleGeometry.cs   
2007-06-09 16:27:53 UTC (rev 79061)
@@ -36,6 +36,7 @@
 
                public RectangleGeometry ()
                {
+                       native = Mono.NativeMethods.rectangle_geometry_new ();
                }
 
                public double RadiusX {

Modified: trunk/olive/class/agclr/System.Windows.Media/RotateTransform.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/RotateTransform.cs     
2007-06-09 16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/System.Windows.Media/RotateTransform.cs     
2007-06-09 16:27:53 UTC (rev 79061)
@@ -37,6 +37,7 @@
 
                public RotateTransform ()
                {
+                       native = Mono.NativeMethods.rotate_transform_new ();
                }
 
 

Modified: trunk/olive/class/agclr/System.Windows.Media/ScaleTransform.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/ScaleTransform.cs      
2007-06-09 16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/System.Windows.Media/ScaleTransform.cs      
2007-06-09 16:27:53 UTC (rev 79061)
@@ -38,6 +38,7 @@
 
                public ScaleTransform ()
                {
+                       native = Mono.NativeMethods.scale_transform_new ();
                }
 
 

Modified: trunk/olive/class/agclr/System.Windows.Media/TransformGroup.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/TransformGroup.cs      
2007-06-09 16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/System.Windows.Media/TransformGroup.cs      
2007-06-09 16:27:53 UTC (rev 79061)
@@ -27,11 +27,12 @@
 //
 
 namespace System.Windows.Media {
-       public class TransformGroup {
+       public class TransformGroup : Transform {
                public static readonly DependencyProperty ChildrenProperty;
                
                public TransformGroup ()
                {
+                       native = Mono.NativeMethods.transform_group_new ();
                }
 
                public TransformCollection Children {

Modified: trunk/olive/class/agclr/System.Windows.Media/TranslateTransform.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/TranslateTransform.cs  
2007-06-09 16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/System.Windows.Media/TranslateTransform.cs  
2007-06-09 16:27:53 UTC (rev 79061)
@@ -35,6 +35,7 @@
 
                public TranslateTransform ()
                {
+                       native = Mono.NativeMethods.translate_transform_new ();
                }
 
                public double X {

Modified: trunk/olive/class/agclr/System.Windows.Shapes/Ellipse.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Shapes/Ellipse.cs    2007-06-09 
16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/System.Windows.Shapes/Ellipse.cs    2007-06-09 
16:27:53 UTC (rev 79061)
@@ -32,6 +32,7 @@
 
                public Ellipse ()
                {
+                       native = Mono.NativeMethods.ellipse_new ();
                }
        }
 }

Modified: trunk/olive/class/agclr/System.Windows.Shapes/Line.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Shapes/Line.cs       2007-06-09 
16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/System.Windows.Shapes/Line.cs       2007-06-09 
16:27:53 UTC (rev 79061)
@@ -37,6 +37,7 @@
 
                public Line ()
                {
+                       native = Mono.NativeMethods.line_new ();
                }
 
                public double X1 {

Modified: trunk/olive/class/agclr/System.Windows.Shapes/Path.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Shapes/Path.cs       2007-06-09 
16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/System.Windows.Shapes/Path.cs       2007-06-09 
16:27:53 UTC (rev 79061)
@@ -36,6 +36,7 @@
                
                public Path ()
                {
+                       native = Mono.NativeMethods.path_new ();
                }
 
                public Geometry RadiusX {

Modified: trunk/olive/class/agclr/System.Windows.Shapes/Polygon.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Shapes/Polygon.cs    2007-06-09 
16:10:27 UTC (rev 79060)
+++ trunk/olive/class/agclr/System.Windows.Shapes/Polygon.cs    2007-06-09 
16:27:53 UTC (rev 79061)
@@ -27,6 +27,7 @@
 //
 
 using System.Windows.Media;
+using Mono;
 
 namespace System.Windows.Shapes {
 
@@ -37,6 +38,7 @@
 
                public Polygon ()
                {
+                       native = NativeMethods.polygon_new();
                }
 
                public FillRule FillRule {

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

Reply via email to