D.text:show();
--// Fun with maps!
- D.map = edje.map(4);
+ D.map = edje.map(4); --// 4 is the only supported map size at the moment.
--// These all do the same thing.
--// Note, lua likes to start at 1, C (and thus evas) at 0. I choose to agree with C.
D.map:coord(0, 50, 50, 0);
print("lua::map enabled");
end
---// D.rect2:map_source(D.rect); --// Don't think this is actually implemented in evas.
+ D.rect2:map_source(D.rect); --// Don't think this is actually implemented in evas.
--// D.map:dup();
--// D.map:size(); --// perhaps overide the # operator? For now it's only gonna return 4 anyway.
{
Edje_Lua_Obj *obj = (Edje_Lua_Obj *)lua_touserdata(L, 1);
Edje_Lua_Evas_Object *elo = (Edje_Lua_Evas_Object *)obj;
+ Evas_Object *o;
+ Edje_Lua_Evas_Object *elo2;
int n;
if (!obj) return 0;
evas_object_map_source_set(elo->evas_obj, source->evas_obj);
}
-// FIXME: return this evas object.
-// evas_object_map_source_get(elo->evas_obj);
+ if (!(o = evas_object_map_source_get(elo->evas_obj))) return 0;
+ if (!(elo2 = evas_object_data_get(o, ELO))) return 0;
+ _elua_ref_get(L, elo2);
return 1;
}