mirror of
https://gitee.com/apaki/cmake_demo.git
synced 2025-05-17 20:01:36 +08:00
25 lines
472 B
C
25 lines
472 B
C
|
|
#ifndef _COPPER_CASH_H_
|
|
#define _COPPER_CASH_H_
|
|
|
|
#include "common.h"
|
|
#include "shape.h"
|
|
#include "rect.h"
|
|
#include "circle.h"
|
|
|
|
struct _copper_cash
|
|
{
|
|
struct _shape *shape;
|
|
struct _rect *rect;
|
|
struct _circle *circle;
|
|
|
|
double price;
|
|
};
|
|
|
|
struct _copper_cash *copper_cash_new(double width, double height, double radius);
|
|
|
|
double copper_cash_area(struct _copper_cash *self, void *parent);
|
|
void copper_cash_draw(struct _copper_cash *self, void *parent);
|
|
|
|
#endif
|