Winsize2 alternative for Mac OS

Does anyone know of a Winsize2 alternative for Mac OS?