On Tue, Dec 29, 2015 at 1:57 PM, Andreas Volz <[email protected]> wrote: > Am Tue, 29 Dec 2015 11:55:13 -0200 schrieb Felipe Magno de Almeida:
[snip] > Maybe I have to understand the new C++ bindings a little better. Let's > for example take a look on this application code: > > https://github.com/andreas-volz/oisp/blob/master/src/OISPNavigation_libosmscout/ScreenManager.cpp > > I make e.g. in this place calls to the Ecorexx API. But I found no C++ > ecore C++ API. > > Or here an signal connection example: > https://github.com/andreas-volz/stateval/blob/master/stateval/src/plugins/viewmanager/edje/EdjeView.cpp > > edjeObj->connect("animation,end", "invisible", sigc::mem_fun(this, > &EdjeView::invisibleFunc)); > > Is it possible with the C++ bindings to connect a member function to a edje > signal? Events are defined in Eolian API. And the binding generate the "connect" automatically. Unfortunately, that doesn't work for Edje. Which I think must be fixed somehow! Right now edje is not conveyed by bindings automatically and we're discussing if they should be bound manually by each language or not. If it is bound manually, it would probably look like this: edjeObj->connect("animation,end", "invisible", [this] { invisibleFunc(); }); Assuming you're calling this line from a member-function from EdjeView. Or you could use std::bind too. Kind regards, > regards > Andreas > > -- > Technical Blog <http://andreasvolz.wordpress.com/> > > ------------------------------------------------------------------------------ > _______________________________________________ > enlightenment-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Felipe Magno de Almeida ------------------------------------------------------------------------------ _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
