Author: rolf
Date: 2007-06-13 15:40:57 -0400 (Wed, 13 Jun 2007)
New Revision: 79491
Modified:
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/Brush.cs
trunk/olive/class/agclr/System.Windows.Media/ChangeLog
trunk/olive/class/agclr/System.Windows.Media/EllipseGeometry.cs
trunk/olive/class/agclr/System.Windows.Media/Geometry.cs
trunk/olive/class/agclr/System.Windows.Media/GeometryCollection.cs
trunk/olive/class/agclr/System.Windows.Media/GeometryGroup.cs
trunk/olive/class/agclr/System.Windows.Media/GradientBrush.cs
trunk/olive/class/agclr/System.Windows.Media/GradientStop.cs
trunk/olive/class/agclr/System.Windows.Media/GradientStopCollection.cs
trunk/olive/class/agclr/System.Windows.Media/ImageBrush.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/LinearGradientBrush.cs
trunk/olive/class/agclr/System.Windows.Media/MatrixTransform.cs
trunk/olive/class/agclr/System.Windows.Media/MediaAttribute.cs
trunk/olive/class/agclr/System.Windows.Media/MediaAttributeCollection.cs
trunk/olive/class/agclr/System.Windows.Media/PathFigure.cs
trunk/olive/class/agclr/System.Windows.Media/PathFigureCollection.cs
trunk/olive/class/agclr/System.Windows.Media/PathGeometry.cs
trunk/olive/class/agclr/System.Windows.Media/PathSegment.cs
trunk/olive/class/agclr/System.Windows.Media/PathSegmentCollection.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/QuadraticBezierSegment.cs
trunk/olive/class/agclr/System.Windows.Media/RadialGradientBrush.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/SkewTransform.cs
trunk/olive/class/agclr/System.Windows.Media/SolidColorBrush.cs
trunk/olive/class/agclr/System.Windows.Media/TileBrush.cs
trunk/olive/class/agclr/System.Windows.Media/Transform.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.Media/VideoBrush.cs
trunk/olive/class/agclr/System.Windows.Media/Visual.cs
trunk/olive/class/agclr/System.Windows.Media/VisualCollection.cs
Log:
* RadialGradientBrush.cs, PolyLineSegment.cs,
GradientStopCollection.cs, VisualCollection.cs, Brush.cs,
TranslateTransform.cs, RotateTransform.cs, Geometry.cs,
PathSegmentCollection.cs, LinearGradientBrush.cs, PathFigure.cs,
MatrixTransform.cs, GradientBrush.cs, TileBrush.cs,
QuadraticBezierSegment.cs, BezierSegment.cs, GradientStop.cs,
Visual.cs, LineGeometry.cs, GeometryGroup.cs, EllipseGeometry.cs,
LineSegment.cs, Transform.cs, SolidColorBrush.cs, PathSegment.cs,
MediaAttributeCollection.cs, RectangleGeometry.cs,
ScaleTransform.cs, ImageBrush.cs, ArcSegment.cs, TransformGroup.cs,
MediaAttribute.cs, SkewTransform.cs, PolyQuadraticBezierSegment.cs,
PolyBezierSegment.cs, GeometryCollection.cs, PathGeometry.cs,
VideoBrush.cs, PathFigureCollection.cs: Second pass on
constructors.
Modified: trunk/olive/class/agclr/System.Windows.Media/ArcSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/ArcSegment.cs 2007-06-13
19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/ArcSegment.cs 2007-06-13
19:40:57 UTC (rev 79491)
@@ -40,9 +40,8 @@
}
- public ArcSegment ()
+ public ArcSegment () : base (NativeMethods.arc_segment_new ())
{
- 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-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/BezierSegment.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -36,9 +36,8 @@
Point3Property = DependencyProperty.Lookup
(Kind.BEZIERSEGMENT, "Point3", typeof (Point));
}
- public BezierSegment ()
+ public BezierSegment () : base
(NativeMethods.bezier_segment_new ())
{
- native = NativeMethods.bezier_segment_new ();
}
public Point Point1 {
Modified: trunk/olive/class/agclr/System.Windows.Media/Brush.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/Brush.cs 2007-06-13
19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/Brush.cs 2007-06-13
19:40:57 UTC (rev 79491)
@@ -40,11 +40,13 @@
RelativeTransformProperty = DependencyProperty.Lookup
(Kind.BRUSH, "RelativeTransform", typeof (TransformGroup));
}
- public Brush ()
+ public Brush () : base (NativeMethods.brush_new ())
{
- if (GetKind () == Kind.BRUSH)
- native = NativeMethods.brush_new ();
}
+
+ internal Brush (IntPtr raw) : base (raw)
+ {
+ }
public double Opacity {
get {
Modified: trunk/olive/class/agclr/System.Windows.Media/ChangeLog
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/ChangeLog 2007-06-13
19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/ChangeLog 2007-06-13
19:40:57 UTC (rev 79491)
@@ -1,5 +1,22 @@
2007-06-13 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+ * RadialGradientBrush.cs, PolyLineSegment.cs,
+ GradientStopCollection.cs, VisualCollection.cs, Brush.cs,
+ TranslateTransform.cs, RotateTransform.cs, Geometry.cs,
+ PathSegmentCollection.cs, LinearGradientBrush.cs, PathFigure.cs,
+ MatrixTransform.cs, GradientBrush.cs, TileBrush.cs,
+ QuadraticBezierSegment.cs, BezierSegment.cs, GradientStop.cs,
+ Visual.cs, LineGeometry.cs, GeometryGroup.cs, EllipseGeometry.cs,
+ LineSegment.cs, Transform.cs, SolidColorBrush.cs, PathSegment.cs,
+ MediaAttributeCollection.cs, RectangleGeometry.cs,
+ ScaleTransform.cs, ImageBrush.cs, ArcSegment.cs, TransformGroup.cs,
+ MediaAttribute.cs, SkewTransform.cs, PolyQuadraticBezierSegment.cs,
+ PolyBezierSegment.cs, GeometryCollection.cs, PathGeometry.cs,
+ VideoBrush.cs, PathFigureCollection.cs: Second pass on
+ constructors.
+
+2007-06-13 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+
* Brush.cs, GradientBrush.cs, Transform.cs: Fix constructor, don't
construct anything if we're not the class to construct.
Modified: trunk/olive/class/agclr/System.Windows.Media/EllipseGeometry.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/EllipseGeometry.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/EllipseGeometry.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -38,9 +38,8 @@
public static readonly DependencyProperty RadiusYProperty =
DependencyProperty.Lookup (Kind.ELLIPSEGEOMETRY,
"RadiusY", typeof (double));
- public EllipseGeometry ()
+ public EllipseGeometry () : base
(NativeMethods.ellipse_geometry_new ())
{
- native = NativeMethods.ellipse_geometry_new ();
}
public Point Center {
Modified: trunk/olive/class/agclr/System.Windows.Media/Geometry.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/Geometry.cs 2007-06-13
19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/Geometry.cs 2007-06-13
19:40:57 UTC (rev 79491)
@@ -37,7 +37,7 @@
TransformProperty = DependencyProperty.Lookup
(Kind.GEOMETRY, "Transform", typeof (TransformGroup));
}
- public Geometry ()
+ internal Geometry (IntPtr raw) : base (raw)
{
}
Modified: trunk/olive/class/agclr/System.Windows.Media/GeometryCollection.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/GeometryCollection.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/GeometryCollection.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -36,9 +36,8 @@
{
}
- public GeometryCollection ()
+ public GeometryCollection () : base
(NativeMethods.geometry_collection_new ())
{
- native = NativeMethods.geometry_collection_new ();
}
protected internal override Kind GetKind ()
Modified: trunk/olive/class/agclr/System.Windows.Media/GeometryGroup.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/GeometryGroup.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/GeometryGroup.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -34,14 +34,12 @@
public static readonly DependencyProperty ChildrenProperty =
DependencyProperty.Lookup (Kind.GEOMETRYGROUP,
"Children", typeof (GeometryCollection));
- public GeometryGroup ()
+ public GeometryGroup () : base
(NativeMethods.geometry_group_new ())
{
- native = NativeMethods.geometry_group_new ();
}
- internal GeometryGroup (IntPtr raw)
+ internal GeometryGroup (IntPtr raw) : base (raw)
{
- native = raw;
}
public GeometryCollection Children {
Modified: trunk/olive/class/agclr/System.Windows.Media/GradientBrush.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/GradientBrush.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/GradientBrush.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -41,11 +41,13 @@
DependencyProperty.Lookup (Kind.GRADIENTBRUSH,
"SpreadMethod", typeof (GradientSpreadMethod));
- public GradientBrush ()
+ public GradientBrush () : base
(NativeMethods.gradient_brush_new ())
{
- if (GetKind () == Kind.GRADIENTBRUSH)
- native = NativeMethods.gradient_brush_new ();
}
+
+ internal GradientBrush (IntPtr raw) : base (raw)
+ {
+ }
public ColorInterpolationMode ColorInterpolationMode {
Modified: trunk/olive/class/agclr/System.Windows.Media/GradientStop.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/GradientStop.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/GradientStop.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -36,9 +36,8 @@
DependencyProperty.Lookup (Kind.GRADIENTSTOP, "Offset",
typeof (double));
- public GradientStop ()
+ public GradientStop () : base (NativeMethods.gradient_stop_new
())
{
- native = NativeMethods.gradient_stop_new ();
}
Modified: trunk/olive/class/agclr/System.Windows.Media/GradientStopCollection.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/GradientStopCollection.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/GradientStopCollection.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -32,9 +32,8 @@
namespace System.Windows.Media {
public class GradientStopCollection : Collection<GradientStop> {
- public GradientStopCollection ()
+ public GradientStopCollection () : base
(NativeMethods.gradient_stop_collection_new ())
{
- native = NativeMethods.gradient_stop_collection_new ();
}
protected internal override Kind GetKind ()
Modified: trunk/olive/class/agclr/System.Windows.Media/ImageBrush.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/ImageBrush.cs 2007-06-13
19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/ImageBrush.cs 2007-06-13
19:40:57 UTC (rev 79491)
@@ -37,9 +37,8 @@
DependencyProperty.Lookup (Kind.IMAGEBRUSH,
"ImageSource", typeof (Uri));
- public ImageBrush ()
+ public ImageBrush () : base(NativeMethods.image_brush_new ())
{
- native = NativeMethods.image_brush_new ();
}
Modified: trunk/olive/class/agclr/System.Windows.Media/LineGeometry.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/LineGeometry.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/LineGeometry.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -36,9 +36,8 @@
public static readonly DependencyProperty StartPointProperty =
DependencyProperty.Lookup (Kind.LINEGEOMETRY,
"StartPoint", typeof (Point));
- public LineGeometry ()
+ public LineGeometry () : base
(Mono.NativeMethods.line_geometry_new ())
{
- 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-13
19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/LineSegment.cs 2007-06-13
19:40:57 UTC (rev 79491)
@@ -35,9 +35,8 @@
PointProperty = DependencyProperty.Lookup
(Kind.LINESEGMENT, "Point", typeof (Point));
}
- public LineSegment ()
+ public LineSegment () : base
(Mono.NativeMethods.line_segment_new ())
{
- native = Mono.NativeMethods.line_segment_new ();
}
public Point Point {
Modified: trunk/olive/class/agclr/System.Windows.Media/LinearGradientBrush.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/LinearGradientBrush.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/LinearGradientBrush.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -36,9 +36,8 @@
DependencyProperty.Lookup (Kind.LINEARGRADIENTBRUSH,
"EndPoint", typeof (Point));
- public LinearGradientBrush ()
+ public LinearGradientBrush () : base
(NativeMethods.linear_gradient_brush_new ())
{
- native = NativeMethods.linear_gradient_brush_new ();
}
Modified: trunk/olive/class/agclr/System.Windows.Media/MatrixTransform.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/MatrixTransform.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/MatrixTransform.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -33,9 +33,8 @@
public static readonly DependencyProperty MatrixProperty =
DependencyProperty.Lookup (Kind.MATRIXTRANSFORM,
"Matrix", typeof (Matrix));
- public MatrixTransform ()
+ public MatrixTransform () : base
(NativeMethods.matrix_transform_new ())
{
- native = Mono.NativeMethods.matrix_transform_new ();
}
internal MatrixTransform (IntPtr raw)
Modified: trunk/olive/class/agclr/System.Windows.Media/MediaAttribute.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/MediaAttribute.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/MediaAttribute.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -33,9 +33,8 @@
public static readonly DependencyProperty ValueProperty =
DependencyProperty.Lookup (Kind.MEDIAATTRIBUTE, "Value", typeof (string));
- public MediaAttribute ()
+ public MediaAttribute () : base
(NativeMethods.media_attribute_new ())
{
- native = NativeMethods.media_attribute_new ();
}
public string Value {
Modified:
trunk/olive/class/agclr/System.Windows.Media/MediaAttributeCollection.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/MediaAttributeCollection.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/MediaAttributeCollection.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -32,9 +32,8 @@
namespace System.Windows.Media {
public class MediaAttributeCollection : Collection<MediaAttribute> {
- public MediaAttributeCollection ()
+ public MediaAttributeCollection () : base
(NativeMethods.media_attribute_collection_new ())
{
- native = NativeMethods.media_attribute_collection_new
();
}
[MonoTODO]
Modified: trunk/olive/class/agclr/System.Windows.Media/PathFigure.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PathFigure.cs 2007-06-13
19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/PathFigure.cs 2007-06-13
19:40:57 UTC (rev 79491)
@@ -39,9 +39,8 @@
public static readonly DependencyProperty StartPointProperty =
DependencyProperty.Lookup (Kind.PATHFIGURE,
"StartPoint", typeof (Point));
- public PathFigure ()
+ public PathFigure () : base (NativeMethods.path_figure_new ())
{
- native = NativeMethods.path_figure_new ();
}
public bool IsClosed {
Modified: trunk/olive/class/agclr/System.Windows.Media/PathFigureCollection.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PathFigureCollection.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/PathFigureCollection.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -32,9 +32,8 @@
namespace System.Windows.Media {
public class PathFigureCollection : Collection<PathFigure> {
- public PathFigureCollection ()
+ public PathFigureCollection () : base
(NativeMethods.path_figure_collection_new ())
{
- native = NativeMethods.path_figure_collection_new ();
}
protected internal override Kind GetKind ()
Modified: trunk/olive/class/agclr/System.Windows.Media/PathGeometry.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PathGeometry.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/PathGeometry.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -33,9 +33,8 @@
public static readonly DependencyProperty FiguresProperty =
DependencyProperty.Lookup (Kind.PATHGEOMETRY,
"Figures", typeof (PathFigureCollection));
- public PathGeometry ()
+ public PathGeometry () : base (NativeMethods.path_geometry_new
())
{
- native = Mono.NativeMethods.path_geometry_new ();
}
public PathFigureCollection Figures {
Modified: trunk/olive/class/agclr/System.Windows.Media/PathSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PathSegment.cs 2007-06-13
19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/PathSegment.cs 2007-06-13
19:40:57 UTC (rev 79491)
@@ -30,7 +30,7 @@
namespace System.Windows.Media {
public abstract class PathSegment : DependencyObject {
- public PathSegment ()
+ public PathSegment (IntPtr raw) : base (raw)
{
}
Modified: trunk/olive/class/agclr/System.Windows.Media/PathSegmentCollection.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PathSegmentCollection.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/PathSegmentCollection.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -32,9 +32,8 @@
namespace System.Windows.Media {
public class PathSegmentCollection : Collection<PathSegment> {
- public PathSegmentCollection ()
+ public PathSegmentCollection () : base
(NativeMethods.path_segment_collection_new ())
{
- native = NativeMethods.path_segment_collection_new ();
}
protected internal override Kind GetKind ()
Modified: trunk/olive/class/agclr/System.Windows.Media/PolyBezierSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PolyBezierSegment.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/PolyBezierSegment.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -34,9 +34,8 @@
PointsProperty = DependencyProperty.Lookup
(Kind.POLYBEZIERSEGMENT, "Points", typeof (Point []));
}
- public PolyBezierSegment ()
+ public PolyBezierSegment () : base
(NativeMethods.poly_bezier_segment_new ())
{
- native = NativeMethods.poly_bezier_segment_new ();
}
public Point [] Points {
Modified: trunk/olive/class/agclr/System.Windows.Media/PolyLineSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PolyLineSegment.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/PolyLineSegment.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -35,9 +35,8 @@
PointsProperty = DependencyProperty.Lookup
(Kind.POLYLINESEGMENT, "Points", typeof (Point[]));
}
- public PolyLineSegment ()
+ public PolyLineSegment () : base
(NativeMethods.poly_line_segment_new ())
{
- native = NativeMethods.poly_line_segment_new ();
}
public Point [] Points {
Modified:
trunk/olive/class/agclr/System.Windows.Media/PolyQuadraticBezierSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/PolyQuadraticBezierSegment.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/PolyQuadraticBezierSegment.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -35,9 +35,8 @@
Kind.POLYQUADRATICBEZIERSEGMENT, "Points",
typeof (Point[]));
}
- public PolyQuadraticBezierSegment ()
+ public PolyQuadraticBezierSegment () : base
(NativeMethods.poly_quadratic_segment_new ())
{
- native = Mono.NativeMethods.poly_quadratic_segment_new
();
}
public Point [] Points {
Modified: trunk/olive/class/agclr/System.Windows.Media/QuadraticBezierSegment.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/QuadraticBezierSegment.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/QuadraticBezierSegment.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -35,9 +35,8 @@
public static readonly DependencyProperty Point2Property =
DependencyProperty.Lookup (Kind.QUADRATICBEZIERSEGMENT,
"Point2", typeof (Point));
- public QuadraticBezierSegment ()
+ public QuadraticBezierSegment () : base
(NativeMethods.quadratic_bezier_segment_new ())
{
- native = NativeMethods.quadratic_bezier_segment_new ();
}
public Point Point1 {
Modified: trunk/olive/class/agclr/System.Windows.Media/RadialGradientBrush.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/RadialGradientBrush.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/RadialGradientBrush.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -37,9 +37,8 @@
public static readonly DependencyProperty RadiusYProperty =
DependencyProperty.Lookup (Kind.RADIALGRADIENTBRUSH, "RadiusY", typeof
(double));
- public RadialGradientBrush ()
+ public RadialGradientBrush () : base
(NativeMethods.radial_gradient_brush_new ())
{
- native = NativeMethods.radial_gradient_brush_new ();
}
Modified: trunk/olive/class/agclr/System.Windows.Media/RectangleGeometry.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/RectangleGeometry.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/RectangleGeometry.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -35,9 +35,8 @@
public static readonly DependencyProperty RadiusYProperty =
DependencyProperty.Lookup (Kind.RECTANGLEGEOMETRY, "RadiusY", typeof (double));
public static readonly DependencyProperty RectProperty =
DependencyProperty.Lookup (Kind.RECTANGLEGEOMETRY, "Rect", typeof (Rect));
- public RectangleGeometry ()
+ public RectangleGeometry () : base
(NativeMethods.rectangle_geometry_new ())
{
- 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-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/RotateTransform.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -38,14 +38,12 @@
public static readonly DependencyProperty CenterYProperty =
DependencyProperty.Lookup (Kind.ROTATETRANSFORM,
"CenterY", typeof (double));
- public RotateTransform ()
+ public RotateTransform () : base
(NativeMethods.rotate_transform_new ())
{
- native = Mono.NativeMethods.rotate_transform_new ();
}
- internal RotateTransform (IntPtr raw)
+ internal RotateTransform (IntPtr raw) : base (raw)
{
- native = raw;
}
public double Angle {
Modified: trunk/olive/class/agclr/System.Windows.Media/ScaleTransform.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/ScaleTransform.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/ScaleTransform.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -39,9 +39,8 @@
public static readonly DependencyProperty ScaleYProperty =
DependencyProperty.Lookup (Kind.SCALETRANSFORM,
"ScaleY", typeof (double));
- public ScaleTransform ()
+ public ScaleTransform () : base
(NativeMethods.scale_transform_new ())
{
- native = Mono.NativeMethods.scale_transform_new ();
}
internal ScaleTransform (IntPtr raw)
Modified: trunk/olive/class/agclr/System.Windows.Media/SkewTransform.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/SkewTransform.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/SkewTransform.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -37,9 +37,8 @@
public static readonly DependencyProperty CenterYProperty =
DependencyProperty.Lookup (Kind.SKEWTRANSFORM, "CenterY", typeof (double));
- public SkewTransform ()
+ public SkewTransform () : base
(NativeMethods.skew_transform_new ())
{
- native = NativeMethods.skew_transform_new ();
}
Modified: trunk/olive/class/agclr/System.Windows.Media/SolidColorBrush.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/SolidColorBrush.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/SolidColorBrush.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -34,9 +34,8 @@
public static readonly DependencyProperty ColorProperty =
DependencyProperty.Lookup (Kind.SOLIDCOLORBRUSH,
"Color", typeof (Color));
- public SolidColorBrush ()
+ public SolidColorBrush () : base
(NativeMethods.solid_color_brush_new ())
{
- native = NativeMethods.solid_color_brush_new ();
}
public SolidColorBrush (Color c) : this ()
Modified: trunk/olive/class/agclr/System.Windows.Media/TileBrush.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/TileBrush.cs 2007-06-13
19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/TileBrush.cs 2007-06-13
19:40:57 UTC (rev 79491)
@@ -36,10 +36,13 @@
public static readonly DependencyProperty StretchProperty =
DependencyProperty.Lookup (Kind.TILEBRUSH, "Stretch", typeof (int));
- public TileBrush ()
+ public TileBrush () : base (NativeMethods.tile_brush_new ())
{
- native = NativeMethods.tile_brush_new ();
}
+
+ internal TileBrush (IntPtr raw) : base (raw)
+ {
+ }
public double AlignmentX {
Modified: trunk/olive/class/agclr/System.Windows.Media/Transform.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/Transform.cs 2007-06-13
19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/Transform.cs 2007-06-13
19:40:57 UTC (rev 79491)
@@ -29,11 +29,13 @@
namespace System.Windows.Media {
public class Transform : DependencyObject {
- public Transform ()
+ public Transform () : base (NativeMethods.transform_new ())
{
- if (GetKind () == Kind.TRANSFORM)
- native = NativeMethods.transform_new ();
}
+
+ internal Transform (IntPtr raw) : base (raw)
+ {
+ }
protected internal override Kind GetKind ()
{
Modified: trunk/olive/class/agclr/System.Windows.Media/TransformGroup.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/TransformGroup.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/TransformGroup.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -30,9 +30,8 @@
public class TransformGroup : Transform {
public static readonly DependencyProperty ChildrenProperty;
- public TransformGroup ()
+ public TransformGroup () : base
(NativeMethods.transform_group_new ())
{
- 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-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/TranslateTransform.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -36,9 +36,8 @@
public static readonly DependencyProperty YProperty =
DependencyProperty.Lookup (Kind.TRANSLATETRANSFORM,
"Y", typeof (double));
- public TranslateTransform ()
+ public TranslateTransform () : base
(NativeMethods.translate_transform_new ())
{
- native = Mono.NativeMethods.translate_transform_new ();
}
internal TranslateTransform (IntPtr raw)
Modified: trunk/olive/class/agclr/System.Windows.Media/VideoBrush.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/VideoBrush.cs 2007-06-13
19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/VideoBrush.cs 2007-06-13
19:40:57 UTC (rev 79491)
@@ -33,9 +33,8 @@
public static readonly DependencyProperty SourceNameProperty =
DependencyProperty.Lookup (Kind.VIDEOBRUSH,
"SourceName", typeof (string));
- public VideoBrush ()
+ public VideoBrush () : base (NativeMethods.video_brush_new ())
{
- native = NativeMethods.video_brush_new ();
}
public string SourceName {
Modified: trunk/olive/class/agclr/System.Windows.Media/Visual.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/Visual.cs 2007-06-13
19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/Visual.cs 2007-06-13
19:40:57 UTC (rev 79491)
@@ -30,7 +30,7 @@
namespace System.Windows.Media {
public abstract class Visual : DependencyObject {
- public Visual ()
+ internal Visual (IntPtr raw) : base (raw)
{
}
Modified: trunk/olive/class/agclr/System.Windows.Media/VisualCollection.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/VisualCollection.cs
2007-06-13 19:40:44 UTC (rev 79490)
+++ trunk/olive/class/agclr/System.Windows.Media/VisualCollection.cs
2007-06-13 19:40:57 UTC (rev 79491)
@@ -36,9 +36,8 @@
{
}
- public VisualCollection ()
+ public VisualCollection () : base
(NativeMethods.visual_collection_new ())
{
- native = NativeMethods.visual_collection_new ();
}
protected internal override Kind GetKind ()
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches