Author: rolf
Date: 2007-06-19 12:19:02 -0400 (Tue, 19 Jun 2007)
New Revision: 80194
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/animation.cpp
trunk/moon/src/animation.h
Log:
2007-06-19 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
* animation.h|cpp: Add *_key_frame_new.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-06-19 16:18:12 UTC (rev 80193)
+++ trunk/moon/src/ChangeLog 2007-06-19 16:19:02 UTC (rev 80194)
@@ -1,3 +1,7 @@
+2007-06-19 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+
+ * animation.h|cpp: Add *_key_frame_new.
+
2007-06-19 Jackson Harper <[EMAIL PROTECTED]>
* xaml.cpp\runtime.h: Add a public function for setting
Modified: trunk/moon/src/animation.cpp
===================================================================
--- trunk/moon/src/animation.cpp 2007-06-19 16:18:12 UTC (rev 80193)
+++ trunk/moon/src/animation.cpp 2007-06-19 16:19:02 UTC (rev 80194)
@@ -640,6 +640,12 @@
SetValue (KeyFrame::KeyTimeProperty, Value(keytime));
}
+KeyFrame*
+key_frame_new ()
+{
+ return new KeyFrame ();
+}
+
static gint
compare_keyframes (KeyFrame *kf1, KeyFrame *kf2)
{
@@ -716,6 +722,11 @@
{
}
+DoubleKeyFrame*
+double_key_frame_new ()
+{
+ return new DoubleKeyFrame ();
+}
DependencyProperty* ColorKeyFrame::ValueProperty;
@@ -723,6 +734,11 @@
{
}
+ColorKeyFrame*
+color_key_frame_new ()
+{
+ return new ColorKeyFrame ();
+}
DependencyProperty* PointKeyFrame::ValueProperty;
@@ -730,6 +746,11 @@
{
}
+PointKeyFrame*
+point_key_frame_new ()
+{
+ return new PointKeyFrame ();
+}
Value*
DiscreteDoubleKeyFrame::InterpolateValue (Value *baseValue, double
keyFrameProgress)
Modified: trunk/moon/src/animation.h
===================================================================
--- trunk/moon/src/animation.h 2007-06-19 16:18:12 UTC (rev 80193)
+++ trunk/moon/src/animation.h 2007-06-19 16:19:02 UTC (rev 80194)
@@ -257,6 +257,7 @@
virtual Value *InterpolateValue (Value *baseValue, double
keyFrameProgress) = 0;
};
+KeyFrame* key_frame_new ();
class KeyFrameCollection : public Collection {
@@ -288,6 +289,7 @@
static DependencyProperty *ValueProperty;
};
+DoubleKeyFrame* double_key_frame_new ();
class ColorKeyFrame : public KeyFrame {
@@ -300,6 +302,7 @@
static DependencyProperty *ValueProperty;
};
+ColorKeyFrame* color_key_frame_new ();
class PointKeyFrame : public KeyFrame {
public:
@@ -311,9 +314,9 @@
static DependencyProperty *ValueProperty;
};
+PointKeyFrame* point_key_frame_new ();
-
class DiscreteDoubleKeyFrame : public DoubleKeyFrame {
public:
DiscreteDoubleKeyFrame () { }
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches