Re: using cluttermm



Hi Krzesimir and Murray,
Thanks, that makes sense.  The Animation timeline still doesn't work, but that's another problem and I'm happy enough chewing away at it.  I can achieve the effect with a BehaviourPath, so I've got something working to leverage off.

I'm possibly being a sucker for punishment, but is there any other documentation on wrapping C functions apart from the back of the programming with gtkmm book?  I think I need to understand the process a little better.

Ian.


From: Krzesimir Nowak <qdlacz gmail com>
To: Ian Martin <ian_martin65 yahoo com au>
Cc: "gtkmm-list gnome org" <gtkmm-list gnome org>
Sent: Thursday, 1 September 2011 8:35 PM
Subject: Re: using cluttermm

2011/9/1 Ian Martin <ian_martin65 yahoo com au>:
> Hi,
> I'm struggling with cluttermm.  The programming with cluttermm book has some
> deprecated bits, most of which I can figure out (and once I've got there,
> I'll figure out how to update it).  Currently I can't give an animation a
> path; the actor.path(x, y) function no longer exists, but adding a path to
> an Animator with
> effect->bind("x", 150.0);
> gives a compile time error:
> /usr/local/include/cluttermm-1.0/cluttermm/animation.h:238:27: note:
> Glib::RefPtr<Clutter::Animation> Clutter::Animation::bind(const string&,
> const Glib::ValueBase&)
> If I create it with
>     Glib::Value< float> xdim;
>      xdim.set(150.0);
>      effect->bind("x", xdim);
>    it compiles fine, but on running breaks with output to the terminal:
> Clutter-WARNING **: Cannot bind property 'x': the interval value of type
> '(null)' is not compatible with the property value of type 'gfloat'

Glib::Value is not nice to use as one might wish. Maybe try
initializing it before:

Glib::Value<float> xdim;
xdim.init (xdim.value_type ());
xdim.set (150.0);
effect->bind("x", xdim);

> So how do I give a path to an animation?  Can it be done in C++?  I note
> this post
> http://git.gnome.org/browse/cluttermm/commit/?id=be14bbccd745c2ba1708241af94831d8bc072e0e
> suggests I'm wasting my time.
> Ian.
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]