297 lines
13 KiB
C#
297 lines
13 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Drawing
|
|
{
|
|
/// <summary>Represents an ARGB (alpha, red, green, blue) color.</summary>
|
|
// Token: 0x02000009 RID: 9
|
|
[Token(Token = "0x2000009")]
|
|
[Editor]
|
|
[TypeConverter]
|
|
[Serializable]
|
|
public struct Color
|
|
{
|
|
/// <summary>Gets the name of this <see cref="T:System.Drawing.Color" />.</summary>
|
|
/// <returns>The name of this <see cref="T:System.Drawing.Color" />.</returns>
|
|
// Token: 0x17000002 RID: 2
|
|
// (get) Token: 0x06000013 RID: 19 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000002")]
|
|
public string Name
|
|
{
|
|
[Token(Token = "0x6000013")]
|
|
[Address(RVA = "0x67E630", Offset = "0x67D430", VA = "0x18067E630")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether this <see cref="T:System.Drawing.Color" /> structure is a predefined color. Predefined colors are represented by the elements of the <see cref="T:System.Drawing.KnownColor" /> enumeration.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if this <see cref="T:System.Drawing.Color" /> was created from a predefined color by using either the <see cref="M:System.Drawing.Color.FromName(System.String)" /> method or the <see cref="M:System.Drawing.Color.FromKnownColor(System.Drawing.KnownColor)" /> method; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x17000003 RID: 3
|
|
// (get) Token: 0x06000014 RID: 20 RVA: 0x00002070 File Offset: 0x00000270
|
|
[Token(Token = "0x17000003")]
|
|
public bool IsKnownColor
|
|
{
|
|
[Token(Token = "0x6000014")]
|
|
[Address(RVA = "0x67E600", Offset = "0x67D400", VA = "0x18067E600")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether this <see cref="T:System.Drawing.Color" /> structure is a system color. A system color is a color that is used in a Windows display element. System colors are represented by elements of the <see cref="T:System.Drawing.KnownColor" /> enumeration.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if this <see cref="T:System.Drawing.Color" /> was created from a system color by using either the <see cref="M:System.Drawing.Color.FromName(System.String)" /> method or the <see cref="M:System.Drawing.Color.FromKnownColor(System.Drawing.KnownColor)" /> method; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x17000004 RID: 4
|
|
// (get) Token: 0x06000015 RID: 21 RVA: 0x00002088 File Offset: 0x00000288
|
|
[Token(Token = "0x17000004")]
|
|
public bool IsSystemColor
|
|
{
|
|
[Token(Token = "0x6000015")]
|
|
[Address(RVA = "0x67E620", Offset = "0x67D420", VA = "0x18067E620")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether this <see cref="T:System.Drawing.Color" /> structure is a named color or a member of the <see cref="T:System.Drawing.KnownColor" /> enumeration.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if this <see cref="T:System.Drawing.Color" /> was created by using either the <see cref="M:System.Drawing.Color.FromName(System.String)" /> method or the <see cref="M:System.Drawing.Color.FromKnownColor(System.Drawing.KnownColor)" /> method; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x17000005 RID: 5
|
|
// (get) Token: 0x06000016 RID: 22 RVA: 0x000020A0 File Offset: 0x000002A0
|
|
[Token(Token = "0x17000005")]
|
|
public bool IsNamedColor
|
|
{
|
|
[Token(Token = "0x6000016")]
|
|
[Address(RVA = "0x67E610", Offset = "0x67D410", VA = "0x18067E610")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000006 RID: 6
|
|
// (get) Token: 0x06000017 RID: 23 RVA: 0x000020B8 File Offset: 0x000002B8
|
|
// (set) Token: 0x06000018 RID: 24 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x17000006")]
|
|
internal long Value
|
|
{
|
|
[Token(Token = "0x6000017")]
|
|
[Address(RVA = "0x67E700", Offset = "0x67D500", VA = "0x18067E700")]
|
|
get
|
|
{
|
|
return 0L;
|
|
}
|
|
[Token(Token = "0x6000018")]
|
|
[Address(RVA = "0x461A30", Offset = "0x460830", VA = "0x180461A30")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Creates a <see cref="T:System.Drawing.Color" /> structure from the four ARGB component (alpha, red, green, and blue) values. Although this method allows a 32-bit value to be passed for each component, the value of each component is limited to 8 bits.</summary>
|
|
/// <param name="alpha">The alpha component. Valid values are 0 through 255.</param>
|
|
/// <param name="red">The red component. Valid values are 0 through 255.</param>
|
|
/// <param name="green">The green component. Valid values are 0 through 255.</param>
|
|
/// <param name="blue">The blue component. Valid values are 0 through 255.</param>
|
|
/// <returns>The <see cref="T:System.Drawing.Color" /> that this method creates.</returns>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="alpha" />, <paramref name="red" />, <paramref name="green" />, or <paramref name="blue" /> is less than 0 or greater than 255.</exception>
|
|
// Token: 0x06000019 RID: 25 RVA: 0x000020D0 File Offset: 0x000002D0
|
|
[Token(Token = "0x6000019")]
|
|
[Address(RVA = "0x67DFA0", Offset = "0x67CDA0", VA = "0x18067DFA0")]
|
|
public static Color FromArgb(int alpha, int red, int green, int blue)
|
|
{
|
|
return default(Color);
|
|
}
|
|
|
|
/// <summary>Gets the 32-bit ARGB value of this <see cref="T:System.Drawing.Color" /> structure.</summary>
|
|
/// <returns>The 32-bit ARGB value of this <see cref="T:System.Drawing.Color" />.</returns>
|
|
// Token: 0x0600001A RID: 26 RVA: 0x000020E8 File Offset: 0x000002E8
|
|
[Token(Token = "0x600001A")]
|
|
[Address(RVA = "0x67E320", Offset = "0x67D120", VA = "0x18067E320")]
|
|
public int ToArgb()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Creates a <see cref="T:System.Drawing.Color" /> structure from the specified predefined color.</summary>
|
|
/// <param name="color">An element of the <see cref="T:System.Drawing.KnownColor" /> enumeration.</param>
|
|
/// <returns>The <see cref="T:System.Drawing.Color" /> that this method creates.</returns>
|
|
// Token: 0x0600001B RID: 27 RVA: 0x00002100 File Offset: 0x00000300
|
|
[Token(Token = "0x600001B")]
|
|
[Address(RVA = "0x67E100", Offset = "0x67CF00", VA = "0x18067E100")]
|
|
public static Color FromKnownColor(KnownColor color)
|
|
{
|
|
return default(Color);
|
|
}
|
|
|
|
/// <summary>Tests whether two specified <see cref="T:System.Drawing.Color" /> structures are equivalent.</summary>
|
|
/// <param name="left">The <see cref="T:System.Drawing.Color" /> that is to the left of the equality operator.</param>
|
|
/// <param name="right">The <see cref="T:System.Drawing.Color" /> that is to the right of the equality operator.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the two <see cref="T:System.Drawing.Color" /> structures are equal; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x0600001C RID: 28 RVA: 0x00002118 File Offset: 0x00000318
|
|
[Token(Token = "0x600001C")]
|
|
[Address(RVA = "0x67E8E0", Offset = "0x67D6E0", VA = "0x18067E8E0")]
|
|
public static bool operator ==(Color left, Color right)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Specifies whether this <see cref="T:System.Drawing.Color" /> structure is uninitialized.</summary>
|
|
/// <returns>This property returns <see langword="true" /> if this color is uninitialized; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x17000007 RID: 7
|
|
// (get) Token: 0x0600001D RID: 29 RVA: 0x00002130 File Offset: 0x00000330
|
|
[Token(Token = "0x17000007")]
|
|
public bool IsEmpty
|
|
{
|
|
[Token(Token = "0x600001D")]
|
|
[Address(RVA = "0x67E5F0", Offset = "0x67D3F0", VA = "0x18067E5F0")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the alpha component value of this <see cref="T:System.Drawing.Color" /> structure.</summary>
|
|
/// <returns>The alpha component value of this <see cref="T:System.Drawing.Color" />.</returns>
|
|
// Token: 0x17000008 RID: 8
|
|
// (get) Token: 0x0600001E RID: 30 RVA: 0x00002148 File Offset: 0x00000348
|
|
[Token(Token = "0x17000008")]
|
|
public byte A
|
|
{
|
|
[Token(Token = "0x600001E")]
|
|
[Address(RVA = "0x67E5B0", Offset = "0x67D3B0", VA = "0x18067E5B0")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the red component value of this <see cref="T:System.Drawing.Color" /> structure.</summary>
|
|
/// <returns>The red component value of this <see cref="T:System.Drawing.Color" />.</returns>
|
|
// Token: 0x17000009 RID: 9
|
|
// (get) Token: 0x0600001F RID: 31 RVA: 0x00002160 File Offset: 0x00000360
|
|
[Token(Token = "0x17000009")]
|
|
public byte R
|
|
{
|
|
[Token(Token = "0x600001F")]
|
|
[Address(RVA = "0x67E6E0", Offset = "0x67D4E0", VA = "0x18067E6E0")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the green component value of this <see cref="T:System.Drawing.Color" /> structure.</summary>
|
|
/// <returns>The green component value of this <see cref="T:System.Drawing.Color" />.</returns>
|
|
// Token: 0x1700000A RID: 10
|
|
// (get) Token: 0x06000020 RID: 32 RVA: 0x00002178 File Offset: 0x00000378
|
|
[Token(Token = "0x1700000A")]
|
|
public byte G
|
|
{
|
|
[Token(Token = "0x6000020")]
|
|
[Address(RVA = "0x67E5D0", Offset = "0x67D3D0", VA = "0x18067E5D0")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the blue component value of this <see cref="T:System.Drawing.Color" /> structure.</summary>
|
|
/// <returns>The blue component value of this <see cref="T:System.Drawing.Color" />.</returns>
|
|
// Token: 0x1700000B RID: 11
|
|
// (get) Token: 0x06000021 RID: 33 RVA: 0x00002190 File Offset: 0x00000390
|
|
[Token(Token = "0x1700000B")]
|
|
public byte B
|
|
{
|
|
[Token(Token = "0x6000021")]
|
|
[Address(RVA = "0x67E320", Offset = "0x67D120", VA = "0x18067E320")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Tests whether the specified object is a <see cref="T:System.Drawing.Color" /> structure and is equivalent to this <see cref="T:System.Drawing.Color" /> structure.</summary>
|
|
/// <param name="obj">The object to test.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <paramref name="obj" /> is a <see cref="T:System.Drawing.Color" /> structure equivalent to this <see cref="T:System.Drawing.Color" /> structure; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x06000022 RID: 34 RVA: 0x000021A8 File Offset: 0x000003A8
|
|
[Token(Token = "0x6000022")]
|
|
[Address(RVA = "0x67DD80", Offset = "0x67CB80", VA = "0x18067DD80", Slot = "0")]
|
|
public override bool Equals(object obj)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Returns a hash code for this <see cref="T:System.Drawing.Color" /> structure.</summary>
|
|
/// <returns>An integer value that specifies the hash code for this <see cref="T:System.Drawing.Color" />.</returns>
|
|
// Token: 0x06000023 RID: 35 RVA: 0x000021C0 File Offset: 0x000003C0
|
|
[Token(Token = "0x6000023")]
|
|
[Address(RVA = "0x67E2A0", Offset = "0x67D0A0", VA = "0x18067E2A0", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Converts this <see cref="T:System.Drawing.Color" /> structure to a human-readable string.</summary>
|
|
/// <returns>A string that is the name of this <see cref="T:System.Drawing.Color" />, if the <see cref="T:System.Drawing.Color" /> is created from a predefined color by using either the <see cref="M:System.Drawing.Color.FromName(System.String)" /> method or the <see cref="M:System.Drawing.Color.FromKnownColor(System.Drawing.KnownColor)" /> method; otherwise, a string that consists of the ARGB component names and their values.</returns>
|
|
// Token: 0x06000024 RID: 36 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000024")]
|
|
[Address(RVA = "0x67E330", Offset = "0x67D130", VA = "0x18067E330", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000025 RID: 37 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000025")]
|
|
[Address(RVA = "0x67DC30", Offset = "0x67CA30", VA = "0x18067DC30")]
|
|
private static void CheckRGBValues(int red, int green, int blue)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000026 RID: 38 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000026")]
|
|
[Address(RVA = "0x67DCF0", Offset = "0x67CAF0", VA = "0x18067DCF0")]
|
|
private static ArgumentException CreateColorArgumentException(int value, string color)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000027 RID: 39 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000027")]
|
|
[Address(RVA = "0x67DB10", Offset = "0x67C910", VA = "0x18067DB10")]
|
|
private static void CheckARGBValues(int alpha, int red, int green, int blue)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000004 RID: 4
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4000004")]
|
|
private long value;
|
|
|
|
// Token: 0x04000005 RID: 5
|
|
[FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x4000005")]
|
|
internal short state;
|
|
|
|
// Token: 0x04000006 RID: 6
|
|
[FieldOffset(Offset = "0xA")]
|
|
[Token(Token = "0x4000006")]
|
|
internal short knownColor;
|
|
|
|
// Token: 0x04000007 RID: 7
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000007")]
|
|
internal string name;
|
|
}
|
|
}
|