gnomemm r1904 - in cluttermm/trunk: . clutter/src
- From: daniel svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r1904 - in cluttermm/trunk: . clutter/src
- Date: Mon, 22 Dec 2008 15:49:01 +0000 (UTC)
Author: daniel
Date: Mon Dec 22 15:49:01 2008
New Revision: 1904
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1904&view=rev
Log:
* clutter/src/effecttemplate.{ccg,hg} (EffectTemplate::path):
Add method overload without the 'func' parameter.
Modified:
cluttermm/trunk/ChangeLog
cluttermm/trunk/clutter/src/effecttemplate.ccg
cluttermm/trunk/clutter/src/effecttemplate.hg
Modified: cluttermm/trunk/clutter/src/effecttemplate.ccg
==============================================================================
--- cluttermm/trunk/clutter/src/effecttemplate.ccg (original)
+++ cluttermm/trunk/clutter/src/effecttemplate.ccg Mon Dec 22 15:49:01 2008
@@ -105,6 +105,15 @@
return timeline;
}
+Glib::RefPtr<Timeline> EffectTemplate::path(const Glib::RefPtr<Actor>& actor,
+ const Glib::ArrayHandle<Knot>& knots)
+{
+ // Note: Don't copy this code if you don't understand WHY the cast works here.
+ return Glib::wrap(clutter_effect_path(
+ gobj(), actor->gobj(), reinterpret_cast<const ClutterKnot*>(knots.data()),
+ knots.size(), 0, 0), true);
+}
+
Glib::RefPtr<Timeline> EffectTemplate::scale(const Glib::RefPtr<Actor>& actor, double x_scale_end, double y_scale_end, const SlotEffectCompleteFunc& func)
{
Glib::RefPtr<Timeline> timeline(Glib::wrap(clutter_effect_scale(gobj(), actor->gobj(), x_scale_end, y_scale_end, NULL, NULL), true));
Modified: cluttermm/trunk/clutter/src/effecttemplate.hg
==============================================================================
--- cluttermm/trunk/clutter/src/effecttemplate.hg (original)
+++ cluttermm/trunk/clutter/src/effecttemplate.hg Mon Dec 22 15:49:01 2008
@@ -57,11 +57,12 @@
_WRAP_METHOD_DOCS_ONLY(clutter_effect_move)
Glib::RefPtr<Timeline> move(const Glib::RefPtr<Actor>& actor, int x, int y, const SlotEffectCompleteFunc& func);
- // TODO: Use C++ container for knots
_WRAP_METHOD_DOCS_ONLY(clutter_effect_path)
Glib::RefPtr<Timeline> path(const Glib::RefPtr<Actor>& actor,
const Glib::ArrayHandle<Knot>& knots,
const SlotEffectCompleteFunc& func);
+ Glib::RefPtr<Timeline> path(const Glib::RefPtr<Actor>& actor,
+ const Glib::ArrayHandle<Knot>& knots);
_WRAP_METHOD_DOCS_ONLY(clutter_effect_scale)
Glib::RefPtr<Timeline> scale(const Glib::RefPtr<Actor>& actor, double x_scale_end, double y_scale_end, const SlotEffectCompleteFunc& func);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]