13 MODULE = SDL::Rect PACKAGE = SDL::Rect PREFIX = rect_
16 rect_new (CLASS, x, y, w, h)
23 RETVAL = (SDL_Rect *) safemalloc (sizeof(SDL_Rect));
32 SetRect(rect, x, y, w, h)
46 rect_RectX ( rect, ... )
49 if (items > 1 ) rect->x = SvIV(ST(1));
55 rect_RectY ( rect, ... )
58 if (items > 1 ) rect->y = SvIV(ST(1));
64 rect_RectW ( rect, ... )
67 if (items > 1 ) rect->w = SvIV(ST(1));
73 rect_RectH ( rect, ... )
76 if (items > 1 ) rect->h = SvIV(ST(1));
86 printf("RectPtr::DESTROY\n");
87 safefree( (char *)self );