summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/canvas/evas_map.c')
-rw-r--r--src/lib/evas/canvas/evas_map.c72
1 files changed, 11 insertions, 61 deletions
diff --git a/src/lib/evas/canvas/evas_map.c b/src/lib/evas/canvas/evas_map.c
index 4c85a4e..d7cd29d 100644
--- a/src/lib/evas/canvas/evas_map.c
+++ b/src/lib/evas/canvas/evas_map.c
@@ -427,21 +427,9 @@ _evas_object_map_parent_check(Evas_Object *eo_parent)
427 return EINA_TRUE; 427 return EINA_TRUE;
428} 428}
429 429
430EAPI void 430EOLIAN void
431evas_object_map_enable_set(Evas_Object *eo_obj, Eina_Bool enabled) 431_evas_object_map_enable_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bool enabled)
432{
433 MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ);
434 return;
435 MAGIC_CHECK_END();
436 eo_do(eo_obj, evas_obj_map_enable_set(enabled));
437}
438
439void
440_map_enable_set(Eo *eo_obj, void *_pd, va_list *list)
441{ 432{
442 Eina_Bool enabled = va_arg(*list, int);
443
444 Evas_Object_Protected_Data *obj = _pd;
445 Eina_Bool pchange = EINA_FALSE; 433 Eina_Bool pchange = EINA_FALSE;
446 434
447 enabled = !!enabled; 435 enabled = !!enabled;
@@ -507,40 +495,15 @@ _map_enable_set(Eo *eo_obj, void *_pd, va_list *list)
507 } 495 }
508} 496}
509 497
510EAPI Eina_Bool 498EOLIAN Eina_Bool
511evas_object_map_enable_get(const Evas_Object *eo_obj) 499_evas_object_map_enable_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
512{
513 MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ);
514 return EINA_FALSE;
515 MAGIC_CHECK_END();
516 Eina_Bool enabled = EINA_FALSE;
517 eo_do((Eo *)eo_obj, evas_obj_map_enable_get(&enabled));
518 return enabled;
519}
520
521void
522_map_enable_get(Eo *eo_obj EINA_UNUSED, void *_pd, va_list *list)
523{ 500{
524 Eina_Bool *enabled = va_arg(*list, Eina_Bool *); 501 return obj->map->cur.usemap;
525 const Evas_Object_Protected_Data *obj = _pd;
526 *enabled = obj->map->cur.usemap;
527} 502}
528 503
529EAPI void 504EOLIAN void
530evas_object_map_set(Evas_Object *eo_obj, const Evas_Map *map) 505_evas_object_map_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, const Evas_Map *map)
531{ 506{
532 MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ);
533 return;
534 MAGIC_CHECK_END();
535 eo_do(eo_obj, evas_obj_map_set(map));
536}
537
538void
539_map_set(Eo *eo_obj, void *_pd, va_list *list)
540{
541 const Evas_Map *map = va_arg(*list, const Evas_Map *);
542 Evas_Object_Protected_Data *obj = _pd;
543
544 if ((!map) || (map->count < 4)) 507 if ((!map) || (map->count < 4))
545 { 508 {
546 if (obj->map->surface) 509 if (obj->map->surface)
@@ -629,24 +592,10 @@ _map_set(Eo *eo_obj, void *_pd, va_list *list)
629 _evas_map_calc_map_geometry(eo_obj); 592 _evas_map_calc_map_geometry(eo_obj);
630} 593}
631 594
632EAPI const Evas_Map * 595EOLIAN Evas_Map *
633evas_object_map_get(const Evas_Object *eo_obj) 596_evas_object_map_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
634{ 597{
635 MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ); 598 return obj->map->cur.map;
636 return NULL;
637 MAGIC_CHECK_END();
638 const Evas_Map *map = NULL;
639 eo_do((Eo *)eo_obj, evas_obj_map_get(&map));
640 return map;
641}
642
643void
644_map_get(Eo *eo_obj EINA_UNUSED, void *_pd, va_list *list)
645{
646 const Evas_Map **map = va_arg(*list, const Evas_Map **);
647 const Evas_Object_Protected_Data *obj = _pd;
648
649 *map = obj->map->cur.map;
650} 599}
651 600
652EAPI Evas_Map * 601EAPI Evas_Map *
@@ -1328,3 +1277,4 @@ evas_object_map_update(Evas_Object *eo_obj,
1328 1277
1329 return obj->changed_pchange; 1278 return obj->changed_pchange;
1330} 1279}
1280