Table of Contents

Class Rect

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

Constructors

Rect()

public Rect()

Rect(RectOwnedHandle)

public Rect(RectOwnedHandle handle)

Parameters

handle RectOwnedHandle

Properties

Handle

public RectOwnedHandle Handle { get; }

Property Value

RectOwnedHandle

Methods

Alloc()

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

Returns

Rect

ContainsPoint(Point)

[Version("1.0")]
public bool ContainsPoint(Point p)

Parameters

p Point

Returns

bool

ContainsRect(Rect)

[Version("1.0")]
public bool ContainsRect(Rect b)

Parameters

b Rect

Returns

bool

Equal(Rect)

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

Parameters

b Rect

Returns

bool

Equals(Rect?)

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

public bool Equals(Rect? other)

Parameters

other Rect

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()

GetArea()

[Version("1.10")]
public float GetArea()

Returns

float

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.

GetHeight()

[Version("1.0")]
public float GetHeight()

Returns

float

GetWidth()

[Version("1.0")]
public float GetWidth()

Returns

float

GetX()

[Version("1.0")]
public float GetX()

Returns

float

GetY()

[Version("1.0")]
public float GetY()

Returns

float

Init(float, float, float, float)

[Version("1.0")]
public Rect Init(float x, float y, float width, float height)

Parameters

x float
y float
width float
height float

Returns

Rect

InitFromRect(Rect)

[Version("1.0")]
public Rect InitFromRect(Rect src)

Parameters

src Rect

Returns

Rect

Inset(float, float)

[Version("1.0")]
public Rect Inset(float dX, float dY)

Parameters

dX float
dY float

Returns

Rect

Normalize()

[Version("1.0")]
public Rect Normalize()

Returns

Rect

Offset(float, float)

[Version("1.0")]
public Rect Offset(float dX, float dY)

Parameters

dX float
dY float

Returns

Rect

RoundToPixel()

[Version("1.0")]
public Rect RoundToPixel()

Returns

Rect

Zero()

[Version("1.4")]
public static Rect Zero()

Returns

Rect