Struct Size
- Namespace
- Lime
- Assembly
- Lime.dll
Representation of width and height.
public struct Size : IEquatable<Size>
- Implements
- Inherited Members
Constructors
Size(int, int)
public Size(int width, int height)
Parameters
Fields
Height
[YuzuMember("1")]
public int Height
Field Value
Width
[YuzuMember("0")]
public int Width
Field Value
Zero
Returns a size with zero width and height.
public static readonly Size Zero
Field Value
Methods
Equals(Size)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Size rhs)
Parameters
rhsSize
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object o)
Parameters
oobject
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns string representation of this Size in the format: "Width, Height".
public override string ToString()
Returns
Operators
operator ==(Size, Size)
public static bool operator ==(Size lhs, Size rhs)
Parameters
Returns
explicit operator IntVector2(Size)
public static explicit operator IntVector2(Size size)
Parameters
sizeSize
Returns
explicit operator Vector2(Size)
public static explicit operator Vector2(Size size)
Parameters
sizeSize
Returns
operator !=(Size, Size)
public static bool operator !=(Size lhs, Size rhs)