static void * evas_object_rectangle_new(void) { Evas_Object_Rectangle *o; /* alloc obj private data */ EVAS_MEMPOOL_INIT(_mp_obj, "evas_object_rectangle", Evas_Object_Rectangle, 16, NULL); o = EVAS_MEMPOOL_ALLOC(_mp_obj, Evas_Object_Rectangle); if (!o) return NULL; EVAS_MEMPOOL_PREP(_mp_obj, o, Evas_Object_Rectangle); o->magic = MAGIC_OBJ_RECTANGLE; return o; }
static void * evas_object_line_new(void) { Evas_Object_Line *o; /* alloc obj private data */ EVAS_MEMPOOL_INIT(_mp_obj, "evas_object_line", Evas_Object_Line, 16, NULL); o = EVAS_MEMPOOL_ALLOC(_mp_obj, Evas_Object_Line); if (!o) return NULL; EVAS_MEMPOOL_PREP(_mp_obj, o, Evas_Object_Line); o->magic = MAGIC_OBJ_LINE; o->cur.x1 = 0; o->cur.y1 = 0; o->cur.x2 = 31; o->cur.y2 = 31; o->prev = o->cur; return o; }