Wrapping Clutter functions.



Hi,

I'm having a crack at wrapping a bit of the Clutter library.  The Clutter::Animator::set_key function is keeping me entertained at present.  The C function is:

ClutterAnimator* clutter_animator_set_key (ClutterAnimator *animator,  GObject *object,  const gchar *property_name, guint mode, gdouble progress, const GValue *value);

The return value is a pointer to the object itself.  In C I believe this helps chain the function; I'm struggling to see why I'd bother in C++.  So can I change it to return void (or mabe bool?) or is that messing with the library too much?

Ian.


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