Table of Contents

Class Size

Namespace
Graphene
Assembly
Graphene-1.0.dll
public sealed class Size : BoxedRecord, IEquatable<Size>
Inheritance
Size
Implements
Inherited Members

Constructors

Size()

public Size()

Size(SizeOwnedHandle)

public Size(SizeOwnedHandle handle)

Parameters

handle SizeOwnedHandle

Properties

Handle

public SizeOwnedHandle Handle { get; }

Property Value

SizeOwnedHandle

Height

public float Height { get; set; }

Property Value

float

Width

public float Width { get; set; }

Property Value

float

Methods

Alloc()

[Version("1.0")]
public static Size Alloc()

Returns

Size

Equal(Size)

[Version("1.0")]
public bool Equal(Size b)

Parameters

b Size

Returns

bool

Equals(Size?)

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

public bool Equals(Size? other)

Parameters

other Size

An object to compare with this object.

Returns

bool

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

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

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

Free()

[Version("1.0")]
public void Free()

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Init(float, float)

[Version("1.0")]
public Size Init(float width, float height)

Parameters

width float
height float

Returns

Size

InitFromSize(Size)

[Version("1.0")]
public Size InitFromSize(Size src)

Parameters

src Size

Returns

Size

Zero()

[Version("1.0")]
public static Size Zero()

Returns

Size