Nez.Portable/UI/Base/Element.cs
/// <summary>
/// Add x and y to current position
/// </summary>
/// <param name="x">The x coordinate.</param>
/// <param name="y">The y coordinate.</param>
Add x and y to current position
Add x and y to current position
public void moveBy(float x, float y)
        {
            if (x != 0 || y != 0)
            {
                this.x += x;
                this.y += y;
                positionChanged();
            }
        }
public void moveBy ( float x , float y ) { if ( x != 0 || y != 0 ) { this . x += x ; this . y += y ; positionChanged ( ) ; } }
Add x and y to current position
Add x and y to current position
x
float
The x coordinate.
The x coordinate .
y
float
The y coordinate.
The y coordinate .