Example #1
0
        public override void SetBufferContents(Coordinates origin, PS.BufferCell[,] contents)
        {
            if (contents == null)
            {
                throw new ArgumentNullException("contents");
            }

            FN.BufferCell[,] r = new FN.BufferCell[contents.GetLength(0), contents.GetLength(1)];
            for (int i = 0; i < contents.GetLength(0); ++i)
            {
                for (int j = 0; j < contents.GetLength(1); ++j)
                {
                    r[i, j] = ToBufferCell(contents[i, j]);
                }
            }
            Far.Api.UI.SetBufferContents(ToPoint(origin), r);
        }
Example #2
0
 static PS.BufferCell ToBufferCell(FN.BufferCell cell)
 {
     return(new PS.BufferCell(cell.Character, cell.ForegroundColor, cell.BackgroundColor, (PS.BufferCellType)cell.BufferCellType));
 }
Example #3
0
 public abstract void SetBufferContents(Point origin, BufferCell[,] contents);
Example #4
0
 ///
 public abstract void SetBufferContents(Place rectangle, BufferCell fill);
Example #5
0
 ///
 public abstract void ScrollBufferContents(Place source, Point destination, Place clip, BufferCell fill);