481 lines
15 KiB
TypeScript
481 lines
15 KiB
TypeScript
declare namespace System.Drawing {
|
|
|
|
class Color {
|
|
readonly Transparent: System.Drawing.Color;
|
|
readonly AliceBlue: System.Drawing.Color;
|
|
readonly AntiqueWhite: System.Drawing.Color;
|
|
readonly Aqua: System.Drawing.Color;
|
|
readonly Aquamarine: System.Drawing.Color;
|
|
readonly Azure: System.Drawing.Color;
|
|
readonly Beige: System.Drawing.Color;
|
|
readonly Bisque: System.Drawing.Color;
|
|
readonly Black: System.Drawing.Color;
|
|
readonly BlanchedAlmond: System.Drawing.Color;
|
|
readonly Blue: System.Drawing.Color;
|
|
readonly BlueViolet: System.Drawing.Color;
|
|
readonly Brown: System.Drawing.Color;
|
|
readonly BurlyWood: System.Drawing.Color;
|
|
readonly CadetBlue: System.Drawing.Color;
|
|
readonly Chartreuse: System.Drawing.Color;
|
|
readonly Chocolate: System.Drawing.Color;
|
|
readonly Coral: System.Drawing.Color;
|
|
readonly CornflowerBlue: System.Drawing.Color;
|
|
readonly Cornsilk: System.Drawing.Color;
|
|
readonly Crimson: System.Drawing.Color;
|
|
readonly Cyan: System.Drawing.Color;
|
|
readonly DarkBlue: System.Drawing.Color;
|
|
readonly DarkCyan: System.Drawing.Color;
|
|
readonly DarkGoldenrod: System.Drawing.Color;
|
|
readonly DarkGray: System.Drawing.Color;
|
|
readonly DarkGreen: System.Drawing.Color;
|
|
readonly DarkKhaki: System.Drawing.Color;
|
|
readonly DarkMagenta: System.Drawing.Color;
|
|
readonly DarkOliveGreen: System.Drawing.Color;
|
|
readonly DarkOrange: System.Drawing.Color;
|
|
readonly DarkOrchid: System.Drawing.Color;
|
|
readonly DarkRed: System.Drawing.Color;
|
|
readonly DarkSalmon: System.Drawing.Color;
|
|
readonly DarkSeaGreen: System.Drawing.Color;
|
|
readonly DarkSlateBlue: System.Drawing.Color;
|
|
readonly DarkSlateGray: System.Drawing.Color;
|
|
readonly DarkTurquoise: System.Drawing.Color;
|
|
readonly DarkViolet: System.Drawing.Color;
|
|
readonly DeepPink: System.Drawing.Color;
|
|
readonly DeepSkyBlue: System.Drawing.Color;
|
|
readonly DimGray: System.Drawing.Color;
|
|
readonly DodgerBlue: System.Drawing.Color;
|
|
readonly Firebrick: System.Drawing.Color;
|
|
readonly FloralWhite: System.Drawing.Color;
|
|
readonly ForestGreen: System.Drawing.Color;
|
|
readonly Fuchsia: System.Drawing.Color;
|
|
readonly Gainsboro: System.Drawing.Color;
|
|
readonly GhostWhite: System.Drawing.Color;
|
|
readonly Gold: System.Drawing.Color;
|
|
readonly Goldenrod: System.Drawing.Color;
|
|
readonly Gray: System.Drawing.Color;
|
|
readonly Green: System.Drawing.Color;
|
|
readonly GreenYellow: System.Drawing.Color;
|
|
readonly Honeydew: System.Drawing.Color;
|
|
readonly HotPink: System.Drawing.Color;
|
|
readonly IndianRed: System.Drawing.Color;
|
|
readonly Indigo: System.Drawing.Color;
|
|
readonly Ivory: System.Drawing.Color;
|
|
readonly Khaki: System.Drawing.Color;
|
|
readonly Lavender: System.Drawing.Color;
|
|
readonly LavenderBlush: System.Drawing.Color;
|
|
readonly LawnGreen: System.Drawing.Color;
|
|
readonly LemonChiffon: System.Drawing.Color;
|
|
readonly LightBlue: System.Drawing.Color;
|
|
readonly LightCoral: System.Drawing.Color;
|
|
readonly LightCyan: System.Drawing.Color;
|
|
readonly LightGoldenrodYellow: System.Drawing.Color;
|
|
readonly LightGreen: System.Drawing.Color;
|
|
readonly LightGray: System.Drawing.Color;
|
|
readonly LightPink: System.Drawing.Color;
|
|
readonly LightSalmon: System.Drawing.Color;
|
|
readonly LightSeaGreen: System.Drawing.Color;
|
|
readonly LightSkyBlue: System.Drawing.Color;
|
|
readonly LightSlateGray: System.Drawing.Color;
|
|
readonly LightSteelBlue: System.Drawing.Color;
|
|
readonly LightYellow: System.Drawing.Color;
|
|
readonly Lime: System.Drawing.Color;
|
|
readonly LimeGreen: System.Drawing.Color;
|
|
readonly Linen: System.Drawing.Color;
|
|
readonly Magenta: System.Drawing.Color;
|
|
readonly Maroon: System.Drawing.Color;
|
|
readonly MediumAquamarine: System.Drawing.Color;
|
|
readonly MediumBlue: System.Drawing.Color;
|
|
readonly MediumOrchid: System.Drawing.Color;
|
|
readonly MediumPurple: System.Drawing.Color;
|
|
readonly MediumSeaGreen: System.Drawing.Color;
|
|
readonly MediumSlateBlue: System.Drawing.Color;
|
|
readonly MediumSpringGreen: System.Drawing.Color;
|
|
readonly MediumTurquoise: System.Drawing.Color;
|
|
readonly MediumVioletRed: System.Drawing.Color;
|
|
readonly MidnightBlue: System.Drawing.Color;
|
|
readonly MintCream: System.Drawing.Color;
|
|
readonly MistyRose: System.Drawing.Color;
|
|
readonly Moccasin: System.Drawing.Color;
|
|
readonly NavajoWhite: System.Drawing.Color;
|
|
readonly Navy: System.Drawing.Color;
|
|
readonly OldLace: System.Drawing.Color;
|
|
readonly Olive: System.Drawing.Color;
|
|
readonly OliveDrab: System.Drawing.Color;
|
|
readonly Orange: System.Drawing.Color;
|
|
readonly OrangeRed: System.Drawing.Color;
|
|
readonly Orchid: System.Drawing.Color;
|
|
readonly PaleGoldenrod: System.Drawing.Color;
|
|
readonly PaleGreen: System.Drawing.Color;
|
|
readonly PaleTurquoise: System.Drawing.Color;
|
|
readonly PaleVioletRed: System.Drawing.Color;
|
|
readonly PapayaWhip: System.Drawing.Color;
|
|
readonly PeachPuff: System.Drawing.Color;
|
|
readonly Peru: System.Drawing.Color;
|
|
readonly Pink: System.Drawing.Color;
|
|
readonly Plum: System.Drawing.Color;
|
|
readonly PowderBlue: System.Drawing.Color;
|
|
readonly Purple: System.Drawing.Color;
|
|
readonly Red: System.Drawing.Color;
|
|
readonly RosyBrown: System.Drawing.Color;
|
|
readonly RoyalBlue: System.Drawing.Color;
|
|
readonly SaddleBrown: System.Drawing.Color;
|
|
readonly Salmon: System.Drawing.Color;
|
|
readonly SandyBrown: System.Drawing.Color;
|
|
readonly SeaGreen: System.Drawing.Color;
|
|
readonly SeaShell: System.Drawing.Color;
|
|
readonly Sienna: System.Drawing.Color;
|
|
readonly Silver: System.Drawing.Color;
|
|
readonly SkyBlue: System.Drawing.Color;
|
|
readonly SlateBlue: System.Drawing.Color;
|
|
readonly SlateGray: System.Drawing.Color;
|
|
readonly Snow: System.Drawing.Color;
|
|
readonly SpringGreen: System.Drawing.Color;
|
|
readonly SteelBlue: System.Drawing.Color;
|
|
readonly Tan: System.Drawing.Color;
|
|
readonly Teal: System.Drawing.Color;
|
|
readonly Thistle: System.Drawing.Color;
|
|
readonly Tomato: System.Drawing.Color;
|
|
readonly Turquoise: System.Drawing.Color;
|
|
readonly Violet: System.Drawing.Color;
|
|
readonly Wheat: System.Drawing.Color;
|
|
readonly White: System.Drawing.Color;
|
|
readonly WhiteSmoke: System.Drawing.Color;
|
|
readonly Yellow: System.Drawing.Color;
|
|
readonly YellowGreen: System.Drawing.Color;
|
|
readonly R: number;
|
|
readonly G: number;
|
|
readonly B: number;
|
|
readonly A: number;
|
|
readonly IsKnownColor: boolean;
|
|
readonly IsEmpty: boolean;
|
|
readonly IsNamedColor: boolean;
|
|
readonly IsSystemColor: boolean;
|
|
readonly NameAndARGBValue: string;
|
|
readonly Name: string;
|
|
readonly Value: number;
|
|
FromArgb(argb: number): System.Drawing.Color;
|
|
FromArgb(alpha: number, red: number, green: number, blue: number): System.Drawing.Color;
|
|
FromArgb(alpha: number, baseColor: System.Drawing.Color): System.Drawing.Color;
|
|
FromArgb(red: number, green: number, blue: number): System.Drawing.Color;
|
|
FromKnownColor(color: System.Drawing.KnownColor): System.Drawing.Color;
|
|
FromName(name: string): System.Drawing.Color;
|
|
GetBrightness(): number;
|
|
GetHue(): number;
|
|
GetSaturation(): number;
|
|
ToArgb(): number;
|
|
ToKnownColor(): System.Drawing.KnownColor;
|
|
ToString(): string;
|
|
Equals(obj: any): boolean;
|
|
GetHashCode(): number;
|
|
}
|
|
|
|
enum KnownColor {
|
|
ActiveBorder = 1,
|
|
ActiveCaption = 2,
|
|
ActiveCaptionText = 3,
|
|
AppWorkspace = 4,
|
|
Control = 5,
|
|
ControlDark = 6,
|
|
ControlDarkDark = 7,
|
|
ControlLight = 8,
|
|
ControlLightLight = 9,
|
|
ControlText = 10,
|
|
Desktop = 11,
|
|
GrayText = 12,
|
|
Highlight = 13,
|
|
HighlightText = 14,
|
|
HotTrack = 15,
|
|
InactiveBorder = 16,
|
|
InactiveCaption = 17,
|
|
InactiveCaptionText = 18,
|
|
Info = 19,
|
|
InfoText = 20,
|
|
Menu = 21,
|
|
MenuText = 22,
|
|
ScrollBar = 23,
|
|
Window = 24,
|
|
WindowFrame = 25,
|
|
WindowText = 26,
|
|
Transparent = 27,
|
|
AliceBlue = 28,
|
|
AntiqueWhite = 29,
|
|
Aqua = 30,
|
|
Aquamarine = 31,
|
|
Azure = 32,
|
|
Beige = 33,
|
|
Bisque = 34,
|
|
Black = 35,
|
|
BlanchedAlmond = 36,
|
|
Blue = 37,
|
|
BlueViolet = 38,
|
|
Brown = 39,
|
|
BurlyWood = 40,
|
|
CadetBlue = 41,
|
|
Chartreuse = 42,
|
|
Chocolate = 43,
|
|
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,
|
|
DimGray = 68,
|
|
DodgerBlue = 69,
|
|
Firebrick = 70,
|
|
FloralWhite = 71,
|
|
ForestGreen = 72,
|
|
Fuchsia = 73,
|
|
Gainsboro = 74,
|
|
GhostWhite = 75,
|
|
Gold = 76,
|
|
Goldenrod = 77,
|
|
Gray = 78,
|
|
Green = 79,
|
|
GreenYellow = 80,
|
|
Honeydew = 81,
|
|
HotPink = 82,
|
|
IndianRed = 83,
|
|
Indigo = 84,
|
|
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,
|
|
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,
|
|
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,
|
|
Turquoise = 161,
|
|
Violet = 162,
|
|
Wheat = 163,
|
|
White = 164,
|
|
WhiteSmoke = 165,
|
|
Yellow = 166,
|
|
YellowGreen = 167,
|
|
ButtonFace = 168,
|
|
ButtonHighlight = 169,
|
|
ButtonShadow = 170,
|
|
GradientActiveCaption = 171,
|
|
GradientInactiveCaption = 172,
|
|
MenuBar = 173,
|
|
MenuHighlight = 174
|
|
}
|
|
|
|
class Point {
|
|
readonly IsEmpty: boolean;
|
|
X: number;
|
|
Y: number;
|
|
constructor(x: number, y: number);
|
|
constructor(sz: System.Drawing.Size);
|
|
constructor(dw: number);
|
|
Add(pt: System.Drawing.Point, sz: System.Drawing.Size): System.Drawing.Point;
|
|
Subtract(pt: System.Drawing.Point, sz: System.Drawing.Size): System.Drawing.Point;
|
|
Ceiling(value: System.Drawing.PointF): System.Drawing.Point;
|
|
Truncate(value: System.Drawing.PointF): System.Drawing.Point;
|
|
Round(value: System.Drawing.PointF): System.Drawing.Point;
|
|
Equals(obj: any): boolean;
|
|
GetHashCode(): number;
|
|
Offset(dx: number, dy: number): void;
|
|
Offset(p: System.Drawing.Point): void;
|
|
ToString(): string;
|
|
}
|
|
|
|
class PointF {
|
|
readonly IsEmpty: boolean;
|
|
X: number;
|
|
Y: number;
|
|
constructor(x: number, y: number);
|
|
Add(pt: System.Drawing.PointF, sz: System.Drawing.Size): System.Drawing.PointF;
|
|
Subtract(pt: System.Drawing.PointF, sz: System.Drawing.Size): System.Drawing.PointF;
|
|
Add(pt: System.Drawing.PointF, sz: System.Drawing.SizeF): System.Drawing.PointF;
|
|
Subtract(pt: System.Drawing.PointF, sz: System.Drawing.SizeF): System.Drawing.PointF;
|
|
Equals(obj: any): boolean;
|
|
GetHashCode(): number;
|
|
ToString(): string;
|
|
}
|
|
|
|
class Rectangle {
|
|
Location: System.Drawing.Point;
|
|
Size: System.Drawing.Size;
|
|
X: number;
|
|
Y: number;
|
|
Width: number;
|
|
Height: number;
|
|
readonly Left: number;
|
|
readonly Top: number;
|
|
readonly Right: number;
|
|
readonly Bottom: number;
|
|
readonly IsEmpty: boolean;
|
|
constructor(x: number, y: number, width: number, height: number);
|
|
constructor(location: System.Drawing.Point, size: System.Drawing.Size);
|
|
FromLTRB(left: number, top: number, right: number, bottom: number): System.Drawing.Rectangle;
|
|
Equals(obj: any): boolean;
|
|
Ceiling(value: System.Drawing.RectangleF): System.Drawing.Rectangle;
|
|
Truncate(value: System.Drawing.RectangleF): System.Drawing.Rectangle;
|
|
Round(value: System.Drawing.RectangleF): System.Drawing.Rectangle;
|
|
Contains(x: number, y: number): boolean;
|
|
Contains(pt: System.Drawing.Point): boolean;
|
|
Contains(rect: System.Drawing.Rectangle): boolean;
|
|
GetHashCode(): number;
|
|
Inflate(width: number, height: number): void;
|
|
Inflate(size: System.Drawing.Size): void;
|
|
Inflate(rect: System.Drawing.Rectangle, x: number, y: number): System.Drawing.Rectangle;
|
|
Intersect(rect: System.Drawing.Rectangle): void;
|
|
Intersect(a: System.Drawing.Rectangle, b: System.Drawing.Rectangle): System.Drawing.Rectangle;
|
|
IntersectsWith(rect: System.Drawing.Rectangle): boolean;
|
|
Union(a: System.Drawing.Rectangle, b: System.Drawing.Rectangle): System.Drawing.Rectangle;
|
|
Offset(pos: System.Drawing.Point): void;
|
|
Offset(x: number, y: number): void;
|
|
ToString(): string;
|
|
}
|
|
|
|
class RectangleF {
|
|
Location: System.Drawing.PointF;
|
|
Size: System.Drawing.SizeF;
|
|
X: number;
|
|
Y: number;
|
|
Width: number;
|
|
Height: number;
|
|
readonly Left: number;
|
|
readonly Top: number;
|
|
readonly Right: number;
|
|
readonly Bottom: number;
|
|
readonly IsEmpty: boolean;
|
|
constructor(x: number, y: number, width: number, height: number);
|
|
constructor(location: System.Drawing.PointF, size: System.Drawing.SizeF);
|
|
FromLTRB(left: number, top: number, right: number, bottom: number): System.Drawing.RectangleF;
|
|
Equals(obj: any): boolean;
|
|
Contains(x: number, y: number): boolean;
|
|
Contains(pt: System.Drawing.PointF): boolean;
|
|
Contains(rect: System.Drawing.RectangleF): boolean;
|
|
GetHashCode(): number;
|
|
Inflate(x: number, y: number): void;
|
|
Inflate(size: System.Drawing.SizeF): void;
|
|
Inflate(rect: System.Drawing.RectangleF, x: number, y: number): System.Drawing.RectangleF;
|
|
Intersect(rect: System.Drawing.RectangleF): void;
|
|
Intersect(a: System.Drawing.RectangleF, b: System.Drawing.RectangleF): System.Drawing.RectangleF;
|
|
IntersectsWith(rect: System.Drawing.RectangleF): boolean;
|
|
Union(a: System.Drawing.RectangleF, b: System.Drawing.RectangleF): System.Drawing.RectangleF;
|
|
Offset(pos: System.Drawing.PointF): void;
|
|
Offset(x: number, y: number): void;
|
|
ToString(): string;
|
|
}
|
|
|
|
class Size {
|
|
readonly IsEmpty: boolean;
|
|
Width: number;
|
|
Height: number;
|
|
constructor(pt: System.Drawing.Point);
|
|
constructor(width: number, height: number);
|
|
Add(sz1: System.Drawing.Size, sz2: System.Drawing.Size): System.Drawing.Size;
|
|
Ceiling(value: System.Drawing.SizeF): System.Drawing.Size;
|
|
Subtract(sz1: System.Drawing.Size, sz2: System.Drawing.Size): System.Drawing.Size;
|
|
Truncate(value: System.Drawing.SizeF): System.Drawing.Size;
|
|
Round(value: System.Drawing.SizeF): System.Drawing.Size;
|
|
Equals(obj: any): boolean;
|
|
GetHashCode(): number;
|
|
ToString(): string;
|
|
}
|
|
|
|
class SizeF {
|
|
readonly IsEmpty: boolean;
|
|
Width: number;
|
|
Height: number;
|
|
constructor(size: System.Drawing.SizeF);
|
|
constructor(pt: System.Drawing.PointF);
|
|
constructor(width: number, height: number);
|
|
Add(sz1: System.Drawing.SizeF, sz2: System.Drawing.SizeF): System.Drawing.SizeF;
|
|
Subtract(sz1: System.Drawing.SizeF, sz2: System.Drawing.SizeF): System.Drawing.SizeF;
|
|
Equals(obj: any): boolean;
|
|
GetHashCode(): number;
|
|
ToPointF(): System.Drawing.PointF;
|
|
ToSize(): System.Drawing.Size;
|
|
ToString(): string;
|
|
}
|
|
|
|
}
|