Table of Contents

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

width int
height int

Fields

Height

[YuzuMember("1")]
public int Height

Field Value

int

Width

[YuzuMember("0")]
public int Width

Field Value

int

Zero

Returns a size with zero width and height.

public static readonly Size Zero

Field Value

Size

Methods

Equals(Size)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Size rhs)

Parameters

rhs Size

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object o)

Parameters

o object

Returns

bool

true if obj and 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

string

Operators

operator ==(Size, Size)

public static bool operator ==(Size lhs, Size rhs)

Parameters

lhs Size
rhs Size

Returns

bool

explicit operator IntVector2(Size)

public static explicit operator IntVector2(Size size)

Parameters

size Size

Returns

IntVector2

explicit operator Vector2(Size)

public static explicit operator Vector2(Size size)

Parameters

size Size

Returns

Vector2

operator !=(Size, Size)

public static bool operator !=(Size lhs, Size rhs)

Parameters

lhs Size
rhs Size

Returns

bool