Skip to content

Struct CellRect

A rectangle of cells: its top left cell and its size.

Declaration
public readonly struct CellRect
Declaration
public int Right { get; }
Declaration
public int Bottom { get; }
Declaration
public bool IsEmpty { get; }
Declaration
public CellSize Size { get; }
Declaration
public readonly int X
Declaration
public readonly int Y
Declaration
public readonly int Width
Declaration
public readonly int Height
Declaration
public bool Contains(int x, int y)

System.Boolean

Type Name
System.Int32 x
System.Int32 y

The part both rectangles cover.

Declaration
public CellRect Intersect(CellRect other)

DarkEffekt.Terminal.UI.CellRect

Type Name
DarkEffekt.Terminal.UI.CellRect other

This rectangle pulled in by a number of cells on every side.

Declaration
public CellRect Inset(int cells)

DarkEffekt.Terminal.UI.CellRect

Type Name
System.Int32 cells

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

Declaration
public bool Equals(CellRect other)

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

Type Name Description
DarkEffekt.Terminal.UI.CellRect other An object to compare with this object.

Indicates whether this instance and a specified object are equal.

Declaration
public override bool Equals(object obj)

System.Boolean: true if obj and this instance are the same type and represent the same value; otherwise, false.

Type Name Description
System.Object obj The object to compare with the current instance.

Returns the hash code for this instance.

Declaration
public override int GetHashCode()

System.Int32: A 32-bit signed integer that is the hash code for this instance.

Returns the fully qualified type name of this instance.

Declaration
public override string ToString()

System.String: The fully qualified type name.