Jess ha scritto: > Hello, > I am working on testing out interaction from my interface to the > application and vise-versa and have come > up with a couple of questions that don't seem to be covered very explicitly > in the documentation. I was > hoping some kind soul could provide a little guidance. > > My first question is regarding sending signals to the application, and when > it makes sense to use different > approaches. For instance, I know I can send an event to the code via > 'action: SIGNAL_EMIT "foo" "bar"', but > I have seen some Embryo code using emit(), but have not found much > documentation there. I have spoken with > Gustavo a little bit per a previous post, and he advised not to do too much > in embryo. So, are these the > only way to generate signals to the code? Yes , you can use just SIGNAL_EMIT most of the time. And, optionally, you can also emit signal from embryo script. But don't use embryo only to emit signal.
> And if so, when does it make sense to use one or the other? What > about multiple events with similar "objects"? Also, is there a way from code > to detect the source of the > signal, so as to be able to use one function as handler for multiple events? > Yes you can use glob (*) when add a callback. Look at the reference here: http://docs.enlightenment.org/api/edje/html/edje_8c.html#4f440980b12bfda26e0d61738482b061 It's well explained. > My second question is in regards to communicating from C to the Edje > interface. I have not delved too far in > this area yet, and was wondering if there is anything to be aware of (I > haven't seen to much in the docs about > this), so wanted to make sure I'm not wasting my time (ie, I assume its > possible, is that right?). I have > seen the documentation around the SWALLOW part type, and am working on some > testing for that, but as of now, > have not figured out the specifics. Can anyone provide a pointer to the > documentation for this, or better > yet, which app in the cvs repo that I could pour over to see some real-world > activity? What about moving an > object from code? Say I have image1.png, and I want to move it to a new > position? > You don't have to move the image by the c code, instead create a different state on that image (with the new position) and that from the c code you can emit a signal that will change the image to the new state. > > Thanks very much (yet again) ;-) > > Jess > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > enlightenment-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
