[System.Drawing] Add ifdefs to source code used by Xamarin.iOS/Mac to make it compile...
[mono.git] / mcs / class / System.Drawing / System.Drawing / Rectangle.cs
index 7014ea860a67c054e8f387530fb3cef93f8c0661..c2ffbc80e5e647b589ed5aec55c96c1fb0703439 100644 (file)
@@ -39,7 +39,9 @@ namespace System.Drawing
 {
        [Serializable]
        [ComVisible (true)]
+#if !MONOTOUCH && !MONOMAC
        [TypeConverter (typeof (RectangleConverter))]
+#endif
        public struct Rectangle
        {
                private int x, y, width, height;
@@ -54,13 +56,6 @@ namespace System.Drawing
                
                public static readonly Rectangle Empty;
 
-#if TARGET_JVM
-               internal java.awt.Rectangle NativeObject {
-                       get {
-                               return new java.awt.Rectangle(X,Y,Width,Height);
-                       }
-               }
-#endif
 
                /// <summary>
                ///     Ceiling Shared Method
@@ -258,7 +253,7 @@ namespace System.Drawing
 
                public static bool operator == (Rectangle left, Rectangle right)
                {
-                       return ((left.Location == right.Location) &&
+                       return ((left.Location == right.Location) && 
                                (left.Size == right.Size));
                }
                
@@ -274,7 +269,7 @@ namespace System.Drawing
 
                public static bool operator != (Rectangle left, Rectangle right)
                {
-                       return ((left.Location != right.Location) ||
+                       return ((left.Location != right.Location) || 
                                (left.Size != right.Size));
                }
                
@@ -316,6 +311,8 @@ namespace System.Drawing
                        this.height = height;
                }
 
+
+
                /// <summary>
                ///     Bottom Property
                /// </summary>
@@ -600,8 +597,8 @@ namespace System.Drawing
 
                public void Offset (int x, int y)
                {
-                       x += x;
-                       y += y;
+                       this.x += x;
+                       this.y += y;
                }
                
                /// <summary>