From: Steven F. <bt...@gm...> - 2012-08-19 13:21:13
|
Hi, you can find many examples just searching the efl codebase with that cmd: find ./ -type f -iname *.edc -exec grep -Hn "source: \"elm/" "{}" \; The available elm widgets for edje can be found here: https://svn.enlightenment.org/svn/e/trunk/elementary/src/edje_externals 3 examples I found in the wiki: http://docs.enlightenment.org/auto/edje/external_elm_button_8edc-example.html http://docs.enlightenment.org/auto/edje/external_elm_check_8edc-example.html http://docs.enlightenment.org/auto/edje/external_elm_panes_8edc-example.html To change properties of a elm widget defined in the edje file, I use 'edje_object_part_external_object_get(edje, name_of_object)' to get that object and then I use the normal elm functions to work on that object (e.g. 'elm_object_text_set' to set the text of a elm/label). But I am not a pro using edje, elm!! 2012/8/17 maxim <max...@gm...>: > Good morning! > > I'm excited with the power of EFL, but I'm in a trouble :( > > I use Edje to make layout (.edc file), > but I want to render beautiful Elementary > widgets corresponding to this layout. > > I want differ API from Layout, using Edje, > but how can I combine Elementary with > Edje? Seems, that there is no like between them :(, > I have to include layout- > related code (to layout elementary widgets) > into API code (.c files), so the > meaning of usage of .edc is lost :(. > > > The question is: > > How can I combine Edje layout and Elementary widgets? > I don't want to include any > layout-related code into API code (.c file), > just elementary_init() and smth > necessary. For example, I don't want to write > such code in .c file with API: > > ... > elm_box_pack_end(...) > evas_object_move(...) > evas_object_resize(...) > elm_genlist_add(...) > ... > > Thank you. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > enlightenment-users mailing list > enl...@li... > https://lists.sourceforge.net/lists/listinfo/enlightenment-users |