Files
Aug2021-Cpp2IL-Dump/System.Drawing/System/Drawing/Size.cs
T
2026-04-10 22:50:51 +02:00

113 lines
4.8 KiB
C#

using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Drawing
{
/// <summary>Stores an ordered pair of integers, which specify a <see cref="P:System.Drawing.Size.Height" /> and <see cref="P:System.Drawing.Size.Width" />.</summary>
// Token: 0x0200002B RID: 43
[Token(Token = "0x200002B")]
[TypeConverter]
[TypeConverter(typeof(SizeConverter))]
[ComVisible(true)]
[Serializable]
public struct Size
{
/// <summary>Tests whether two <see cref="T:System.Drawing.Size" /> structures are equal.</summary>
/// <param name="sz1">The <see cref="T:System.Drawing.Size" /> structure on the left side of the equality operator.</param>
/// <param name="sz2">The <see cref="T:System.Drawing.Size" /> structure on the right of the equality operator.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="sz1" /> and <paramref name="sz2" /> have equal width and height; otherwise, <see langword="false" />.</returns>
// Token: 0x060000DA RID: 218 RVA: 0x000025B0 File Offset: 0x000007B0
[Token(Token = "0x60000DA")]
[Address(RVA = "0x68DF80", Offset = "0x68CD80", VA = "0x18068DF80")]
public static bool operator ==(Size sz1, Size sz2)
{
return default(bool);
}
/// <summary>Initializes a new instance of the <see cref="T:System.Drawing.Size" /> structure from the specified dimensions.</summary>
/// <param name="width">The width component of the new <see cref="T:System.Drawing.Size" />.</param>
/// <param name="height">The height component of the new <see cref="T:System.Drawing.Size" />.</param>
// Token: 0x060000DB RID: 219 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60000DB")]
[Address(RVA = "0x4C30C0", Offset = "0x4C1EC0", VA = "0x1804C30C0")]
public Size(int width, int height)
{
}
/// <summary>Gets or sets the horizontal component of this <see cref="T:System.Drawing.Size" /> structure.</summary>
/// <returns>The horizontal component of this <see cref="T:System.Drawing.Size" /> structure, typically measured in pixels.</returns>
// Token: 0x1700001B RID: 27
// (get) Token: 0x060000DC RID: 220 RVA: 0x000025C8 File Offset: 0x000007C8
[Token(Token = "0x1700001B")]
public int Width
{
[Token(Token = "0x60000DC")]
[Address(RVA = "0x57C620", Offset = "0x57B420", VA = "0x18057C620")]
get
{
return 0;
}
}
/// <summary>Gets or sets the vertical component of this <see cref="T:System.Drawing.Size" /> structure.</summary>
/// <returns>The vertical component of this <see cref="T:System.Drawing.Size" /> structure, typically measured in pixels.</returns>
// Token: 0x1700001C RID: 28
// (get) Token: 0x060000DD RID: 221 RVA: 0x000025E0 File Offset: 0x000007E0
[Token(Token = "0x1700001C")]
public int Height
{
[Token(Token = "0x60000DD")]
[Address(RVA = "0x5DD040", Offset = "0x5DBE40", VA = "0x1805DD040")]
get
{
return 0;
}
}
/// <summary>Tests to see whether the specified object is a <see cref="T:System.Drawing.Size" /> structure with the same dimensions as this <see cref="T:System.Drawing.Size" /> structure.</summary>
/// <param name="obj">The <see cref="T:System.Object" /> to test.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="obj" /> is a <see cref="T:System.Drawing.Size" /> and has the same width and height as this <see cref="T:System.Drawing.Size" />; otherwise, <see langword="false" />.</returns>
// Token: 0x060000DE RID: 222 RVA: 0x000025F8 File Offset: 0x000007F8
[Token(Token = "0x60000DE")]
[Address(RVA = "0x68F120", Offset = "0x68DF20", VA = "0x18068F120", Slot = "0")]
public override bool Equals(object obj)
{
return default(bool);
}
/// <summary>Returns a hash code for this <see cref="T:System.Drawing.Size" /> structure.</summary>
/// <returns>An integer value that specifies a hash value for this <see cref="T:System.Drawing.Size" /> structure.</returns>
// Token: 0x060000DF RID: 223 RVA: 0x00002610 File Offset: 0x00000810
[Token(Token = "0x60000DF")]
[Address(RVA = "0x68DED0", Offset = "0x68CCD0", VA = "0x18068DED0", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
/// <summary>Creates a human-readable string that represents this <see cref="T:System.Drawing.Size" /> structure.</summary>
/// <returns>A string that represents this <see cref="T:System.Drawing.Size" />.</returns>
// Token: 0x060000E0 RID: 224 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60000E0")]
[Address(RVA = "0x68F1B0", Offset = "0x68DFB0", VA = "0x18068F1B0", Slot = "3")]
public override string ToString()
{
return null;
}
// Token: 0x040000F7 RID: 247
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
[Token(Token = "0x40000F7")]
private int width;
// Token: 0x040000F8 RID: 248
[global::Cpp2IlInjected.FieldOffset(Offset = "0x4")]
[Token(Token = "0x40000F8")]
private int height;
}
}