public FlowCell(AltCode item, Rectangle bounds, int id) { Item = item; //X = x; //Width = width; Bounds = bounds; ID = id; }
public bool Hover(Point p, out AltCode hovered) { var cell = FindCellAtPoint(p); hovered = cell?.Item; var cellId = cell?.ID ?? -1; if (_HoveredCell != cellId) { _HoveredCell = cellId; return(true); } return(false); }