예제 #1
0
 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;
         }
     }
 }
예제 #2
0
 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 ();
 }
예제 #3
0
 public override bool StartTracking(PointF startPoint, NSView inView)
 {
     foreach (NSCell c in cells) {
         if (c.StartTracking (startPoint, inView)) {
             trackingCell = c;
             return true;
         }
     }
     return false;
 }
예제 #4
0
파일: CompositeCell.cs 프로젝트: m13253/xwt
		public CGRect GetCellRect (CGRect cellFrame, NSCell cell)
		{
			foreach (var c in GetCells (cellFrame)) {
				if (c.Cell == cell)
					return c.Frame;
			}
			return CGRect.Empty;
		}
예제 #5
0
파일: CompositeCell.cs 프로젝트: jfreax/xwt
 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;
 }
예제 #6
0
 public virtual void UpdateCellInside(NSCell aCell);
예제 #7
0
파일: CompositeCell.cs 프로젝트: m13253/xwt
		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 ();
		}
예제 #8
0
 public virtual void UpdateCell(NSCell aCell);
예제 #9
0
 public virtual void SelectCell(NSCell aCell);
예제 #10
0
 public virtual void InvalidateIntrinsicContentSizeForCell(NSCell cell);
예제 #11
0
 public virtual void DrawCellInside(NSCell aCell);
예제 #12
0
 public virtual void DrawCell(NSCell aCell);