#ifndef _RECT_H_ #define _RECT_H_ #include "common.h" #include "shape.h" struct _rect { // int invalid; struct _rect *self; // super struct _shape *shape; // attribute double width, height; }; struct _rect *rect_new(double width, double height); double rect_area(void *self, void *parent); void rect_draw(void *self, void *parent); #endif