Author: miguel
Date: 2007-06-19 14:49:53 -0400 (Tue, 19 Jun 2007)
New Revision: 80227
Added:
trunk/olive/class/agclr/System.Windows.Media.Animation/KeySpline.cs
trunk/olive/class/agclr/System.Windows.Media.Animation/SplineDoubleKeyFrame.cs
Modified:
trunk/olive/class/agclr/Mono/NativeMethods.cs
trunk/olive/class/agclr/agclr.dll.sources
Log:
Add new files
Modified: trunk/olive/class/agclr/Mono/NativeMethods.cs
===================================================================
--- trunk/olive/class/agclr/Mono/NativeMethods.cs 2007-06-19 18:43:11 UTC
(rev 80226)
+++ trunk/olive/class/agclr/Mono/NativeMethods.cs 2007-06-19 18:49:53 UTC
(rev 80227)
@@ -251,8 +251,14 @@
[DllImport("moon")]
internal extern static IntPtr key_frame_new ();
+
+ [DllImport("moon")]
+ internal extern static IntPtr spline_double_key_frame_new ();
[DllImport("moon")]
+ internal extern static IntPtr key_spline_new ();
+
+ [DllImport("moon")]
internal extern static IntPtr rectangle_new ();
[DllImport("moon")]
Added: trunk/olive/class/agclr/System.Windows.Media.Animation/KeySpline.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media.Animation/KeySpline.cs
2007-06-19 18:43:11 UTC (rev 80226)
+++ trunk/olive/class/agclr/System.Windows.Media.Animation/KeySpline.cs
2007-06-19 18:49:53 UTC (rev 80227)
@@ -0,0 +1,47 @@
+// Author:
+// Miguel de Icaza ([EMAIL PROTECTED])
+//
+// Copyright 2007 Novell, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using System.Windows;
+using System.Windows.Media;
+using System.Windows.Input;
+using System.Runtime.InteropServices;
+using Mono;
+
+namespace System.Windows.Media.Animation
+{
+ public sealed class KeySpline : DependencyObject
+ {
+
+ public KeySpline () : base (NativeMethods.key_spline_new ())
+ {
+ NativeMethods.base_ref (native);
+ }
+
+ internal KeySpline (IntPtr raw) : base (raw)
+ {
+ }
+ }
+}
Property changes on:
trunk/olive/class/agclr/System.Windows.Media.Animation/KeySpline.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added:
trunk/olive/class/agclr/System.Windows.Media.Animation/SplineDoubleKeyFrame.cs
===================================================================
---
trunk/olive/class/agclr/System.Windows.Media.Animation/SplineDoubleKeyFrame.cs
2007-06-19 18:43:11 UTC (rev 80226)
+++
trunk/olive/class/agclr/System.Windows.Media.Animation/SplineDoubleKeyFrame.cs
2007-06-19 18:49:53 UTC (rev 80227)
@@ -0,0 +1,63 @@
+// Author:
+// Miguel de Icaza ([EMAIL PROTECTED])
+//
+// Copyright 2007 Novell, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using System.Windows;
+using System.Windows.Media;
+using System.Windows.Input;
+using System.Runtime.InteropServices;
+using Mono;
+
+namespace System.Windows.Media.Animation
+{
+ public sealed class SplineDoubleKeyFrame : DoubleKeyFrame
+ {
+
+ public static readonly DependencyProperty KeySplineProperty =
+ DependencyProperty.Lookup (Kind.SPLINEDOUBLEKEYFRAME,
"KeySpline", typeof (KeySpline));
+
+ public SplineDoubleKeyFrame () : base
(NativeMethods.spline_double_key_frame_new ())
+ {
+ }
+
+ internal SplineDoubleKeyFrame (IntPtr raw) : base (raw)
+ {
+ }
+
+ public KeySpline KeySpline {
+ get {
+ return (KeySpline) GetValue (KeySplineProperty);
+ }
+ set {
+ SetValue (KeySplineProperty, value);
+ }
+ }
+
+ internal protected override Kind GetKind ()
+ {
+ return Kind.SPLINEDOUBLEKEYFRAME;
+ }
+ }
+}
Property changes on:
trunk/olive/class/agclr/System.Windows.Media.Animation/SplineDoubleKeyFrame.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: trunk/olive/class/agclr/agclr.dll.sources
===================================================================
--- trunk/olive/class/agclr/agclr.dll.sources 2007-06-19 18:43:11 UTC (rev
80226)
+++ trunk/olive/class/agclr/agclr.dll.sources 2007-06-19 18:49:53 UTC (rev
80227)
@@ -115,10 +115,13 @@
System.Windows.Media.Animation/ColorAnimation.cs
System.Windows.Media.Animation/DoubleAnimation.cs
System.Windows.Media.Animation/DoubleAnimationUsingKeyFrames.cs
+System.Windows.Media.Animation/DoubleKeyFrame.cs
System.Windows.Media.Animation/FillBehavior.cs
+System.Windows.Media.Animation/KeySpline.cs
System.Windows.Media.Animation/ParallelTimeline.cs
System.Windows.Media.Animation/PointAnimation.cs
System.Windows.Media.Animation/RepeatBehavior.cs
+System.Windows.Media.Animation/SplineDoubleKeyFrame.cs
System.Windows.Media.Animation/Storyboard.cs
System.Windows.Media.Animation/Timeline.cs
System.Windows.Media.Animation/TimelineGroup.cs
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches