Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Perovich <alperovi@microsoft.com>2016-09-22 21:49:37 +0300
committerGitHub <noreply@github.com>2016-09-22 21:49:37 +0300
commit93470c7590b38a509f0bcdd75ec2d7114da5f819 (patch)
treefcc20e3013c311db8ca4bb5924a83aeb8c92f6e2 /src/System.Drawing.Primitives/ref
parentf3d245ac4107c6da8c907808de674a7e1fcdd64a (diff)
Port S.Drawing types and converters. (#11731)
* Port S.Drawing types and converters. Fixes #11545 * Update dependencies * Address nits. * Update Dependencies * Address Review feedback
Diffstat (limited to 'src/System.Drawing.Primitives/ref')
-rw-r--r--src/System.Drawing.Primitives/ref/System.Drawing.Primitives.cs675
-rw-r--r--src/System.Drawing.Primitives/ref/System.Drawing.Primitives.csproj6
-rw-r--r--src/System.Drawing.Primitives/ref/project.json6
3 files changed, 533 insertions, 154 deletions
diff --git a/src/System.Drawing.Primitives/ref/System.Drawing.Primitives.cs b/src/System.Drawing.Primitives/ref/System.Drawing.Primitives.cs
index a49b5b65a6..d3c00d57dd 100644
--- a/src/System.Drawing.Primitives/ref/System.Drawing.Primitives.cs
+++ b/src/System.Drawing.Primitives/ref/System.Drawing.Primitives.cs
@@ -7,175 +7,554 @@
namespace System.Drawing
{
+ [System.SerializableAttribute]
+ public partial struct Color
+ {
+ public static readonly System.Drawing.Color Empty;
+ public byte A { get { throw null; } }
+ public static System.Drawing.Color AliceBlue { get { throw null; } }
+ public static System.Drawing.Color AntiqueWhite { get { throw null; } }
+ public static System.Drawing.Color Aqua { get { throw null; } }
+ public static System.Drawing.Color Aquamarine { get { throw null; } }
+ public static System.Drawing.Color Azure { get { throw null; } }
+ public byte B { get { throw null; } }
+ public static System.Drawing.Color Beige { get { throw null; } }
+ public static System.Drawing.Color Bisque { get { throw null; } }
+ public static System.Drawing.Color Black { get { throw null; } }
+ public static System.Drawing.Color BlanchedAlmond { get { throw null; } }
+ public static System.Drawing.Color Blue { get { throw null; } }
+ public static System.Drawing.Color BlueViolet { get { throw null; } }
+ public static System.Drawing.Color Brown { get { throw null; } }
+ public static System.Drawing.Color BurlyWood { get { throw null; } }
+ public static System.Drawing.Color CadetBlue { get { throw null; } }
+ public static System.Drawing.Color Chartreuse { get { throw null; } }
+ public static System.Drawing.Color Chocolate { get { throw null; } }
+ public static System.Drawing.Color Coral { get { throw null; } }
+ public static System.Drawing.Color CornflowerBlue { get { throw null; } }
+ public static System.Drawing.Color Cornsilk { get { throw null; } }
+ public static System.Drawing.Color Crimson { get { throw null; } }
+ public static System.Drawing.Color Cyan { get { throw null; } }
+ public static System.Drawing.Color DarkBlue { get { throw null; } }
+ public static System.Drawing.Color DarkCyan { get { throw null; } }
+ public static System.Drawing.Color DarkGoldenrod { get { throw null; } }
+ public static System.Drawing.Color DarkGray { get { throw null; } }
+ public static System.Drawing.Color DarkGreen { get { throw null; } }
+ public static System.Drawing.Color DarkKhaki { get { throw null; } }
+ public static System.Drawing.Color DarkMagenta { get { throw null; } }
+ public static System.Drawing.Color DarkOliveGreen { get { throw null; } }
+ public static System.Drawing.Color DarkOrange { get { throw null; } }
+ public static System.Drawing.Color DarkOrchid { get { throw null; } }
+ public static System.Drawing.Color DarkRed { get { throw null; } }
+ public static System.Drawing.Color DarkSalmon { get { throw null; } }
+ public static System.Drawing.Color DarkSeaGreen { get { throw null; } }
+ public static System.Drawing.Color DarkSlateBlue { get { throw null; } }
+ public static System.Drawing.Color DarkSlateGray { get { throw null; } }
+ public static System.Drawing.Color DarkTurquoise { get { throw null; } }
+ public static System.Drawing.Color DarkViolet { get { throw null; } }
+ public static System.Drawing.Color DeepPink { get { throw null; } }
+ public static System.Drawing.Color DeepSkyBlue { get { throw null; } }
+ public static System.Drawing.Color DimGray { get { throw null; } }
+ public static System.Drawing.Color DodgerBlue { get { throw null; } }
+ public static System.Drawing.Color Firebrick { get { throw null; } }
+ public static System.Drawing.Color FloralWhite { get { throw null; } }
+ public static System.Drawing.Color ForestGreen { get { throw null; } }
+ public static System.Drawing.Color Fuchsia { get { throw null; } }
+ public byte G { get { throw null; } }
+ public static System.Drawing.Color Gainsboro { get { throw null; } }
+ public static System.Drawing.Color GhostWhite { get { throw null; } }
+ public static System.Drawing.Color Gold { get { throw null; } }
+ public static System.Drawing.Color Goldenrod { get { throw null; } }
+ public static System.Drawing.Color Gray { get { throw null; } }
+ public static System.Drawing.Color Green { get { throw null; } }
+ public static System.Drawing.Color GreenYellow { get { throw null; } }
+ public static System.Drawing.Color Honeydew { get { throw null; } }
+ public static System.Drawing.Color HotPink { get { throw null; } }
+ public static System.Drawing.Color IndianRed { get { throw null; } }
+ public static System.Drawing.Color Indigo { get { throw null; } }
+ public bool IsEmpty { get { throw null; } }
+ public bool IsKnownColor { get { throw null; } }
+ public bool IsNamedColor { get { throw null; } }
+ public bool IsSystemColor { get { throw null; } }
+ public static System.Drawing.Color Ivory { get { throw null; } }
+ public static System.Drawing.Color Khaki { get { throw null; } }
+ public static System.Drawing.Color Lavender { get { throw null; } }
+ public static System.Drawing.Color LavenderBlush { get { throw null; } }
+ public static System.Drawing.Color LawnGreen { get { throw null; } }
+ public static System.Drawing.Color LemonChiffon { get { throw null; } }
+ public static System.Drawing.Color LightBlue { get { throw null; } }
+ public static System.Drawing.Color LightCoral { get { throw null; } }
+ public static System.Drawing.Color LightCyan { get { throw null; } }
+ public static System.Drawing.Color LightGoldenrodYellow { get { throw null; } }
+ public static System.Drawing.Color LightGray { get { throw null; } }
+ public static System.Drawing.Color LightGreen { get { throw null; } }
+ public static System.Drawing.Color LightPink { get { throw null; } }
+ public static System.Drawing.Color LightSalmon { get { throw null; } }
+ public static System.Drawing.Color LightSeaGreen { get { throw null; } }
+ public static System.Drawing.Color LightSkyBlue { get { throw null; } }
+ public static System.Drawing.Color LightSlateGray { get { throw null; } }
+ public static System.Drawing.Color LightSteelBlue { get { throw null; } }
+ public static System.Drawing.Color LightYellow { get { throw null; } }
+ public static System.Drawing.Color Lime { get { throw null; } }
+ public static System.Drawing.Color LimeGreen { get { throw null; } }
+ public static System.Drawing.Color Linen { get { throw null; } }
+ public static System.Drawing.Color Magenta { get { throw null; } }
+ public static System.Drawing.Color Maroon { get { throw null; } }
+ public static System.Drawing.Color MediumAquamarine { get { throw null; } }
+ public static System.Drawing.Color MediumBlue { get { throw null; } }
+ public static System.Drawing.Color MediumOrchid { get { throw null; } }
+ public static System.Drawing.Color MediumPurple { get { throw null; } }
+ public static System.Drawing.Color MediumSeaGreen { get { throw null; } }
+ public static System.Drawing.Color MediumSlateBlue { get { throw null; } }
+ public static System.Drawing.Color MediumSpringGreen { get { throw null; } }
+ public static System.Drawing.Color MediumTurquoise { get { throw null; } }
+ public static System.Drawing.Color MediumVioletRed { get { throw null; } }
+ public static System.Drawing.Color MidnightBlue { get { throw null; } }
+ public static System.Drawing.Color MintCream { get { throw null; } }
+ public static System.Drawing.Color MistyRose { get { throw null; } }
+ public static System.Drawing.Color Moccasin { get { throw null; } }
+ public string Name { get { throw null; } }
+ public static System.Drawing.Color NavajoWhite { get { throw null; } }
+ public static System.Drawing.Color Navy { get { throw null; } }
+ public static System.Drawing.Color OldLace { get { throw null; } }
+ public static System.Drawing.Color Olive { get { throw null; } }
+ public static System.Drawing.Color OliveDrab { get { throw null; } }
+ public static System.Drawing.Color Orange { get { throw null; } }
+ public static System.Drawing.Color OrangeRed { get { throw null; } }
+ public static System.Drawing.Color Orchid { get { throw null; } }
+ public static System.Drawing.Color PaleGoldenrod { get { throw null; } }
+ public static System.Drawing.Color PaleGreen { get { throw null; } }
+ public static System.Drawing.Color PaleTurquoise { get { throw null; } }
+ public static System.Drawing.Color PaleVioletRed { get { throw null; } }
+ public static System.Drawing.Color PapayaWhip { get { throw null; } }
+ public static System.Drawing.Color PeachPuff { get { throw null; } }
+ public static System.Drawing.Color Peru { get { throw null; } }
+ public static System.Drawing.Color Pink { get { throw null; } }
+ public static System.Drawing.Color Plum { get { throw null; } }
+ public static System.Drawing.Color PowderBlue { get { throw null; } }
+ public static System.Drawing.Color Purple { get { throw null; } }
+ public byte R { get { throw null; } }
+ public static System.Drawing.Color Red { get { throw null; } }
+ public static System.Drawing.Color RosyBrown { get { throw null; } }
+ public static System.Drawing.Color RoyalBlue { get { throw null; } }
+ public static System.Drawing.Color SaddleBrown { get { throw null; } }
+ public static System.Drawing.Color Salmon { get { throw null; } }
+ public static System.Drawing.Color SandyBrown { get { throw null; } }
+ public static System.Drawing.Color SeaGreen { get { throw null; } }
+ public static System.Drawing.Color SeaShell { get { throw null; } }
+ public static System.Drawing.Color Sienna { get { throw null; } }
+ public static System.Drawing.Color Silver { get { throw null; } }
+ public static System.Drawing.Color SkyBlue { get { throw null; } }
+ public static System.Drawing.Color SlateBlue { get { throw null; } }
+ public static System.Drawing.Color SlateGray { get { throw null; } }
+ public static System.Drawing.Color Snow { get { throw null; } }
+ public static System.Drawing.Color SpringGreen { get { throw null; } }
+ public static System.Drawing.Color SteelBlue { get { throw null; } }
+ public static System.Drawing.Color Tan { get { throw null; } }
+ public static System.Drawing.Color Teal { get { throw null; } }
+ public static System.Drawing.Color Thistle { get { throw null; } }
+ public static System.Drawing.Color Tomato { get { throw null; } }
+ public static System.Drawing.Color Transparent { get { throw null; } }
+ public static System.Drawing.Color Turquoise { get { throw null; } }
+ public static System.Drawing.Color Violet { get { throw null; } }
+ public static System.Drawing.Color Wheat { get { throw null; } }
+ public static System.Drawing.Color White { get { throw null; } }
+ public static System.Drawing.Color WhiteSmoke { get { throw null; } }
+ public static System.Drawing.Color Yellow { get { throw null; } }
+ public static System.Drawing.Color YellowGreen { get { throw null; } }
+ public override bool Equals(object obj) { throw null; }
+ public static System.Drawing.Color FromArgb(int argb) { throw null; }
+ public static System.Drawing.Color FromArgb(int alpha, System.Drawing.Color baseColor) { throw null; }
+ public static System.Drawing.Color FromArgb(int red, int green, int blue) { throw null; }
+ public static System.Drawing.Color FromArgb(int alpha, int red, int green, int blue) { throw null; }
+ public static System.Drawing.Color FromKnownColor(System.Drawing.KnownColor color) { throw null; }
+ public static System.Drawing.Color FromName(string name) { throw null; }
+ public float GetBrightness() { throw null; }
+ public override int GetHashCode() { throw null; }
+ public float GetHue() { throw null; }
+ public float GetSaturation() { throw null; }
+ public static bool operator ==(System.Drawing.Color left, System.Drawing.Color right) { throw null; }
+ public static bool operator !=(System.Drawing.Color left, System.Drawing.Color right) { throw null; }
+ public int ToArgb() { throw null; }
+ public System.Drawing.KnownColor ToKnownColor() { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public enum KnownColor
+ {
+ ActiveBorder = 1,
+ ActiveCaption = 2,
+ ActiveCaptionText = 3,
+ AliceBlue = 28,
+ AntiqueWhite = 29,
+ AppWorkspace = 4,
+ Aqua = 30,
+ Aquamarine = 31,
+ Azure = 32,
+ Beige = 33,
+ Bisque = 34,
+ Black = 35,
+ BlanchedAlmond = 36,
+ Blue = 37,
+ BlueViolet = 38,
+ Brown = 39,
+ BurlyWood = 40,
+ ButtonFace = 168,
+ ButtonHighlight = 169,
+ ButtonShadow = 170,
+ CadetBlue = 41,
+ Chartreuse = 42,
+ Chocolate = 43,
+ Control = 5,
+ ControlDark = 6,
+ ControlDarkDark = 7,
+ ControlLight = 8,
+ ControlLightLight = 9,
+ ControlText = 10,
+ Coral = 44,
+ CornflowerBlue = 45,
+ Cornsilk = 46,
+ Crimson = 47,
+ Cyan = 48,
+ DarkBlue = 49,
+ DarkCyan = 50,
+ DarkGoldenrod = 51,
+ DarkGray = 52,
+ DarkGreen = 53,
+ DarkKhaki = 54,
+ DarkMagenta = 55,
+ DarkOliveGreen = 56,
+ DarkOrange = 57,
+ DarkOrchid = 58,
+ DarkRed = 59,
+ DarkSalmon = 60,
+ DarkSeaGreen = 61,
+ DarkSlateBlue = 62,
+ DarkSlateGray = 63,
+ DarkTurquoise = 64,
+ DarkViolet = 65,
+ DeepPink = 66,
+ DeepSkyBlue = 67,
+ Desktop = 11,
+ DimGray = 68,
+ DodgerBlue = 69,
+ Firebrick = 70,
+ FloralWhite = 71,
+ ForestGreen = 72,
+ Fuchsia = 73,
+ Gainsboro = 74,
+ GhostWhite = 75,
+ Gold = 76,
+ Goldenrod = 77,
+ GradientActiveCaption = 171,
+ GradientInactiveCaption = 172,
+ Gray = 78,
+ GrayText = 12,
+ Green = 79,
+ GreenYellow = 80,
+ Highlight = 13,
+ HighlightText = 14,
+ Honeydew = 81,
+ HotPink = 82,
+ HotTrack = 15,
+ InactiveBorder = 16,
+ InactiveCaption = 17,
+ InactiveCaptionText = 18,
+ IndianRed = 83,
+ Indigo = 84,
+ Info = 19,
+ InfoText = 20,
+ Ivory = 85,
+ Khaki = 86,
+ Lavender = 87,
+ LavenderBlush = 88,
+ LawnGreen = 89,
+ LemonChiffon = 90,
+ LightBlue = 91,
+ LightCoral = 92,
+ LightCyan = 93,
+ LightGoldenrodYellow = 94,
+ LightGray = 95,
+ LightGreen = 96,
+ LightPink = 97,
+ LightSalmon = 98,
+ LightSeaGreen = 99,
+ LightSkyBlue = 100,
+ LightSlateGray = 101,
+ LightSteelBlue = 102,
+ LightYellow = 103,
+ Lime = 104,
+ LimeGreen = 105,
+ Linen = 106,
+ Magenta = 107,
+ Maroon = 108,
+ MediumAquamarine = 109,
+ MediumBlue = 110,
+ MediumOrchid = 111,
+ MediumPurple = 112,
+ MediumSeaGreen = 113,
+ MediumSlateBlue = 114,
+ MediumSpringGreen = 115,
+ MediumTurquoise = 116,
+ MediumVioletRed = 117,
+ Menu = 21,
+ MenuBar = 173,
+ MenuHighlight = 174,
+ MenuText = 22,
+ MidnightBlue = 118,
+ MintCream = 119,
+ MistyRose = 120,
+ Moccasin = 121,
+ NavajoWhite = 122,
+ Navy = 123,
+ OldLace = 124,
+ Olive = 125,
+ OliveDrab = 126,
+ Orange = 127,
+ OrangeRed = 128,
+ Orchid = 129,
+ PaleGoldenrod = 130,
+ PaleGreen = 131,
+ PaleTurquoise = 132,
+ PaleVioletRed = 133,
+ PapayaWhip = 134,
+ PeachPuff = 135,
+ Peru = 136,
+ Pink = 137,
+ Plum = 138,
+ PowderBlue = 139,
+ Purple = 140,
+ Red = 141,
+ RosyBrown = 142,
+ RoyalBlue = 143,
+ SaddleBrown = 144,
+ Salmon = 145,
+ SandyBrown = 146,
+ ScrollBar = 23,
+ SeaGreen = 147,
+ SeaShell = 148,
+ Sienna = 149,
+ Silver = 150,
+ SkyBlue = 151,
+ SlateBlue = 152,
+ SlateGray = 153,
+ Snow = 154,
+ SpringGreen = 155,
+ SteelBlue = 156,
+ Tan = 157,
+ Teal = 158,
+ Thistle = 159,
+ Tomato = 160,
+ Transparent = 27,
+ Turquoise = 161,
+ Violet = 162,
+ Wheat = 163,
+ White = 164,
+ WhiteSmoke = 165,
+ Window = 24,
+ WindowFrame = 25,
+ WindowText = 26,
+ Yellow = 166,
+ YellowGreen = 167,
+ }
public partial struct Point
{
- public static readonly Point Empty;
- public Point(Size sz) { }
- public Point(int dw) { }
- public Point(int x, int y) { }
- public bool IsEmpty { get { return default(bool); } }
- public int X { get { return default(int); } set { } }
- public int Y { get { return default(int); } set { } }
- public static Point Add(Point pt, Size sz) { return default(Point); }
- public static Point Ceiling(PointF value) { return default(Point); }
- public override bool Equals(object obj) { return default(bool); }
- public override int GetHashCode() { return default(int); }
- public void Offset(Point p) { }
+ public static readonly System.Drawing.Point Empty;
+ public Point(System.Drawing.Size sz) { throw null;}
+ public Point(int dw) { throw null;}
+ public Point(int x, int y) { throw null;}
+ public bool IsEmpty { get { throw null; } }
+ public int X { get { throw null; } set { } }
+ public int Y { get { throw null; } set { } }
+ public static System.Drawing.Point Add(System.Drawing.Point pt, System.Drawing.Size sz) { throw null; }
+ public static System.Drawing.Point Ceiling(System.Drawing.PointF value) { throw null; }
+ public override bool Equals(object obj) { throw null; }
+ public override int GetHashCode() { throw null; }
+ public void Offset(System.Drawing.Point p) { }
public void Offset(int dx, int dy) { }
- public static Point operator +(Point pt, Size sz) { return default(Point); }
- public static bool operator ==(Point left, Point right) { return default(bool); }
- public static explicit operator Size(Point p) { return default(Size); }
- public static implicit operator PointF(Point p) { return default(PointF); }
- public static bool operator !=(Point left, Point right) { return default(bool); }
- public static Point operator -(Point pt, Size sz) { return default(Point); }
- public static Point Round(PointF value) { return default(Point); }
- public static Point Subtract(Point pt, Size sz) { return default(Point); }
- public override string ToString() { return default(string); }
- public static Point Truncate(PointF value) { return default(Point); }
+ public static System.Drawing.Point operator +(System.Drawing.Point pt, System.Drawing.Size sz) { throw null; }
+ public static bool operator ==(System.Drawing.Point left, System.Drawing.Point right) { throw null; }
+ public static explicit operator System.Drawing.Size (System.Drawing.Point p) { throw null; }
+ public static implicit operator System.Drawing.PointF (System.Drawing.Point p) { throw null; }
+ public static bool operator !=(System.Drawing.Point left, System.Drawing.Point right) { throw null; }
+ public static System.Drawing.Point operator -(System.Drawing.Point pt, System.Drawing.Size sz) { throw null; }
+ public static System.Drawing.Point Round(System.Drawing.PointF value) { throw null; }
+ public static System.Drawing.Point Subtract(System.Drawing.Point pt, System.Drawing.Size sz) { throw null; }
+ public override string ToString() { throw null; }
+ public static System.Drawing.Point Truncate(System.Drawing.PointF value) { throw null; }
}
-
public partial struct PointF
{
- public static readonly PointF Empty;
- public PointF(float x, float y) { }
- public bool IsEmpty { get { return default(bool); } }
- public float X { get { return default(float); } set { } }
- public float Y { get { return default(float); } set { } }
- public static PointF Add(PointF pt, Size sz) { return default(PointF); }
- public static PointF Add(PointF pt, SizeF sz) { return default(PointF); }
- public override bool Equals(object obj) { return default(bool); }
- public override int GetHashCode() { return default(int); }
- public static PointF operator +(PointF pt, Size sz) { return default(PointF); }
- public static PointF operator +(PointF pt, SizeF sz) { return default(PointF); }
- public static bool operator ==(PointF left, PointF right) { return default(bool); }
- public static bool operator !=(PointF left, PointF right) { return default(bool); }
- public static PointF operator -(PointF pt, Size sz) { return default(PointF); }
- public static PointF operator -(PointF pt, SizeF sz) { return default(PointF); }
- public static PointF Subtract(PointF pt, Size sz) { return default(PointF); }
- public static PointF Subtract(PointF pt, SizeF sz) { return default(PointF); }
- public override string ToString() { return default(string); }
+ public static readonly System.Drawing.PointF Empty;
+ public PointF(float x, float y) { throw null;}
+ public bool IsEmpty { get { throw null; } }
+ public float X { get { throw null; } set { } }
+ public float Y { get { throw null; } set { } }
+ public static System.Drawing.PointF Add(System.Drawing.PointF pt, System.Drawing.Size sz) { throw null; }
+ public static System.Drawing.PointF Add(System.Drawing.PointF pt, System.Drawing.SizeF sz) { throw null; }
+ public override bool Equals(object obj) { throw null; }
+ public override int GetHashCode() { throw null; }
+ public static System.Drawing.PointF operator +(System.Drawing.PointF pt, System.Drawing.Size sz) { throw null; }
+ public static System.Drawing.PointF operator +(System.Drawing.PointF pt, System.Drawing.SizeF sz) { throw null; }
+ public static bool operator ==(System.Drawing.PointF left, System.Drawing.PointF right) { throw null; }
+ public static bool operator !=(System.Drawing.PointF left, System.Drawing.PointF right) { throw null; }
+ public static System.Drawing.PointF operator -(System.Drawing.PointF pt, System.Drawing.Size sz) { throw null; }
+ public static System.Drawing.PointF operator -(System.Drawing.PointF pt, System.Drawing.SizeF sz) { throw null; }
+ public static System.Drawing.PointF Subtract(System.Drawing.PointF pt, System.Drawing.Size sz) { throw null; }
+ public static System.Drawing.PointF Subtract(System.Drawing.PointF pt, System.Drawing.SizeF sz) { throw null; }
+ public override string ToString() { throw null; }
}
-
public partial struct Rectangle
{
- public static readonly Rectangle Empty;
- public Rectangle(Point location, Size size) { }
- public Rectangle(int x, int y, int width, int height) { }
- public int Bottom { get { return default(int); } }
- public int Height { get { return default(int); } set { } }
- public bool IsEmpty { get { return default(bool); } }
- public int Left { get { return default(int); } }
- public Point Location { get { return default(Point); } set { } }
- public int Right { get { return default(int); } }
- public Size Size { get { return default(Size); } set { } }
- public int Top { get { return default(int); } }
- public int Width { get { return default(int); } set { } }
- public int X { get { return default(int); } set { } }
- public int Y { get { return default(int); } set { } }
- public static Rectangle Ceiling(RectangleF value) { return default(Rectangle); }
- public bool Contains(Point pt) { return default(bool); }
- public bool Contains(Rectangle rect) { return default(bool); }
- public bool Contains(int x, int y) { return default(bool); }
- public override bool Equals(object obj) { return default(bool); }
- public static Rectangle FromLTRB(int left, int top, int right, int bottom) { return default(Rectangle); }
- public override int GetHashCode() { return default(int); }
- public static Rectangle Inflate(Rectangle rect, int x, int y) { return default(Rectangle); }
- public void Inflate(Size size) { }
+ public static readonly System.Drawing.Rectangle Empty;
+ public Rectangle(System.Drawing.Point location, System.Drawing.Size size) { throw null;}
+ public Rectangle(int x, int y, int width, int height) { throw null;}
+ public int Bottom { get { throw null; } }
+ public int Height { get { throw null; } set { } }
+ public bool IsEmpty { get { throw null; } }
+ public int Left { get { throw null; } }
+ public System.Drawing.Point Location { get { throw null; } set { } }
+ public int Right { get { throw null; } }
+ public System.Drawing.Size Size { get { throw null; } set { } }
+ public int Top { get { throw null; } }
+ public int Width { get { throw null; } set { } }
+ public int X { get { throw null; } set { } }
+ public int Y { get { throw null; } set { } }
+ public static System.Drawing.Rectangle Ceiling(System.Drawing.RectangleF value) { throw null; }
+ public bool Contains(System.Drawing.Point pt) { throw null; }
+ public bool Contains(System.Drawing.Rectangle rect) { throw null; }
+ public bool Contains(int x, int y) { throw null; }
+ public override bool Equals(object obj) { throw null; }
+ public static System.Drawing.Rectangle FromLTRB(int left, int top, int right, int bottom) { throw null; }
+ public override int GetHashCode() { throw null; }
+ public static System.Drawing.Rectangle Inflate(System.Drawing.Rectangle rect, int x, int y) { throw null; }
+ public void Inflate(System.Drawing.Size size) { }
public void Inflate(int width, int height) { }
- public void Intersect(Rectangle rect) { }
- public static Rectangle Intersect(Rectangle a, Rectangle b) { return default(Rectangle); }
- public bool IntersectsWith(Rectangle rect) { return default(bool); }
- public void Offset(Point pos) { }
+ public void Intersect(System.Drawing.Rectangle rect) { }
+ public static System.Drawing.Rectangle Intersect(System.Drawing.Rectangle a, System.Drawing.Rectangle b) { throw null; }
+ public bool IntersectsWith(System.Drawing.Rectangle rect) { throw null; }
+ public void Offset(System.Drawing.Point pos) { }
public void Offset(int x, int y) { }
- public static bool operator ==(Rectangle left, Rectangle right) { return default(bool); }
- public static bool operator !=(Rectangle left, Rectangle right) { return default(bool); }
- public static Rectangle Round(RectangleF value) { return default(Rectangle); }
- public override string ToString() { return default(string); }
- public static Rectangle Truncate(RectangleF value) { return default(Rectangle); }
- public static Rectangle Union(Rectangle a, Rectangle b) { return default(Rectangle); }
+ public static bool operator ==(System.Drawing.Rectangle left, System.Drawing.Rectangle right) { throw null; }
+ public static bool operator !=(System.Drawing.Rectangle left, System.Drawing.Rectangle right) { throw null; }
+ public static System.Drawing.Rectangle Round(System.Drawing.RectangleF value) { throw null; }
+ public override string ToString() { throw null; }
+ public static System.Drawing.Rectangle Truncate(System.Drawing.RectangleF value) { throw null; }
+ public static System.Drawing.Rectangle Union(System.Drawing.Rectangle a, System.Drawing.Rectangle b) { throw null; }
}
-
public partial struct RectangleF
{
- public static readonly RectangleF Empty;
- public RectangleF(PointF location, SizeF size) { }
- public RectangleF(float x, float y, float width, float height) { }
- public float Bottom { get { return default(float); } }
- public float Height { get { return default(float); } set { } }
- public bool IsEmpty { get { return default(bool); } }
- public float Left { get { return default(float); } }
- public PointF Location { get { { return default(PointF); } } set { } }
- public float Right { get { return default(float); } }
- public SizeF Size { get { return default(SizeF); } set { } }
- public float Top { get { return default(float); } }
- public float Width { get { return default(float); } set { } }
- public float X { get { return default(float); } set { } }
- public float Y { get { return default(float); } set { } }
- public bool Contains(PointF pt) { return default(bool); }
- public bool Contains(RectangleF rect) { return default(bool); }
- public bool Contains(float x, float y) { return default(bool); }
- public override bool Equals(object obj) { return default(bool); }
- public static RectangleF FromLTRB(float left, float top, float right, float bottom) { return default(RectangleF); }
- public override int GetHashCode() { return default(int); }
- public static RectangleF Inflate(RectangleF rect, float x, float y) { return default(RectangleF); }
- public void Inflate(SizeF size) { }
+ public static readonly System.Drawing.RectangleF Empty;
+ public RectangleF(System.Drawing.PointF location, System.Drawing.SizeF size) { throw null;}
+ public RectangleF(float x, float y, float width, float height) { throw null;}
+ public float Bottom { get { throw null; } }
+ public float Height { get { throw null; } set { } }
+ public bool IsEmpty { get { throw null; } }
+ public float Left { get { throw null; } }
+ public System.Drawing.PointF Location { get { throw null; } set { } }
+ public float Right { get { throw null; } }
+ public System.Drawing.SizeF Size { get { throw null; } set { } }
+ public float Top { get { throw null; } }
+ public float Width { get { throw null; } set { } }
+ public float X { get { throw null; } set { } }
+ public float Y { get { throw null; } set { } }
+ public bool Contains(System.Drawing.PointF pt) { throw null; }
+ public bool Contains(System.Drawing.RectangleF rect) { throw null; }
+ public bool Contains(float x, float y) { throw null; }
+ public override bool Equals(object obj) { throw null; }
+ public static System.Drawing.RectangleF FromLTRB(float left, float top, float right, float bottom) { throw null; }
+ public override int GetHashCode() { throw null; }
+ public static System.Drawing.RectangleF Inflate(System.Drawing.RectangleF rect, float x, float y) { throw null; }
+ public void Inflate(System.Drawing.SizeF size) { }
public void Inflate(float x, float y) { }
- public void Intersect(RectangleF rect) { }
- public static RectangleF Intersect(RectangleF a, RectangleF b) { return default(RectangleF); }
- public bool IntersectsWith(RectangleF rect) { return default(bool); }
- public void Offset(PointF pos) { }
+ public void Intersect(System.Drawing.RectangleF rect) { }
+ public static System.Drawing.RectangleF Intersect(System.Drawing.RectangleF a, System.Drawing.RectangleF b) { throw null; }
+ public bool IntersectsWith(System.Drawing.RectangleF rect) { throw null; }
+ public void Offset(System.Drawing.PointF pos) { }
public void Offset(float x, float y) { }
- public static bool operator ==(RectangleF left, RectangleF right) { return default(bool); }
- public static implicit operator RectangleF(Rectangle r) { return default(Rectangle); }
- public static bool operator !=(RectangleF left, RectangleF right) { return default(bool); }
- public override string ToString() { return default(string); }
- public static RectangleF Union(RectangleF a, RectangleF b) { return default(RectangleF); }
+ public static bool operator ==(System.Drawing.RectangleF left, System.Drawing.RectangleF right) { throw null; }
+ public static implicit operator System.Drawing.RectangleF (System.Drawing.Rectangle r) { throw null; }
+ public static bool operator !=(System.Drawing.RectangleF left, System.Drawing.RectangleF right) { throw null; }
+ public override string ToString() { throw null; }
+ public static System.Drawing.RectangleF Union(System.Drawing.RectangleF a, System.Drawing.RectangleF b) { throw null; }
}
-
public partial struct Size
{
- public static readonly Size Empty;
- public Size(Point pt) { }
- public Size(int width, int height) { }
- public int Height { get { return default(int); } set { } }
- public bool IsEmpty { get { return default(bool); } }
- public int Width { get { return default(int); } set { } }
- public static Size Add(Size sz1, Size sz2) { return default(Size); }
- public static Size Ceiling(SizeF value) { return default(Size); }
- public override bool Equals(object obj) { return default(bool); }
- public override int GetHashCode() { return default(int); }
- public static Size operator +(Size sz1, Size sz2) { return default(Size); }
- public static bool operator ==(Size sz1, Size sz2) { return default(bool); }
- public static explicit operator Point(Size size) { return default(Point); }
- public static implicit operator SizeF(Size p) { return default(Size); }
- public static bool operator !=(Size sz1, Size sz2) { return default(bool); }
- public static Size operator -(Size sz1, Size sz2) { return default(Size); }
- public static Size Round(SizeF value) { return default(Size); }
- public static Size Subtract(Size sz1, Size sz2) { return default(Size); }
- public override string ToString() { return default(string); }
- public static Size Truncate(SizeF value) { return default(Size); }
+ public static readonly System.Drawing.Size Empty;
+ public Size(System.Drawing.Point pt) { throw null;}
+ public Size(int width, int height) { throw null;}
+ public int Height { get { throw null; } set { } }
+ public bool IsEmpty { get { throw null; } }
+ public int Width { get { throw null; } set { } }
+ public static System.Drawing.Size Add(System.Drawing.Size sz1, System.Drawing.Size sz2) { throw null; }
+ public static System.Drawing.Size Ceiling(System.Drawing.SizeF value) { throw null; }
+ public override bool Equals(object obj) { throw null; }
+ public override int GetHashCode() { throw null; }
+ public static System.Drawing.Size operator +(System.Drawing.Size sz1, System.Drawing.Size sz2) { throw null; }
+ public static bool operator ==(System.Drawing.Size sz1, System.Drawing.Size sz2) { throw null; }
+ public static explicit operator System.Drawing.Point (System.Drawing.Size size) { throw null; }
+ public static implicit operator System.Drawing.SizeF (System.Drawing.Size p) { throw null; }
+ public static bool operator !=(System.Drawing.Size sz1, System.Drawing.Size sz2) { throw null; }
+ public static System.Drawing.Size operator -(System.Drawing.Size sz1, System.Drawing.Size sz2) { throw null; }
+ public static System.Drawing.Size Round(System.Drawing.SizeF value) { throw null; }
+ public static System.Drawing.Size Subtract(System.Drawing.Size sz1, System.Drawing.Size sz2) { throw null; }
+ public override string ToString() { throw null; }
+ public static System.Drawing.Size Truncate(System.Drawing.SizeF value) { throw null; }
}
-
public partial struct SizeF
{
- public static readonly SizeF Empty;
- public SizeF(PointF pt) { }
- public SizeF(SizeF size) { }
- public SizeF(float width, float height) { }
- public float Height { get { return default(float); } set { } }
- public bool IsEmpty { get { return default(bool); } }
- public float Width { get { return default(float); } set { } }
- public static SizeF Add(SizeF sz1, SizeF sz2) { return default(SizeF); }
- public override bool Equals(object obj) { return default(bool); }
- public override int GetHashCode() { return default(int); }
- public static SizeF operator +(SizeF sz1, SizeF sz2) { return default(SizeF); }
- public static bool operator ==(SizeF sz1, SizeF sz2) { return default(bool); }
- public static explicit operator PointF(SizeF size) { return default(PointF); }
- public static bool operator !=(SizeF sz1, SizeF sz2) { return default(bool); }
- public static SizeF operator -(SizeF sz1, SizeF sz2) { return default(SizeF); }
- public static SizeF Subtract(SizeF sz1, SizeF sz2) { return default(SizeF); }
- public PointF ToPointF() { return default(PointF); }
- public Size ToSize() { return default(Size); }
- public override string ToString() { return default(string); }
+ public static readonly System.Drawing.SizeF Empty;
+ public SizeF(System.Drawing.PointF pt) { throw null;}
+ public SizeF(System.Drawing.SizeF size) { throw null;}
+ public SizeF(float width, float height) { throw null;}
+ public float Height { get { throw null; } set { } }
+ public bool IsEmpty { get { throw null; } }
+ public float Width { get { throw null; } set { } }
+ public static System.Drawing.SizeF Add(System.Drawing.SizeF sz1, System.Drawing.SizeF sz2) { throw null; }
+ public override bool Equals(object obj) { throw null; }
+ public override int GetHashCode() { throw null; }
+ public static System.Drawing.SizeF operator +(System.Drawing.SizeF sz1, System.Drawing.SizeF sz2) { throw null; }
+ public static bool operator ==(System.Drawing.SizeF sz1, System.Drawing.SizeF sz2) { throw null; }
+ public static explicit operator System.Drawing.PointF (System.Drawing.SizeF size) { throw null; }
+ public static bool operator !=(System.Drawing.SizeF sz1, System.Drawing.SizeF sz2) { throw null; }
+ public static System.Drawing.SizeF operator -(System.Drawing.SizeF sz1, System.Drawing.SizeF sz2) { throw null; }
+ public static System.Drawing.SizeF Subtract(System.Drawing.SizeF sz1, System.Drawing.SizeF sz2) { throw null; }
+ public System.Drawing.PointF ToPointF() { throw null; }
+ public System.Drawing.Size ToSize() { throw null; }
+ public override string ToString() { throw null; }
+ }
+ public static partial class SystemColors
+ {
+ public static System.Drawing.Color ActiveBorder { get { throw null; } }
+ public static System.Drawing.Color ActiveCaption { get { throw null; } }
+ public static System.Drawing.Color ActiveCaptionText { get { throw null; } }
+ public static System.Drawing.Color AppWorkspace { get { throw null; } }
+ public static System.Drawing.Color ButtonFace { get { throw null; } }
+ public static System.Drawing.Color ButtonHighlight { get { throw null; } }
+ public static System.Drawing.Color ButtonShadow { get { throw null; } }
+ public static System.Drawing.Color Control { get { throw null; } }
+ public static System.Drawing.Color ControlDark { get { throw null; } }
+ public static System.Drawing.Color ControlDarkDark { get { throw null; } }
+ public static System.Drawing.Color ControlLight { get { throw null; } }
+ public static System.Drawing.Color ControlLightLight { get { throw null; } }
+ public static System.Drawing.Color ControlText { get { throw null; } }
+ public static System.Drawing.Color Desktop { get { throw null; } }
+ public static System.Drawing.Color GradientActiveCaption { get { throw null; } }
+ public static System.Drawing.Color GradientInactiveCaption { get { throw null; } }
+ public static System.Drawing.Color GrayText { get { throw null; } }
+ public static System.Drawing.Color Highlight { get { throw null; } }
+ public static System.Drawing.Color HighlightText { get { throw null; } }
+ public static System.Drawing.Color HotTrack { get { throw null; } }
+ public static System.Drawing.Color InactiveBorder { get { throw null; } }
+ public static System.Drawing.Color InactiveCaption { get { throw null; } }
+ public static System.Drawing.Color InactiveCaptionText { get { throw null; } }
+ public static System.Drawing.Color Info { get { throw null; } }
+ public static System.Drawing.Color InfoText { get { throw null; } }
+ public static System.Drawing.Color Menu { get { throw null; } }
+ public static System.Drawing.Color MenuBar { get { throw null; } }
+ public static System.Drawing.Color MenuHighlight { get { throw null; } }
+ public static System.Drawing.Color MenuText { get { throw null; } }
+ public static System.Drawing.Color ScrollBar { get { throw null; } }
+ public static System.Drawing.Color Window { get { throw null; } }
+ public static System.Drawing.Color WindowFrame { get { throw null; } }
+ public static System.Drawing.Color WindowText { get { throw null; } }
}
}
diff --git a/src/System.Drawing.Primitives/ref/System.Drawing.Primitives.csproj b/src/System.Drawing.Primitives/ref/System.Drawing.Primitives.csproj
index ebc9ce4a4d..897ad625b1 100644
--- a/src/System.Drawing.Primitives/ref/System.Drawing.Primitives.csproj
+++ b/src/System.Drawing.Primitives/ref/System.Drawing.Primitives.csproj
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<PropertyGroup>
<OutputType>Library</OutputType>
- <NuGetTargetMoniker>.NETStandard,Version=v1.1</NuGetTargetMoniker>
+ <NuGetTargetMoniker>.NETStandard,Version=v1.7</NuGetTargetMoniker>
</PropertyGroup>
<ItemGroup>
<Compile Include="System.Drawing.Primitives.cs" />
@@ -12,4 +12,4 @@
<None Include="project.json" />
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
-</Project> \ No newline at end of file
+</Project>
diff --git a/src/System.Drawing.Primitives/ref/project.json b/src/System.Drawing.Primitives/ref/project.json
index 0c5f83e6e8..986e149de5 100644
--- a/src/System.Drawing.Primitives/ref/project.json
+++ b/src/System.Drawing.Primitives/ref/project.json
@@ -1,11 +1,11 @@
{
"dependencies": {
- "System.Runtime": "4.0.0"
+ "System.Runtime": "4.3.0-beta-24520-06"
},
"frameworks": {
- "netstandard1.1": {
+ "netstandard1.7": {
"imports": [
- "dotnet5.2"
+ "dotnet5.6"
]
}
}