Re: Clutter C API to Gjs and Clutter Mesh

alex diavatis <[email protected]> Mon, 13 Aug 2012 19:24:27 +0300
Newsgroups gmane.comp.gnome.language-bindings,gmane.comp.lib.clutter
Message-ID <CAHUQOBjupxJ+EdDd4m0RNjr_BCH5JaviES+MUJgRqwB-m+pvDw@mail.gmail.com>
--===============0695076865==
Content-Type: multipart/alternative; boundary=485b397dd697a834cd04c7282062

--485b397dd697a834cd04c7282062
Content-Type: text/plain; charset=UTF-8

Hello Emmanuelle,

On Mon, Aug 13, 2012 at 6:49 PM, Emmanuele Bassi <[email protected]> wrote:

> hi Alex;
>
> On 13 August 2012 16:19, alex diavatis <[email protected]> wrote:
> > I have some issues to translate Clutter API to Gjs
> > for example:
> >
> > var mycontainer = new Clutter.Actor();
> > mycontainer.set_layout_manager(?); And here I want to set a Box Layout. I
> > can't make it work.
>
> doesn't:
>
>   mycontainer.set_layout_manager(new Clutter.BoxLayout());
>
> work for you?
>

Yes it works, I was trying  mycontainer.set_layout_manager(new
ClutterLayoutManager(...));
Thank you for that.


>
> > In some functions Gjs work, in other doesn't. I cannot understand how
> > introspection works. I make some dummy work arounds, but this is not a
> > solution :)
>
> you can use the C API reference, but there is some work going on to
> create simple tutorials for JavaScript developers using the GNOME
> platform:
>
>
> http://developer.gnome.org/gnome-devel-demos/unstable/beginner.js.html.en
>
> they are a work in progress, and help is welcome.
>

These are great, I will print these and let people know, great
documentation a bit hidden thought :(
However I don't fancy GTK, I ll try to make some samples with MX widgets
and upload them in GitHub.

>
> > More over as there isn't a Clutter ML
>
> there is, just not on gnome.org:
>
>   http://lists.clutter-project.org/mailman/listinfo
>
> you want clutter-app-devel-list (to which I set the Cc:).
>

Thank you, I didn't know that.

>
> > I ask here, Can I import Mesh from
> > 3DMax? 3ds or lwo?
>
> no, but you can use the Mash library to import PLY files from Blender:
>
>   http://wiki.clutter-project.org/wiki/Mash
>
> though you may need some tweaks to the library to cope with the latest
> API in Clutter.
>
Thanks!


>
> ciao,
>  Emmanuele.
>
> It was very kind of you to help!
Cheers
- alex


> --
> W: http://www.emmanuelebassi.name
> B: http://blogs.gnome.org/ebassi/
>

--485b397dd697a834cd04c7282062
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hello Emmanuelle,=C2=A0<div><br><div class=3D"gmail_quote">On Mon, Aug 13, =
2012 at 6:49 PM, Emmanuele Bassi <span dir=3D"ltr">&lt;<a href=3D"mailto:eb=
[email protected]" target=3D"_blank">[email protected]</a>&gt;</span> wrote:<br=
><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1=
px #ccc solid;padding-left:1ex">
hi Alex;<br>
<div class=3D"im"><br>
On 13 August 2012 16:19, alex diavatis &lt;<a href=3D"mailto:alexis.diavati=
[email protected]">[email protected]</a>&gt; wrote:<br>
&gt; I have some issues to translate Clutter API to Gjs<br>
&gt; for example:<br>
&gt;<br>
&gt; var mycontainer =3D new Clutter.Actor();<br>
&gt; mycontainer.set_layout_manager(?); And here I want to set a Box Layout=
. I<br>
&gt; can&#39;t make it work.<br>
<br>
</div>doesn&#39;t:<br>
<br>
=C2=A0 mycontainer.set_layout_manager(new Clutter.BoxLayout());<br>
<br>
work for you?<br></blockquote><div>=C2=A0</div><div>Yes it works,=C2=A0I wa=
s trying =C2=A0mycontainer.set_layout_manager(new ClutterLayoutManager(...)=
);</div><div>Thank you for that.=C2=A0=C2=A0</div><div>=C2=A0</div><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc s=
olid;padding-left:1ex">

<div class=3D"im"><br>
&gt; In some functions Gjs work, in other doesn&#39;t. I cannot understand =
how<br>
&gt; introspection works. I make some dummy work arounds, but this is not a=
<br>
&gt; solution :)<br>
<br>
</div>you can use the C API reference, but there is some work going on to<b=
r>
create simple tutorials for JavaScript developers using the GNOME<br>
platform:<br>
<br>
=C2=A0 <a href=3D"http://developer.gnome.org/gnome-devel-demos/unstable/beg=
inner.js.html.en" target=3D"_blank">http://developer.gnome.org/gnome-devel-=
demos/unstable/beginner.js.html.en</a><br>
<br>
they are a work in progress, and help is welcome.<br></blockquote><div><br>=
</div><div>These are great, I will print these and let people know, great d=
ocumentation a bit hidden thought :(=C2=A0</div><div>However I don&#39;t fa=
ncy GTK, I ll try to make some samples with MX widgets and upload them in G=
itHub. =C2=A0</div>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
<div class=3D"im"><br>
&gt; More over as there isn&#39;t a Clutter ML<br>
<br>
</div>there is, just not on <a href=3D"http://gnome.org" target=3D"_blank">=
gnome.org</a>:<br>
<br>
=C2=A0 <a href=3D"http://lists.clutter-project.org/mailman/listinfo" target=
=3D"_blank">http://lists.clutter-project.org/mailman/listinfo</a><br>
<br>
you want clutter-app-devel-list (to which I set the Cc:).<br></blockquote><=
div><br></div><div>Thank you, I didn&#39;t know that.=C2=A0</div><blockquot=
e class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc sol=
id;padding-left:1ex">

<div class=3D"im"><br>
&gt; I ask here, Can I import Mesh from<br>
&gt; 3DMax? 3ds or lwo?<br>
<br>
</div>no, but you can use the Mash library to import PLY files from Blender=
:<br>
<br>
=C2=A0 <a href=3D"http://wiki.clutter-project.org/wiki/Mash" target=3D"_bla=
nk">http://wiki.clutter-project.org/wiki/Mash</a><br>
<br>
though you may need some tweaks to the library to cope with the latest<br>
API in Clutter.<br></blockquote><div>Thanks!</div><div>=C2=A0</div><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc s=
olid;padding-left:1ex">
<br>
ciao,<br>
=C2=A0Emmanuele.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br></font></span></blockquo=
te><div>It was very kind of you to help!</div><div>Cheers</div><div>- alex=
=C2=A0</div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=3D"HOEnZb"><font color=3D"#888888">
--<br>
W: <a href=3D"http://www.emmanuelebassi.name" target=3D"_blank">http://www.=
emmanuelebassi.name</a><br>
B: <a href=3D"http://blogs.gnome.org/ebassi/" target=3D"_blank">http://blog=
s.gnome.org/ebassi/</a><br>
</font></span></blockquote></div><br></div>

--485b397dd697a834cd04c7282062--

--===============0695076865==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
language-bindings mailing list  [email protected]
https://mail.gnome.org/mailman/listinfo/language-bindings

--===============0695076865==--