2 * Copyright(c) 2017 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 using System.ComponentModel;
22 /// This object translates data from a property array of maps into an array of animators.
24 /// <since_tizen> 3 </since_tizen>
25 public class TransitionData : BaseHandle
29 /// Create an instance of TransitionData.
31 /// <param name="transition">The transition data to store (a single animator).</param>
32 /// <since_tizen> 3 </since_tizen>
33 public TransitionData(PropertyMap transition) : this(Interop.TransitionData.NewByMap(PropertyMap.getCPtr(transition)), true)
35 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
40 /// Create an instance of TransitionData.
42 /// <param name="transition">The transition data to store (an array of maps of animators).</param>
43 /// <since_tizen> 3 </since_tizen>
44 public TransitionData(PropertyArray transition) : this(Interop.TransitionData.NewByArray(PropertyArray.getCPtr(transition)), true)
46 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
51 /// Create an instance of TransitionData by copy constructor.
53 /// <param name="handle">Handle to an object.</param>
54 /// <since_tizen> 3 </since_tizen>
55 public TransitionData(TransitionData handle) : this(Interop.TransitionData.NewTransitionData(TransitionData.getCPtr(handle)), true)
57 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
60 internal TransitionData(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.TransitionData.Upcast(cPtr), cMemoryOwn)
65 /// returns the count of the individual property transitions stored within this handle.
67 /// <returns>A handle to the image at the the specified position.</returns>
68 /// <since_tizen> 3 </since_tizen>
71 uint ret = Interop.TransitionData.Count(swigCPtr);
72 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
77 /// returns the count of the individual property transitions stored within this handle.
79 /// <param name="index">The index of the animator.</param>
80 /// <returns>A property map representing the animator.</returns>
81 /// <since_tizen> 3 </since_tizen>
82 public PropertyMap GetAnimatorAt(uint index)
84 PropertyMap ret = new PropertyMap(Interop.TransitionData.GetAnimatorAt(swigCPtr, index), true);
85 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
89 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TransitionData obj)
91 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
94 /// This will not be public opened.
95 [EditorBrowsable(EditorBrowsableState.Never)]
96 protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
98 Interop.TransitionData.DeleteTransitionData(swigCPtr);