语言

Menu
Sites
Language
Edje IMAGE part

Sup guys,

Is it possible to set image in edje from code?

For example i ve got TEXT part in edje with some styles, fonts and with text "This text will be changed".

I can do " elm_object_part_text_set(main_item, "test_text", "Set text right now!"); "

and this will change text to "Set text right now!" in my edje TEXT part.

 

Can i do the same with images?

响应

4 回复
WooHyun Jung

Hello. :)

Currently there is no way to set image in edje from code directly.

But there is another way to set image !

Instead of making IMAGE part in edc, please make SWALLOW part.

What you can do next is :

  - making an image object in your code by using elm_image

  - invoking elm_object_part_content_set(layout, "your_swallow_part", your_image_object);

 

I wish this helps to your implementation.

Thanks.

Garik Bezruchko

I know about SWALLOW type,

But anyway thank you!

Garik Bezruchko

And can you tell me please, is it possible to change EDJE programm from code? Can u give me an example?

Alex Ashirov

Hi Garik,

Yes, It's possible. Try something like this:

edje_object_signal_emit(elm_layout_edje_get(myLayout), "myProgrammName", "");