From: Jiyun Yang Date: Thu, 21 Jan 2021 04:39:48 +0000 (+0900) Subject: [NUI] Sync unmanaged or managed data type to csharp-binder (#2536) X-Git-Tag: accepted/tizen/unified/20210219.040944~68 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7cff6e1f16b0743e72eda08c071008746fad5c36;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Sync unmanaged or managed data type to csharp-binder (#2536) + Remove unused code Signed-off-by: Jiyun Yang --- diff --git a/src/Tizen.NUI/src/internal/ViewWrapperImpl.cs b/src/Tizen.NUI/src/internal/ViewWrapperImpl.cs index e0c08d3..859d28a 100755 --- a/src/Tizen.NUI/src/internal/ViewWrapperImpl.cs +++ b/src/Tizen.NUI/src/internal/ViewWrapperImpl.cs @@ -394,29 +394,13 @@ namespace Tizen.NUI private void DirectorOnSizeAnimation(global::System.IntPtr animation, global::System.IntPtr targetSize) { - var ani = new Animation(animation, false); + var ani = new Animation(animation, true); var vector3 = new Vector3(targetSize, false); OnSizeAnimation?.Invoke(ani, vector3); ani.Dispose(); vector3.Dispose(); } - private bool DirectorOnTouch(global::System.IntPtr arg0) - { - var touch = new Touch(arg0, false); - var ret = OnTouch(touch); - touch.Dispose(); - return ret; - } - - private bool DirectorOnHover(global::System.IntPtr arg0) - { - var hover = new Hover(arg0, false); - var ret = OnHover(hover); - hover.Dispose(); - return ret; - } - private bool DirectorOnKey(global::System.IntPtr arg0) { var key = new Key(arg0, false); @@ -425,12 +409,6 @@ namespace Tizen.NUI return ret; } - private bool DirectorOnWheel(global::System.IntPtr arg0) - { - var wheel = new Wheel(arg0, false); - return OnWheel(wheel); - } - private void DirectorOnRelayout(global::System.IntPtr size, global::System.IntPtr container) { var vector2 = new Vector2(size, false); @@ -472,14 +450,7 @@ namespace Tizen.NUI private bool DirectorRelayoutDependentOnChildrenWithDimension(int dimension) { - if (null == RelayoutDependentOnChildrenDimension) - { - return false; - } - else - { - return RelayoutDependentOnChildrenDimension?.Invoke((DimensionType)dimension) ?? false; - } + return RelayoutDependentOnChildrenDimension?.Invoke((DimensionType)dimension) ?? false; } private bool DirectorRelayoutDependentOnChildren() @@ -503,7 +474,7 @@ namespace Tizen.NUI private void DirectorOnStyleChange(global::System.IntPtr styleManager, int change) { - var styleManger = new StyleManager(styleManager, false); + var styleManger = new StyleManager(styleManager, true); OnStyleChange?.Invoke(styleManger, (StyleChangeType)change); styleManger.Dispose(); } @@ -515,7 +486,7 @@ namespace Tizen.NUI private bool DirectorOnAccessibilityPan(global::System.IntPtr gesture) { - var panGesture = new PanGesture(gesture, false); + var panGesture = new PanGesture(gesture, true); var ret = OnAccessibilityPan?.Invoke(panGesture) ?? false; panGesture.Dispose(); return ret;