public void ClampToBounds(RectInt bounds);
RectInt
Привязывает положение и размер RectInt к заданной границе.