Pike v8.0 release 1738

Method SDL.Rect()->cast()


Method cast

(array)SDL.Rect()
(mapping)SDL.Rect()

Description

It is possible to cast a Rect object to an array or to a mapping. The array will have the values in the order x, y, w, h and the mapping will have the values associated with the corresponding names.