Example #1
0
 protected RowColBase(
     int RowNum, int ColNum, LocationFrame LocationFrame,
     RowColRelative RowColRelative, CharPoint ContentStart)
     : this(RowNum, ColNum, LocationFrame, new ScreenDim(24, 80),
            RowColRelative, ContentStart)
 {
 }
Example #2
0
 public OneRowCol(int RowNum, int ColNum,
                  RowColRelative RowColRelative = RowColRelative.Parent,
                  CharPoint ContentStart        = null)
     : base(RowNum, ColNum, LocationFrame.OneBased, new ScreenDim(24, 80),
            RowColRelative, ContentStart)
 {
 }
Example #3
0
 public ZeroRowCol(
     int RowNum, int ColNum, ScreenDim Dim,
     RowColRelative RowColRelative = RowColRelative.Parent,
     CharPoint ContentStart        = null)
     : base(RowNum, ColNum, LocationFrame.ZeroBased, Dim, RowColRelative,
            ContentStart)
 {
 }
Example #4
0
        protected RowColBase(
            int RowNum, int ColNum, LocationFrame LocationFrame, ScreenDim Dim,
            RowColRelative RowColRelative, CharPoint ContentStart)
        {
            this.RowNum         = RowNum;
            this.ColNum         = ColNum;
            this.Dim            = Dim;
            this.LocationFrame  = LocationFrame;
            this.RowColRelative = RowColRelative;
            this.ContentStart   = ContentStart;

            if (LocationFrame == LocationFrame.OneBased)
            {
                this.HorzBounds = new IntPair(1, this.Dim.Width);
                this.VertBounds = new IntPair(1, this.Dim.Height);
            }
            else
            {
                this.HorzBounds = new IntPair(0, this.Dim.Width - 1);
                this.VertBounds = new IntPair(0, this.Dim.Height - 1);
            }
        }
Example #5
0
        protected RowColBase(
            LocationFrame LocationFrame, ScreenDim Dim, RowColRelative RowNumRelative)
        {
            this.RowNum = RowNum;
            this.ColNum = ColNum;
            int width  = Dim.Width;
            int height = Dim.Height;

            this.RowColRelative = RowNumRelative;
            if (LocationFrame == LocationFrame.OneBased)
            {
                this.HorzBounds = new IntPair(1, width);
                this.VertBounds = new IntPair(1, height);
            }
            else
            {
                this.HorzBounds = new IntPair(0, width - 1);
                this.VertBounds = new IntPair(0, height - 1);
            }

            // init row and col to values that are out of bounds.
            this.RowNum = this.VertBounds.a - 1;
            this.ColNum = this.HorzBounds.a - 1;
        }