Table of Contents

Class Rectangle

Namespace
Gdk
Assembly
Gdk-4.0.dll
public sealed class Rectangle : BoxedRecord, IEquatable<Rectangle>
Inheritance
Rectangle
Implements
Inherited Members

Constructors

Rectangle()

public Rectangle()

Rectangle(RectangleOwnedHandle)

public Rectangle(RectangleOwnedHandle handle)

Parameters

handle RectangleOwnedHandle

Properties

Handle

public RectangleOwnedHandle Handle { get; }

Property Value

RectangleOwnedHandle

Height

public int Height { get; set; }

Property Value

int

Width

public int Width { get; set; }

Property Value

int

X

public int X { get; set; }

Property Value

int

Y

public int Y { get; set; }

Property Value

int

Methods

ContainsPoint(int, int)

public bool ContainsPoint(int x, int y)

Parameters

x int
y int

Returns

bool

Equal(Rectangle)

public bool Equal(Rectangle rect2)

Parameters

rect2 Rectangle

Returns

bool

Equals(Rectangle?)

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

public bool Equals(Rectangle? other)

Parameters

other Rectangle

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.

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.