#ifndef RECT_H #define RECT_H #include "oo.h" #define TYPE Rect DEFINE_OBJECT(TYPE); CONSTRUCTOR(TYPE); void METHOD_ARG(TYPE, init, int l, int t, int w, int h); int METHOD_ARG(TYPE, toString, char* buffer); GETTER(TYPE, int, left); SETTER(TYPE, int, left); GETTER(TYPE, int, top); SETTER(TYPE, int, top); GETTER(TYPE, int, width); SETTER(TYPE, int, width); GETTER(TYPE, int, height); SETTER(TYPE, int, height); GETTER(TYPE, int, right); GETTER(TYPE, int, bottom); #undef TYPE #endif