V1/Toolbox.NETMF.Hardware.LcdBoost/LcdBoostProxy.cs
/// <summary>
/// Set the starting (reference) position
/// to be used by any further text operation
/// </summary>
/// <param name="x"></param>
/// <param name="y"></param>
Set the starting (reference) position
to be used by any further text operation
Set the starting ( reference ) position to be used by any further text operation
public void SetCursorPosition(
            int x,
            int y
            )
        {
            if (x < 0)
                x = 0;
            else if (x >= this.Driver.Width)
                x = this.Driver.Width - 1;
            if (y < 1)
                y = 0;
            else if (y >= this.Driver.Height)
                y = this.Driver.Height - 1;
            this._cursorX = x;
            this._cursorY = y;
        }
public void SetCursorPosition ( int x , int y ) { if ( x < 0 ) x = 0 ; else if ( x >= this . Driver . Width ) x = this . Driver . Width - 1 ; if ( y < 1 ) y = 0 ; else if ( y >= this . Driver . Height ) y = this . Driver . Height - 1 ; this . _cursorX = x ; this . _cursorY = y ; }
Set the starting (reference) position
to be used by any further text operation
Set the starting ( reference ) position to be used by any further text operation
//adjust the x-coord //adjust the y-coord
x
int
None
y
int
None