Class Size
- Namespace
- Graphene
- Assembly
- Graphene-1.0.dll
public sealed class Size : BoxedRecord, GTypeProvider, InstanceFactory, IEquatable<Size>, IDisposable
- 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
Height
public float Height { get; set; }
Property Value
Width
public float Width { get; set; }
Property Value
Methods
Alloc()
[Version("1.0")]
public static Size Alloc()
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Equal(Size)
[Version("1.0")]
public bool Equal(Size b)
Parameters
b
Size
Returns
Equals(Size?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Size? other)
Parameters
other
SizeAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Free()
[Version("1.0")]
public void Free()
GetGType()
public static Type GetGType()
Returns
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
Returns
InitFromSize(Size)
[Version("1.0")]
public Size InitFromSize(Size src)
Parameters
src
Size
Returns
Zero()
[Version("1.0")]
public static Size Zero()