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
Height
public int Height { get; set; }
Property Value
Width
public int Width { get; set; }
Property Value
X
public int X { get; set; }
Property Value
Y
public int Y { get; set; }
Property Value
Methods
ContainsPoint(int, int)
public bool ContainsPoint(int x, int y)
Parameters
Returns
Equal(Rectangle)
public bool Equal(Rectangle rect2)
Parameters
rect2
Rectangle
Returns
Equals(Rectangle?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Rectangle? other)
Parameters
other
RectangleAn 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
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.