|
|
@ -24,18 +24,22 @@ static inline const char* Figure_type (const Figure *this) |
|
|
|
{ |
|
|
|
return this->vtable->type (); |
|
|
|
} |
|
|
|
|
|
|
|
static inline Figure* Figure_clone (const Figure *this) |
|
|
|
{ |
|
|
|
return this->vtable->clone (this); |
|
|
|
} |
|
|
|
|
|
|
|
static inline void Figure_destroy (Figure *this) |
|
|
|
{ |
|
|
|
this->vtable->destroy (this); |
|
|
|
} |
|
|
|
|
|
|
|
static inline void Figure_draw (const Figure *this) |
|
|
|
{ |
|
|
|
this->vtable->draw (this); |
|
|
|
} |
|
|
|
|
|
|
|
static inline double Figure_area (const Figure *this) |
|
|
|
{ |
|
|
|
return this->vtable->area (this); |
|
|
|