X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-sharp%2Fsharp%2Finternal%2FAnimatable.cs;fp=plugins%2Fdali-sharp%2Fsharp%2Finternal%2FHandle.cs;h=e193d4aab1ec560c16c6f215056a4c61fc3ad21b;hp=1067d54cc43d68c320d3c257d32fc5fc064b3eb9;hb=519cb7d813613eec601e19361b859cfc46398e57;hpb=6fa08daf440e496896babb230e404aae7e77a5bb diff --git a/plugins/dali-sharp/sharp/internal/Handle.cs b/plugins/dali-sharp/sharp/internal/Animatable.cs similarity index 77% rename from plugins/dali-sharp/sharp/internal/Handle.cs rename to plugins/dali-sharp/sharp/internal/Animatable.cs index 1067d54..e193d4a 100644 --- a/plugins/dali-sharp/sharp/internal/Handle.cs +++ b/plugins/dali-sharp/sharp/internal/Animatable.cs @@ -13,31 +13,21 @@ * limitations under the License. * */ -// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.10 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ namespace Dali { -public class Handle : BaseHandle { +public class Animatable : BaseHandle { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal Handle(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Handle_SWIGUpcast(cPtr), cMemoryOwn) { + internal Animatable(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Handle_SWIGUpcast(cPtr), cMemoryOwn) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Animatable obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } - ~Handle() { + ~Animatable() { DisposeQueue.Instance.Add(this); } @@ -61,27 +51,15 @@ public class Handle : BaseHandle { } - public Handle () : this (NDalicPINVOKE.Handle_New(), true) { + public Animatable () : this (NDalicPINVOKE.Handle_New(), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } - public Handle(Handle handle) : this(NDalicPINVOKE.new_Handle__SWIG_1(Handle.getCPtr(handle)), true) { + public Animatable(Animatable handle) : this(NDalicPINVOKE.new_Handle__SWIG_1(Animatable.getCPtr(handle)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } - public Handle Assign(Handle rhs) { - Handle ret = new Handle(NDalicPINVOKE.Handle_Assign(swigCPtr, Handle.getCPtr(rhs)), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static Handle DownCast(BaseHandle handle) { - Handle ret = new Handle(NDalicPINVOKE.Handle_DownCast(BaseHandle.getCPtr(handle)), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public bool Supports(Handle.Capability capability) { + public bool Supports(Animatable.Capability capability) { bool ret = NDalicPINVOKE.Handle_Supports(swigCPtr, (int)capability); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; @@ -129,9 +107,9 @@ public class Handle : BaseHandle { return ret; } - public void SetProperty(int index, Property.Value propertyValue) { - NDalicPINVOKE.Handle_SetProperty(swigCPtr, index, Property.Value.getCPtr(propertyValue)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + public void SetProperty(int index, Property.Value propertyValue) + { + Dali.Object.SetProperty( swigCPtr, index, propertyValue ); } public int RegisterProperty(string name, Property.Value propertyValue) { @@ -146,9 +124,9 @@ public class Handle : BaseHandle { return ret; } - public Property.Value GetProperty(int index) { - Property.Value ret = new Property.Value(NDalicPINVOKE.Handle_GetProperty(swigCPtr, index), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + public Property.Value GetProperty(int index) + { + Property.Value ret = Dali.Object.GetProperty( swigCPtr, index ); return ret; }