X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-sharp%2Fsharp%2Fpublic%2FTextLabel.cs;fp=plugins%2Fdali-sharp%2Fsharp%2Finternal%2FTextLabel.cs;h=1ff5471e60764808c03ca87448315dec0b477b3d;hp=ce1f1d8bcb15fbc8470d1fe2d47010c8c7528651;hb=318378db7fbb0bcfb08c3c603f54857d6f5c9639;hpb=0f5a8aaa14ccf06aee1069ef585d83b8506dd099 diff --git a/plugins/dali-sharp/sharp/internal/TextLabel.cs b/plugins/dali-sharp/sharp/public/TextLabel.cs similarity index 81% rename from plugins/dali-sharp/sharp/internal/TextLabel.cs rename to plugins/dali-sharp/sharp/public/TextLabel.cs index ce1f1d8..1ff5471 100644 --- a/plugins/dali-sharp/sharp/internal/TextLabel.cs +++ b/plugins/dali-sharp/sharp/public/TextLabel.cs @@ -61,40 +61,8 @@ public class TextLabel : 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_TextLabel_Property(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public Property() : this(NDalicPINVOKE.new_TextLabel_Property(), true) { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - + public class Property + { public static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextLabel_Property_RENDERING_BACKEND_get(); public static readonly int TEXT = NDalicPINVOKE.TextLabel_Property_TEXT_get(); public static readonly int FONT_FAMILY = NDalicPINVOKE.TextLabel_Property_FONT_FAMILY_get(); @@ -119,7 +87,6 @@ public class TextLabel : View { public static readonly int SHADOW = NDalicPINVOKE.TextLabel_Property_SHADOW_get(); public static readonly int EMBOSS = NDalicPINVOKE.TextLabel_Property_EMBOSS_get(); public static readonly int OUTLINE = NDalicPINVOKE.TextLabel_Property_OUTLINE_get(); - } public TextLabel () : this (NDalicPINVOKE.TextLabel_New__SWIG_0(), true) { @@ -134,36 +101,12 @@ public class TextLabel : View { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } - public TextLabel Assign(TextLabel handle) { - TextLabel ret = new TextLabel(NDalicPINVOKE.TextLabel_Assign(swigCPtr, TextLabel.getCPtr(handle)), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public new static TextLabel DownCast(BaseHandle handle) { + internal new static TextLabel DownCast(BaseHandle handle) { TextLabel ret = new TextLabel(NDalicPINVOKE.TextLabel_DownCast(BaseHandle.getCPtr(handle)), true); 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 int RenderingBackend - { - get - { - int temp = 0; - GetProperty( TextLabel.Property.RENDERING_BACKEND).Get( ref temp ); - return temp; - } - set - { - SetProperty( TextLabel.Property.RENDERING_BACKEND, new Dali.Property.Value( value ) ); - } - } public string Text { get @@ -208,7 +151,7 @@ public class TextLabel : View { get { float temp = 0.0f; - GetProperty( TextLabel.Property.POINT_SIZE).Get( ref temp ); + GetProperty( TextLabel.Property.POINT_SIZE).Get( out temp ); return temp; } set @@ -221,7 +164,7 @@ public class TextLabel : View { get { bool temp = false; - GetProperty( TextLabel.Property.MULTI_LINE).Get( ref temp ); + GetProperty( TextLabel.Property.MULTI_LINE).Get( out temp ); return temp; } set @@ -299,7 +242,7 @@ public class TextLabel : View { get { bool temp = false; - GetProperty( TextLabel.Property.UNDERLINE_ENABLED).Get( ref temp ); + GetProperty( TextLabel.Property.UNDERLINE_ENABLED).Get( out temp ); return temp; } set @@ -325,7 +268,7 @@ public class TextLabel : View { get { float temp = 0.0f; - GetProperty( TextLabel.Property.UNDERLINE_HEIGHT).Get( ref temp ); + GetProperty( TextLabel.Property.UNDERLINE_HEIGHT).Get( out temp ); return temp; } set @@ -338,7 +281,7 @@ public class TextLabel : View { get { bool temp = false; - GetProperty( TextLabel.Property.ENABLE_MARKUP).Get( ref temp ); + GetProperty( TextLabel.Property.ENABLE_MARKUP).Get( out temp ); return temp; } set @@ -351,7 +294,7 @@ public class TextLabel : View { get { bool temp = false; - GetProperty( TextLabel.Property.ENABLE_AUTO_SCROLL).Get( ref temp ); + GetProperty( TextLabel.Property.ENABLE_AUTO_SCROLL).Get( out temp ); return temp; } set @@ -364,7 +307,7 @@ public class TextLabel : View { get { int temp = 0; - GetProperty( TextLabel.Property.AUTO_SCROLL_SPEED).Get( ref temp ); + GetProperty( TextLabel.Property.AUTO_SCROLL_SPEED).Get( out temp ); return temp; } set @@ -377,7 +320,7 @@ public class TextLabel : View { get { int temp = 0; - GetProperty( TextLabel.Property.AUTO_SCROLL_LOOP_COUNT).Get( ref temp ); + GetProperty( TextLabel.Property.AUTO_SCROLL_LOOP_COUNT).Get( out temp ); return temp; } set @@ -390,7 +333,7 @@ public class TextLabel : View { get { float temp = 0.0f; - GetProperty( TextLabel.Property.AUTO_SCROLL_GAP).Get( ref temp ); + GetProperty( TextLabel.Property.AUTO_SCROLL_GAP).Get( out temp ); return temp; } set @@ -403,7 +346,7 @@ public class TextLabel : View { get { float temp = 0.0f; - GetProperty( TextLabel.Property.LINE_SPACING).Get( ref temp ); + GetProperty( TextLabel.Property.LINE_SPACING).Get( out temp ); return temp; } set