/// <since_tizen> 3 </since_tizen>
public class KeyFrames : BaseHandle
{
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
-
- internal KeyFrames(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.KeyFrames_SWIGUpcast(cPtr), cMemoryOwn)
- {
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(KeyFrames obj)
- {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
/// <summary>
- /// Dispose.
+ /// Creates an initialized KeyFrames handle.
/// </summary>
/// <since_tizen> 3 </since_tizen>
- protected override void Dispose(DisposeTypes type)
+ public KeyFrames() : this(Interop.KeyFrames.New(), true)
{
- if(disposed)
- {
- return;
- }
-
- if(type == DisposeTypes.Explicit)
- {
- //Called by User
- //Release your own managed resources here.
- //You should release all of your own disposable objects here.
- }
-
- //Release your own unmanaged resources here.
- //You should not access any managed member here except static instance.
- //because the execution order of Finalizes is non-deterministic.
-
- if (swigCPtr.Handle != global::System.IntPtr.Zero)
- {
- if (swigCMemOwn)
- {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_KeyFrames(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- base.Dispose(type);
}
-
+ internal KeyFrames(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.KeyFrames.Upcast(cPtr), cMemoryOwn)
+ {
+ }
/// <summary>
/// Adds a key frame.
}
/// <summary>
- /// Creates an initialized KeyFrames handle.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public KeyFrames() : this(NDalicPINVOKE.KeyFrames_New(), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-
- }
-
- /// <summary>
- /// Downcasts a handle to keyFrame handle.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- /// Please do not use! this will be deprecated!
- /// Instead please use as keyword.
- [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static KeyFrames DownCast(BaseHandle handle)
- {
- KeyFrames ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as KeyFrames;
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
/// Gets the type of the key frame.
/// </summary>
/// <returns>The key frame property type</returns>
/// <since_tizen> 3 </since_tizen>
public new PropertyType GetType()
{
- PropertyType ret = (PropertyType)NDalicPINVOKE.KeyFrames_GetType(swigCPtr);
+ PropertyType ret = (PropertyType)Interop.KeyFrames.GetType(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <since_tizen> 3 </since_tizen>
public void Add(float progress, PropertyValue value)
{
- NDalicPINVOKE.KeyFrames_Add__SWIG_0(swigCPtr, progress, PropertyValue.getCPtr(value));
+ Interop.KeyFrames.Add(SwigCPtr, progress, PropertyValue.getCPtr(value));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <since_tizen> 3 </since_tizen>
public void Add(float progress, PropertyValue value, AlphaFunction alpha)
{
- NDalicPINVOKE.KeyFrames_Add__SWIG_1(swigCPtr, progress, PropertyValue.getCPtr(value), AlphaFunction.getCPtr(alpha));
+ Interop.KeyFrames.Add(SwigCPtr, progress, PropertyValue.getCPtr(value), AlphaFunction.getCPtr(alpha));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- }
+ internal static global::System.Runtime.InteropServices.HandleRef getCPtr(KeyFrames obj)
+ {
+ return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr;
+ }
-}
\ No newline at end of file
+ /// This will not be public opened.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
+ {
+ Interop.KeyFrames.DeleteKeyFrames(swigCPtr);
+ }
+ }
+}