mirror of
https://gitee.com/apaki/cmake_demo.git
synced 2025-05-17 20:01:36 +08:00
25 lines
344 B
C
25 lines
344 B
C
|
|
#ifndef _RECT_H_
|
|
#define _RECT_H_
|
|
|
|
#include "common.h"
|
|
#include "shape.h"
|
|
|
|
struct _rect
|
|
{
|
|
int invalid;
|
|
|
|
// 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
|