From: YeongJong Lee Date: Wed, 16 Sep 2020 05:27:01 +0000 (+0900) Subject: [NUI] remove redundant interanl get/set methods in FlexLayout (#2009) X-Git-Tag: accepted/tizen/unified/20210219.040944~409 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c6ec247d35aa08b7448048cce944a75745cb587f;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] remove redundant interanl get/set methods in FlexLayout (#2009) Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com> --- diff --git a/src/Tizen.NUI/src/public/Layouting/FlexLayout.cs b/src/Tizen.NUI/src/public/Layouting/FlexLayout.cs index 3cd68ec..d005033 100755 --- a/src/Tizen.NUI/src/public/Layouting/FlexLayout.cs +++ b/src/Tizen.NUI/src/public/Layouting/FlexLayout.cs @@ -351,56 +351,6 @@ namespace Tizen.NUI if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } - internal FlexLayout Assign(FlexLayout other) - { - FlexLayout ret = new FlexLayout(Interop.FlexLayout.FlexLayout_Assign(swigCPtr, FlexLayout.getCPtr(other)), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal void SetFlexDirection(FlexLayout.FlexDirection flexDirection) - { - Interop.FlexLayout.FlexLayout_SetFlexDirection(swigCPtr, (int)flexDirection); - RequestLayout(); - } - - internal FlexLayout.FlexDirection GetFlexDirection() - { - FlexLayout.FlexDirection ret = (FlexLayout.FlexDirection)Interop.FlexLayout.FlexLayout_GetFlexDirection(swigCPtr); - return ret; - - } - - internal void SetFlexJustification(FlexLayout.FlexJustification flexJustification) - { - Interop.FlexLayout.FlexLayout_SetFlexJustification(swigCPtr, (int)flexJustification); - RequestLayout(); - } - - internal FlexLayout.FlexJustification GetFlexJustification() - { - FlexLayout.FlexJustification ret = (FlexLayout.FlexJustification)Interop.FlexLayout.FlexLayout_GetFlexJustification(swigCPtr); - return ret; - } - - internal void SetFlexWrap(FlexLayout.FlexWrapType flexWrap) - { - Interop.FlexLayout.FlexLayout_SetFlexWrap(swigCPtr, (int)flexWrap); - RequestLayout(); - } - - internal FlexLayout.FlexWrapType GetFlexWrap() - { - FlexLayout.FlexWrapType ret = (FlexLayout.FlexWrapType)Interop.FlexLayout.FlexLayout_GetFlexWrap(swigCPtr); - return ret; - } - - internal void SetFlexAlignment(FlexLayout.AlignmentType flexAlignment) - { - Interop.FlexLayout.FlexLayout_SetFlexAlignment(swigCPtr, (int)flexAlignment); - RequestLayout(); - } - internal FlexLayout.AlignmentType GetFlexAlignment() { FlexLayout.AlignmentType ret = (FlexLayout.AlignmentType)Interop.FlexLayout.FlexLayout_GetFlexAlignment(swigCPtr); @@ -408,12 +358,6 @@ namespace Tizen.NUI return ret; } - internal void SetFlexItemsAlignment(FlexLayout.AlignmentType flexAlignment) - { - Interop.FlexLayout.FlexLayout_SetFlexItemsAlignment(swigCPtr, (int)flexAlignment); - RequestLayout(); - } - internal FlexLayout.AlignmentType GetFlexItemsAlignment() { FlexLayout.AlignmentType ret = (FlexLayout.AlignmentType)Interop.FlexLayout.FlexLayout_GetFlexItemsAlignment(swigCPtr); @@ -428,13 +372,11 @@ namespace Tizen.NUI /// 6 public FlexDirection Direction { - get - { - return GetFlexDirection(); - } + get => (FlexDirection)Interop.FlexLayout.FlexLayout_GetFlexDirection(swigCPtr); set { - SetFlexDirection(value); + Interop.FlexLayout.FlexLayout_SetFlexDirection(swigCPtr, (int)value); + RequestLayout(); } } @@ -447,13 +389,11 @@ namespace Tizen.NUI /// 6 public FlexJustification Justification { - get - { - return GetFlexJustification(); - } + get => (FlexJustification)Interop.FlexLayout.FlexLayout_GetFlexJustification(swigCPtr); set { - SetFlexJustification(value); + Interop.FlexLayout.FlexLayout_SetFlexJustification(swigCPtr, (int)value); + RequestLayout(); } } @@ -467,13 +407,11 @@ namespace Tizen.NUI /// 6 public FlexWrapType WrapType { - get - { - return GetFlexWrap(); - } + get => (FlexWrapType)Interop.FlexLayout.FlexLayout_GetFlexWrap(swigCPtr); set { - SetFlexWrap(value); + Interop.FlexLayout.FlexLayout_SetFlexWrap(swigCPtr, (int)value); + RequestLayout(); } } @@ -485,13 +423,11 @@ namespace Tizen.NUI /// 6 public AlignmentType Alignment { - get - { - return GetFlexAlignment(); - } + get => GetFlexAlignment(); set { - SetFlexAlignment(value); + Interop.FlexLayout.FlexLayout_SetFlexAlignment(swigCPtr, (int)value); + RequestLayout(); } } @@ -503,13 +439,11 @@ namespace Tizen.NUI /// 6 public AlignmentType ItemsAlignment { - get - { - return GetFlexItemsAlignment(); - } + get => GetFlexItemsAlignment(); set { - SetFlexItemsAlignment(value); + Interop.FlexLayout.FlexLayout_SetFlexItemsAlignment(swigCPtr, (int)value); + RequestLayout(); } }