Tinkr2/4.2/AphelionCore/AphelionCore/Core/TypeDef.cs
/// <summary>
/// Subtracts height &amp; width from existing size
/// </summary>
/// <param name="subtractWidth">Width to reduce</param>
/// <param name="subtractHeight">Height to reduce</param>
Subtracts height & width from existing size
Subtracts height & width from existing size
public void Shrink(int subtractWidth, int subtractHeight)
      {
         Width += subtractWidth;
         if (Width < 0)
         {
            Width = 0;
         }
         Height += subtractHeight;
         if (Height < 0)
         {
            Height = 0;
         }
      }
public void Shrink ( int subtractWidth , int subtractHeight ) { Width += subtractWidth ; if ( Width < 0 ) { Width = 0 ; } Height += subtractHeight ; if ( Height < 0 ) { Height = 0 ; } }
Subtracts height & width from existing size
Subtracts height & width from existing size
subtractWidth
int
Width to reduce
Width to reduce
subtractHeight
int
Height to reduce
Height to reduce