From: Brian M. <bma...@ma...> - 2005-09-01 20:16:07
|
Gabriel wrote: >Ok, so I want to do E applications. As simple as that lol. > >I have some knowledge of C/C++, I can make basic console-apps atleast. >How do you recommend me to move on? > > First off, there are two main categories of E GUI apps -- those that use EWL and those that use edje/evas directly. EWL fills the role of larger / more traditional applications, such as your typical GTK apps. You just add widgets (buttons, labels, scrollbars, menus, etc) to packing boxes. The second method is to use edje and evas directly. Edje lets you create more freeform / skinnable guis at the expense of requiring much more graphical design talent. You define your edje groups using EDC, then compile them, load 'em up and stick them on an evas, and then just listen to and send out signals. So, first you need to determine which method suits the purpose of the app you want to develop. >Any good guides you've used? > > Some of the smaller applications are decently commented. (iconbar maybe?) Other than that, the main 3 guides are the EFL, EWL and Edje books, all available on the web at http://enlightenment.org/Libraries/Documentation/index.html Also, the header files (Ecore.h, Evas.h, etc) are invaluable. We try to name the functions in a logical way, so, if you want evas functions dealing with image objects they'll all start with evas_object_image_ >I understand I should move onto the EWL Cookbook ASAP. But question is >what I need before that. Because currently I kind of get 40% of the code >stated in the beginning of the Cookbook, but it's really not enough. And >I'm one of those cursed ppl who HAS to get what he's doing. > > Again, you only need to learn how EWL works if you plan on doing EWL apps. If this is the case, then definitely read through the Hello World example. Feel free to ask about the things you don't understand. Its definitely better to know _why_ things are done a certain way than to just copy them and then always do it that way 'just because'. :) If you don't need EWL, or just want something simpler to begin with to get a feel of E's way of doing things, look at the Ecore_Evas template at the start of chapter 3 of the EFL cookbook. Understand what's going on there, and then add your own objects to it. Then add some callbacks to mouse events. Then add an edje object (see the edje section of the cookbook) and some edje signal callbacks. (You can use a precompiled .edj to get started...) Anyway, just some ideas on a path for starting out. Feel free to write me if you have any specific questions. Or ask me on irc (rephorm on freenode). -- rephorm |