Set position to use the anchor point false default.
authorxb.teng <xb.teng@samsung.com>
Thu, 11 May 2017 20:36:39 +0000 (04:36 +0800)
committerxb.teng <xb.teng@samsung.com>
Fri, 12 May 2017 15:11:30 +0000 (23:11 +0800)
Change-Id: Ie279d627d2cb631c0251ef8f056caa31f253a2bb
Signed-off-by: xb.teng <xb.teng@samsung.com>
19 files changed:
src/Tizen.NUI/src/internal/Alignment.cs
src/Tizen.NUI/src/internal/Button.cs
src/Tizen.NUI/src/internal/GaussianBlurView.cs
src/Tizen.NUI/src/internal/Model3dView.cs
src/Tizen.NUI/src/internal/PageTurnView.cs
src/Tizen.NUI/src/internal/Popup.cs
src/Tizen.NUI/src/internal/ProgressBar.cs
src/Tizen.NUI/src/internal/Scrollable.cs
src/Tizen.NUI/src/internal/Slider.cs
src/Tizen.NUI/src/internal/ViewWrapper.cs
src/Tizen.NUI/src/public/BaseComponents/ImageView.cs
src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs
src/Tizen.NUI/src/public/BaseComponents/TextField.cs
src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs
src/Tizen.NUI/src/public/BaseComponents/View.cs
src/Tizen.NUI/src/public/FlexContainer.cs
src/Tizen.NUI/src/public/TableView.cs
src/Tizen.NUI/src/public/UIComponents/ScrollBar.cs
src/Tizen.NUI/src/public/VideoView.cs

index 7b8e6c4..b63920d 100644 (file)
@@ -33,6 +33,8 @@ internal class Alignment : View {
 
   internal Alignment(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Alignment_SWIGUpcast(cPtr), cMemoryOwn) {
     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+    // By default, we do not want the position to use the anchor point
+    PositionUsesAnchorPoint = false;
   }
 
   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Alignment obj) {
index 80976b3..de51409 100644 (file)
@@ -43,6 +43,8 @@ namespace Tizen.NUI.UIComponents
         internal Button(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Button_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+            // By default, we do not want the position to use the anchor point
+            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Button obj)
index cf11032..3bdb410 100644 (file)
@@ -37,6 +37,8 @@ using System.Runtime.InteropServices;
 
   internal GaussianBlurView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.GaussianBlurView_SWIGUpcast(cPtr), cMemoryOwn) {
     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+    // By default, we do not want the position to use the anchor point
+    PositionUsesAnchorPoint = false;
   }
 
   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GaussianBlurView obj) {
index aa8b740..843636c 100644 (file)
@@ -33,6 +33,8 @@ namespace Tizen.NUI {
 
   internal Model3dView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Model3dView_SWIGUpcast(cPtr), cMemoryOwn) {
     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+    // By default, we do not want the position to use the anchor point
+    PositionUsesAnchorPoint = false;
   }
 
   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Model3dView obj) {
index 0f3b7e3..5c4faa6 100644 (file)
@@ -19,6 +19,8 @@ using Tizen.NUI.BaseComponents;
 
   internal PageTurnView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.PageTurnView_SWIGUpcast(cPtr), cMemoryOwn) {
     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+    // By default, we do not want the position to use the anchor point
+    PositionUsesAnchorPoint = false;
   }
 
   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PageTurnView obj) {
index 21e8a60..77722b9 100644 (file)
@@ -41,6 +41,8 @@ namespace Tizen.NUI.UIComponents
         internal Popup(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Popup_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+            // By default, we do not want the position to use the anchor point
+            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Popup obj)
index 1cc47d1..a178cb2 100644 (file)
@@ -41,6 +41,8 @@ namespace Tizen.NUI.UIComponents
         internal ProgressBar(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.ProgressBar_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+            // By default, we do not want the position to use the anchor point
+            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ProgressBar obj)
index 82a857a..3cf0348 100644 (file)
@@ -19,6 +19,8 @@ using Tizen.NUI.BaseComponents;
 
   internal Scrollable(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Scrollable_SWIGUpcast(cPtr), cMemoryOwn) {
     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+    // By default, we do not want the position to use the anchor point
+    PositionUsesAnchorPoint = false;
   }
 
   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Scrollable obj) {
index f45a8dd..22e9d90 100644 (file)
@@ -41,6 +41,8 @@ namespace Tizen.NUI.UIComponents
         internal Slider(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Slider_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+            // By default, we do not want the position to use the anchor point
+            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Slider obj)
index 90b9112..7bb2967 100644 (file)
@@ -27,6 +27,8 @@ namespace Tizen.NUI
         internal ViewWrapper(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicManualPINVOKE.ViewWrapper_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+            // By default, we do not want the position to use the anchor point
+            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ViewWrapper obj)
index 98bad20..93dcc1a 100644 (file)
@@ -40,6 +40,8 @@ namespace Tizen.NUI.BaseComponents
         internal ImageView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.ImageView_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+            // By default, we do not want the position to use the anchor point
+            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImageView obj)
index 8f2a7a5..c784ca2 100644 (file)
@@ -40,6 +40,8 @@ namespace Tizen.NUI.BaseComponents
         internal TextEditor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextEditor_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+            // By default, we do not want the position to use the anchor point
+            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextEditor obj)
index 3975a76..53f1ff8 100644 (file)
@@ -40,6 +40,8 @@ namespace Tizen.NUI.BaseComponents
         internal TextField(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextField_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+            // By default, we do not want the position to use the anchor point
+            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextField obj)
index 3794ec8..202d81e 100644 (file)
@@ -38,6 +38,8 @@ namespace Tizen.NUI.BaseComponents
         internal TextLabel(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextLabel_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+            // By default, we do not want the position to use the anchor point
+            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextLabel obj)
index a929f45..be07b93 100755 (executable)
@@ -33,9 +33,6 @@ namespace Tizen.NUI.BaseComponents
 
             // Register this instance of view in the view registry.
             ViewRegistry.RegisterView(this);
-
-            // By default, we do not want the position to use the anchor point
-            this.PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
@@ -831,6 +828,7 @@ namespace Tizen.NUI.BaseComponents
         /// </summary>
         public View() : this(NDalicPINVOKE.View_New(), true)
         {
+            PositionUsesAnchorPoint = false;
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 
         }
@@ -1765,12 +1763,12 @@ namespace Tizen.NUI.BaseComponents
             get
             {
                 bool temp = false;
-                if(this) GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(ref temp);
+                GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(ref temp);
                 return temp;
             }
             set
             {
-                if(this) SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
+                SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
             }
         }
 
index 30bc27f..83f6341 100644 (file)
@@ -41,6 +41,8 @@ namespace Tizen.NUI
         internal FlexContainer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.FlexContainer_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+            // By default, we do not want the position to use the anchor point
+            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FlexContainer obj)
index 21913cc..2377e31 100644 (file)
@@ -42,6 +42,8 @@ namespace Tizen.NUI
         internal TableView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TableView_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+            // By default, we do not want the position to use the anchor point
+            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TableView obj)
index 3fe33e5..7af08ea 100644 (file)
@@ -42,6 +42,8 @@ namespace Tizen.NUI.UIComponents
         internal ScrollBar(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.ScrollBar_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+            // By default, we do not want the position to use the anchor point
+            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ScrollBar obj)
index 39d85ab..c2231a5 100644 (file)
@@ -41,6 +41,8 @@ namespace Tizen.NUI
         internal VideoView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.VideoView_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+            // By default, we do not want the position to use the anchor point
+            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VideoView obj)