Skip to content

TileRect

Record struct in Oadm.Sdk.Layout · Oadm.Sdk.dll

A rectangle of grid cells: the place of one tile (a camera of a Live View view, a widget of a dashboard).

public readonly record struct TileRect(int X, int Y, int Width, int Height)

Parameters

  • X: The left column, 0-based.
  • Y: The top row, 0-based.
  • Width: Columns.
  • Height: Rows.
int Height { get; init; }

Rows.

int Width { get; init; }

Columns.

int X { get; init; }

The left column, 0-based.

int Y { get; init; }

The top row, 0-based.

bool Overlaps(TileRect other)

Whether the two rectangles share a cell.