X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=plugins%2Fdali-sharp%2Fsharp%2Fpublic%2FPopup.cs;fp=plugins%2Fdali-sharp%2Fsharp%2Finternal%2FPopup.cs;h=6ce31e68c80d64e2fae2ec291a692b2d8a431632;hb=318378db7fbb0bcfb08c3c603f54857d6f5c9639;hp=79d92f51894e9c304d3d185d022320b2ebc3f095;hpb=0f5a8aaa14ccf06aee1069ef585d83b8506dd099;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/plugins/dali-sharp/sharp/internal/Popup.cs b/plugins/dali-sharp/sharp/public/Popup.cs similarity index 89% rename from plugins/dali-sharp/sharp/internal/Popup.cs rename to plugins/dali-sharp/sharp/public/Popup.cs index 79d92f5..6ce31e6 100644 --- a/plugins/dali-sharp/sharp/internal/Popup.cs +++ b/plugins/dali-sharp/sharp/public/Popup.cs @@ -327,40 +327,8 @@ public class Popup : View { } } - public class Property : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~Property() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - NDalicPINVOKE.delete_Popup_Property(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public Property() : this(NDalicPINVOKE.new_Popup_Property(), true) { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - + public class Property + { public static readonly int TITLE = NDalicPINVOKE.Popup_Property_TITLE_get(); public static readonly int CONTENT = NDalicPINVOKE.Popup_Property_CONTENT_get(); public static readonly int FOOTER = NDalicPINVOKE.Popup_Property_FOOTER_get(); @@ -382,22 +350,12 @@ public class Popup : View { public static readonly int TAIL_DOWN_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_DOWN_IMAGE_get(); public static readonly int TAIL_LEFT_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_LEFT_IMAGE_get(); public static readonly int TAIL_RIGHT_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_RIGHT_IMAGE_get(); - } public Popup () : this (NDalicPINVOKE.Popup_New(), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } - public Popup(Popup handle) : this(NDalicPINVOKE.new_Popup__SWIG_1(Popup.getCPtr(handle)), true) { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public Popup Assign(Popup handle) { - Popup ret = new Popup(NDalicPINVOKE.Popup_Assign(swigCPtr, Popup.getCPtr(handle)), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } public new static Popup DownCast(BaseHandle handle) { Popup ret = new Popup(NDalicPINVOKE.Popup_DownCast(BaseHandle.getCPtr(handle)), true); @@ -449,41 +407,36 @@ public class Popup : View { return ret; } - public VoidSignal OutsideTouchedSignal() { + internal VoidSignal OutsideTouchedSignal() { VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_OutsideTouchedSignal(swigCPtr), false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public VoidSignal ShowingSignal() { + internal VoidSignal ShowingSignal() { VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShowingSignal(swigCPtr), false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public VoidSignal ShownSignal() { + internal VoidSignal ShownSignal() { VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShownSignal(swigCPtr), false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public VoidSignal HidingSignal() { + internal VoidSignal HidingSignal() { VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HidingSignal(swigCPtr), false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public VoidSignal HiddenSignal() { + internal VoidSignal HiddenSignal() { VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HiddenSignal(swigCPtr), false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public enum PropertyRange { - PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX, - PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX+1000 - } - public enum DisplayStateType { SHOWING, SHOWN, @@ -563,7 +516,7 @@ public class Popup : View { get { bool temp = false; - GetProperty( Popup.Property.TOUCH_TRANSPARENT).Get( ref temp ); + GetProperty( Popup.Property.TOUCH_TRANSPARENT).Get( out temp ); return temp; } set @@ -576,7 +529,7 @@ public class Popup : View { get { bool temp = false; - GetProperty( Popup.Property.TAIL_VISIBILITY).Get( ref temp ); + GetProperty( Popup.Property.TAIL_VISIBILITY).Get( out temp ); return temp; } set @@ -615,7 +568,7 @@ public class Popup : View { get { float temp = 0.0f; - GetProperty( Popup.Property.ANIMATION_DURATION).Get( ref temp ); + GetProperty( Popup.Property.ANIMATION_DURATION).Get( out temp ); return temp; } set @@ -667,7 +620,7 @@ public class Popup : View { get { int temp = 0; - GetProperty( Popup.Property.AUTO_HIDE_DELAY).Get( ref temp ); + GetProperty( Popup.Property.AUTO_HIDE_DELAY).Get( out temp ); return temp; } set @@ -680,7 +633,7 @@ public class Popup : View { get { bool temp = false; - GetProperty( Popup.Property.BACKING_ENABLED).Get( ref temp ); + GetProperty( Popup.Property.BACKING_ENABLED).Get( out temp ); return temp; } set