pike.ida.liu.se
Search for
Home > Docs > Pike reference

[Top]
SDL
SDL.Rect

SDL.Rect()->cast()


Method cast

mixed cast(string type)

Description

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

Module reference for Pike v7.8 release 116, 2008-12-31