2017-11-07 09:35:34 -08:00
|
|
|
#define EFL_BETA_API_SUPPORT
|
|
|
|
#include <Eo.h>
|
|
|
|
#include "example_rectangle.eo.h"
|
2017-11-10 04:16:54 -08:00
|
|
|
|
2017-11-07 09:35:34 -08:00
|
|
|
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
|
2018-04-23 13:35:36 -07:00
|
|
|
_example_rectangle_width_get(const Eo *obj EINA_UNUSED, Example_Rectangle_Data *pd)
|
2017-11-07 09:35:34 -08:00
|
|
|
{
|
|
|
|
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
|
2018-04-23 13:35:36 -07:00
|
|
|
_example_rectangle_height_get(const Eo *obj EINA_UNUSED, Example_Rectangle_Data *pd)
|
2017-11-07 09:35:34 -08:00
|
|
|
{
|
|
|
|
return pd->height;
|
|
|
|
}
|
|
|
|
|
|
|
|
EOLIAN static int
|
2017-11-15 02:55:04 -08:00
|
|
|
_example_rectangle_area(Eo *obj EINA_UNUSED, Example_Rectangle_Data *pd)
|
2017-11-07 09:35:34 -08:00
|
|
|
{
|
|
|
|
return pd->width * pd->height;
|
|
|
|
}
|
|
|
|
|
|
|
|
#include "example_rectangle.eo.c"
|