Allocate the memory for a new SDLRect and fill it with x, y, w and h

As with malloc, the new instances must then be freed with free.

Property definitions

sdl2 $ SDLRect :: new
	# Allocate the memory for a new `SDLRect` and fill it with `x`, `y`, `w` and `h`
	#
	# As with `malloc`, the new instances must then be freed with `free`.
	new (x, y, w, h: Int)
	do
		var rect = new SDLRect.malloc
		rect.set(x, y, w, h)
		return rect
	end
lib/sdl2/sdl2_base.nit:480,2--488,4