Thanks Alejandro for those useful links on gobject introspection :) I wish to use this wrapper for creating web-apps using clutter (Hence, JS-extension). Although gobject introspection is very nice and compelling it is for creating standalone applications, right? Will it work on browser ? I have exposed a few clutter APIs to experiment using SWIG, So far they work fine in a simple JS to draw a box on the stage. But the part I am not sure about is EVENT-HANDLING in _javascript_. How can I invoke g_signal_connect (or equivalent) from JS? Since JS doesnt have events defined for custom objects, like a click-event on a box drawn using clutter. any ideas on this? -- Mahesh Date: Fri, 14 Dec 2012 15:29:26 +0100 From: apinheiro igalia com To: clutter-list gnome org Subject: Re: Clutter Vs CSS3 On 12/13/2012 01:31 PM, mahesh gawali
wrote:
Why create a wrapper if you already have automatic generated bindings thanks to gobject introspection [1]? GNOME Shell [2] UI is written on _javascript_, and can make clutter calls using _javascript_ without problems (example [3])
Not sure how do you plan to make Clutter calls from a webapp, but in any case, see my previous comment. BR [1] https://live.gnome.org/GObjectIntrospection [2] https://live.gnome.org/GnomeShell [3] http://git.gnome.org/browse/gnome-shell/tree/js/ui/dash.js#n75 -- Alejandro Piñeiro Iglesias _______________________________________________ clutter-list mailing list clutter-list gnome org https://mail.gnome.org/mailman/listinfo/clutter-list |