Struct CellRect
A rectangle of cells: its top left cell and its size.
Assembly: DarkEffekt.Terminal.UI
Section titled “Assembly: DarkEffekt.Terminal.UI”public readonly struct CellRectProperties
Section titled “Properties”public int Right { get; }Bottom
Section titled “Bottom”public int Bottom { get; }IsEmpty
Section titled “IsEmpty”public bool IsEmpty { get; }public CellSize Size { get; }Fields
Section titled “Fields”public readonly int Xpublic readonly int Ypublic readonly int WidthHeight
Section titled “Height”public readonly int HeightMethods
Section titled “Methods”Contains(int, int)
Section titled “Contains(int, int)”public bool Contains(int x, int y)Returns
Section titled “Returns”System.Boolean
Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Int32 |
x |
System.Int32 |
y |
Intersect(CellRect)
Section titled “Intersect(CellRect)”The part both rectangles cover.
public CellRect Intersect(CellRect other)Returns
Section titled “Returns”DarkEffekt.Terminal.UI.CellRect
Parameters
Section titled “Parameters”| Type | Name |
|---|---|
| DarkEffekt.Terminal.UI.CellRect | other |
Inset(int)
Section titled “Inset(int)”This rectangle pulled in by a number of cells on every side.
public CellRect Inset(int cells)Returns
Section titled “Returns”DarkEffekt.Terminal.UI.CellRect
Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Int32 |
cells |
Equals(CellRect)
Section titled “Equals(CellRect)”Indicates whether the current object is equal to another object of the same type.
public bool Equals(CellRect other)Returns
Section titled “Returns”System.Boolean: true if the current object is equal to the other parameter; otherwise, false.
Parameters
Section titled “Parameters”| Type | Name | Description |
|---|---|---|
| DarkEffekt.Terminal.UI.CellRect | other | An object to compare with this object. |
Equals(object)
Section titled “Equals(object)”Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)Returns
Section titled “Returns”System.Boolean: true if obj and this instance are the same type and represent the same value; otherwise, false.
Parameters
Section titled “Parameters”| Type | Name | Description |
|---|---|---|
System.Object |
obj | The object to compare with the current instance. |
GetHashCode()
Section titled “GetHashCode()”Returns the hash code for this instance.
public override int GetHashCode()Returns
Section titled “Returns”System.Int32: A 32-bit signed integer that is the hash code for this instance.
ToString()
Section titled “ToString()”Returns the fully qualified type name of this instance.
public override string ToString()Returns
Section titled “Returns”System.String: The fully qualified type name.