#define EFL_BETA_API_SUPPORT #include #include "example_rectangle.eo.h" #include "eo_classes.h" typedef struct { int width, height; } Example_Rectangle_Data; EOLIAN static void _example_rectangle_width_set(Eo *obj EINA_UNUSED, Example_Rectangle_Data *pd, int width) { pd->width = width; } EOLIAN static int _example_rectangle_width_get(Eo *obj EINA_UNUSED, Example_Rectangle_Data *pd) { return pd->width; } EOLIAN static void _example_rectangle_height_set(Eo *obj EINA_UNUSED, Example_Rectangle_Data *pd, int height) { pd->height = height; } EOLIAN static int _example_rectangle_height_get(Eo *obj EINA_UNUSED, Example_Rectangle_Data *pd) { return pd->height; } EOLIAN static int _example_rectangle_example_shape_area(Eo *obj EINA_UNUSED, Example_Rectangle_Data *pd) { return pd->width * pd->height; } EOLIAN static void _example_rectangle_class_constructor(Efl_Class *klass EINA_UNUSED) { } EOLIAN static void _example_rectangle_class_destructor(Efl_Class *klass EINA_UNUSED) { } #include "example_rectangle.eo.c"