From: Bowon Ryu Date: Mon, 15 Jul 2024 01:40:53 +0000 (+0900) Subject: [NUI] Clean up text label event X-Git-Tag: submit/tizen/20240821.061804~1^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b27ed51944faba79920d23bdb38acd204cb80e62;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Clean up text label event Signed-off-by: Bowon Ryu --- diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextLabelEvent.cs b/src/Tizen.NUI/src/public/BaseComponents/TextLabelEvent.cs index 5fd377a8b..8c0e31cab 100644 --- a/src/Tizen.NUI/src/public/BaseComponents/TextLabelEvent.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextLabelEvent.cs @@ -38,11 +38,11 @@ namespace Tizen.NUI.BaseComponents private EventHandler textLabelAsyncTextRenderedEventHandler; private AsyncTextRenderedCallbackDelegate textLabelAsyncTextRenderedCallbackDelegate; - private EventHandler textLabelAsyncTextNaturalSizeComputedEventHandler; - private AsyncTextNaturalSizeComputedCallbackDelegate textLabelAsyncTextNaturalSizeComputedCallbackDelegate; + private EventHandler textLabelAsyncNaturalSizeComputedEventHandler; + private AsyncNaturalSizeComputedCallbackDelegate textLabelAsyncNaturalSizeComputedCallbackDelegate; - private EventHandler textLabelAsyncTextHeightForWidthComputedEventHandler; - private AsyncTextHeightForWidthComputedCallbackDelegate textLabelAsyncTextHeightForWidthComputedCallbackDelegate; + private EventHandler textLabelAsyncHeightForWidthComputedEventHandler; + private AsyncHeightForWidthComputedCallbackDelegate textLabelAsyncHeightForWidthComputedCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.Cdecl)] private delegate void AnchorClickedCallbackDelegate(IntPtr textLabel, IntPtr href, uint hrefLength); @@ -54,10 +54,10 @@ namespace Tizen.NUI.BaseComponents private delegate void AsyncTextRenderedCallbackDelegate(IntPtr textLabel, float width, float height); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate void AsyncTextNaturalSizeComputedCallbackDelegate(IntPtr textLabel, float width, float height); + private delegate void AsyncNaturalSizeComputedCallbackDelegate(IntPtr textLabel, float width, float height); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate void AsyncTextHeightForWidthComputedCallbackDelegate(IntPtr textLabel, float width, float height); + private delegate void AsyncHeightForWidthComputedCallbackDelegate(IntPtr textLabel, float width, float height); /// @@ -68,19 +68,19 @@ namespace Tizen.NUI.BaseComponents { add { - if (textLabelAsyncTextHeightForWidthComputedEventHandler == null) + if (textLabelAsyncHeightForWidthComputedEventHandler == null) { - textLabelAsyncTextHeightForWidthComputedCallbackDelegate = (OnAsyncHeightForWidthComputed); - AsyncHeightForWidthComputedSignal().Connect(textLabelAsyncTextHeightForWidthComputedCallbackDelegate); + textLabelAsyncHeightForWidthComputedCallbackDelegate = (OnAsyncHeightForWidthComputed); + AsyncHeightForWidthComputedSignal().Connect(textLabelAsyncHeightForWidthComputedCallbackDelegate); } - textLabelAsyncTextHeightForWidthComputedEventHandler += value; + textLabelAsyncHeightForWidthComputedEventHandler += value; } remove { - textLabelAsyncTextHeightForWidthComputedEventHandler -= value; - if (textLabelAsyncTextHeightForWidthComputedEventHandler == null && AsyncHeightForWidthComputedSignal().Empty() == false) + textLabelAsyncHeightForWidthComputedEventHandler -= value; + if (textLabelAsyncHeightForWidthComputedEventHandler == null && AsyncHeightForWidthComputedSignal().Empty() == false) { - AsyncHeightForWidthComputedSignal().Disconnect(textLabelAsyncTextHeightForWidthComputedCallbackDelegate); + AsyncHeightForWidthComputedSignal().Disconnect(textLabelAsyncHeightForWidthComputedCallbackDelegate); } } } @@ -97,7 +97,7 @@ namespace Tizen.NUI.BaseComponents AsyncTextSizeComputedEventArgs e = new AsyncTextSizeComputedEventArgs(width, height); //here we send all data to user event handlers - textLabelAsyncTextHeightForWidthComputedEventHandler?.Invoke(this, e); + textLabelAsyncHeightForWidthComputedEventHandler?.Invoke(this, e); } /// @@ -108,19 +108,19 @@ namespace Tizen.NUI.BaseComponents { add { - if (textLabelAsyncTextNaturalSizeComputedEventHandler == null) + if (textLabelAsyncNaturalSizeComputedEventHandler == null) { - textLabelAsyncTextNaturalSizeComputedCallbackDelegate = (OnAsyncNaturalSizeComputed); - AsyncNaturalSizeComputedSignal().Connect(textLabelAsyncTextNaturalSizeComputedCallbackDelegate); + textLabelAsyncNaturalSizeComputedCallbackDelegate = (OnAsyncNaturalSizeComputed); + AsyncNaturalSizeComputedSignal().Connect(textLabelAsyncNaturalSizeComputedCallbackDelegate); } - textLabelAsyncTextNaturalSizeComputedEventHandler += value; + textLabelAsyncNaturalSizeComputedEventHandler += value; } remove { - textLabelAsyncTextNaturalSizeComputedEventHandler -= value; - if (textLabelAsyncTextNaturalSizeComputedEventHandler == null && AsyncNaturalSizeComputedSignal().Empty() == false) + textLabelAsyncNaturalSizeComputedEventHandler -= value; + if (textLabelAsyncNaturalSizeComputedEventHandler == null && AsyncNaturalSizeComputedSignal().Empty() == false) { - AsyncNaturalSizeComputedSignal().Disconnect(textLabelAsyncTextNaturalSizeComputedCallbackDelegate); + AsyncNaturalSizeComputedSignal().Disconnect(textLabelAsyncNaturalSizeComputedCallbackDelegate); } } } @@ -137,7 +137,7 @@ namespace Tizen.NUI.BaseComponents AsyncTextSizeComputedEventArgs e = new AsyncTextSizeComputedEventArgs(width, height); //here we send all data to user event handlers - textLabelAsyncTextNaturalSizeComputedEventHandler?.Invoke(this, e); + textLabelAsyncNaturalSizeComputedEventHandler?.Invoke(this, e); } ///