public override void StopTracking(PointF lastPoint, PointF stopPoint, NSView inView, bool mouseIsUp) { if (trackingCell != null) { try { trackingCell.StopTracking (lastPoint, stopPoint, inView, mouseIsUp); } finally { trackingCell = null; } } }
void ICopiableObject.CopyFrom(object other) { var ob = (CompositeCell)other; source = ob.source; val = ob.val; tablePosition = ob.tablePosition; direction = ob.direction; trackingCell = ob.trackingCell; cells = new List<ICellRenderer> (); foreach (var c in ob.cells) { var copy = Activator.CreateInstance (c.GetType ()); ((ICopiableObject)copy).CopyFrom (c); cells.Add ((ICellRenderer) copy); } if (tablePosition != null) Fill (); }
public override bool StartTracking(PointF startPoint, NSView inView) { foreach (NSCell c in cells) { if (c.StartTracking (startPoint, inView)) { trackingCell = c; return true; } } return false; }
public CGRect GetCellRect (CGRect cellFrame, NSCell cell) { foreach (var c in GetCells (cellFrame)) { if (c.Cell == cell) return c.Frame; } return CGRect.Empty; }
public RectangleF GetCellRect(RectangleF cellFrame, NSCell cell) { if (tablePosition is TableRow) { foreach (var c in GetCells (cellFrame)) { if (c.Cell == cell) return c.Frame; } } return RectangleF.Empty; }
public virtual void UpdateCellInside(NSCell aCell);
void ICopiableObject.CopyFrom (object other) { var ob = (CompositeCell)other; if (ob.source == null) throw new ArgumentException ("Cannot copy from a CompositeCell with a null `source`"); context = ob.context; source = ob.source; val = ob.val; tablePosition = ob.tablePosition; direction = ob.direction; trackingCell = ob.trackingCell; cells = new List<ICellRenderer> (); foreach (var c in ob.cells) { var copy = (ICellRenderer) Activator.CreateInstance (c.GetType ()); copy.CopyFrom (c); AddCell (copy); } if (tablePosition != null) Fill (); }
public virtual void UpdateCell(NSCell aCell);
public virtual void SelectCell(NSCell aCell);
public virtual void InvalidateIntrinsicContentSizeForCell(NSCell cell);
public virtual void DrawCellInside(NSCell aCell);
public virtual void DrawCell(NSCell aCell);