Hi, On Sunday, June 27th, 2021 at 12:55 PM, Andreas Volz <li...@brachttal.net> wrote: > I often don't find a Unified API equivalent in the new Unified API. > Sure, the easy and obvious ones no problem. But sometimes the design > seems to be changed a lot. Is there a general advice? >
> For example I use edje_object_part_external_param_*() much in my > application. I thought it might be an equivalent in Efl.Ui.Layout_Part > but I don't see an obvious function. > > So any hints in general or this special case? Yes, I think this would be part of the efl_part API. Which should be something like: efl::eo::downcast<efl::Text>(layout.part("title")).text_set("hello"); or in C: efl_text_set(efl_part(layout, "title"), "hello"); The efl_part object returned is an Eo object that can only be used for one call. If you want to use it for more than that you need to increase its ref counting. Something like that: Eo *part = efl_ref(efl_part(layout, "title")); efl_text_set(part, "hello"); ... efl_unref(part); Cedric
publickey - cedric@ddlm.me - 0x1869A77F.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature
_______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel