From 61406bafcbc1bdcb6d4b3ae08bb5543c48159d10 Mon Sep 17 00:00:00 2001 From: Eunki Hong Date: Sat, 2 Nov 2024 00:02:15 +0900 Subject: [PATCH] [NUI] Remove build warnings at DragAndDrop + TextConstants 1. Fix typo error (navtive -> native> 2. Vector2 is already nullabe class. We don't need to make it as Vector2? Signed-off-by: Eunki Hong --- .../public/BaseComponents/TextConstants.cs | 2 +- .../src/public/DragAndDrop/DragAndDrop.cs | 30 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextConstants.cs b/src/Tizen.NUI/src/public/BaseComponents/TextConstants.cs index bcd69f4e9a9..db5b93845eb 100644 --- a/src/Tizen.NUI/src/public/BaseComponents/TextConstants.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextConstants.cs @@ -421,7 +421,7 @@ public struct Outline : IEquatable /// If not provided then the offset is not enabled.
/// [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2? Offset { get; set; } + public Vector2 Offset { get; set; } /// /// The radius of blurring effect applied to the outline of the text. A higher value results in a more blurred outline.
diff --git a/src/Tizen.NUI/src/public/DragAndDrop/DragAndDrop.cs b/src/Tizen.NUI/src/public/DragAndDrop/DragAndDrop.cs index fb93dab2145..64192d4fd55 100755 --- a/src/Tizen.NUI/src/public/DragAndDrop/DragAndDrop.cs +++ b/src/Tizen.NUI/src/public/DragAndDrop/DragAndDrop.cs @@ -44,10 +44,10 @@ public class DragAndDrop : BaseHandle ///
/// The view where the drag event occurred. /// The native drag event containing details about the drag operation. - public delegate void DragAndDropEventHandler(View targetView, DragEvent navtiveDragEvent); + public delegate void DragAndDropEventHandler(View targetView, DragEvent nativeDragEvent); [EditorBrowsable(EditorBrowsableState.Never)] - public delegate void DragAndDropWindowEventHandler(Window targetWindow, DragEvent navtiveDragEvent); - private delegate void InternalDragAndDropEventHandler(global::System.IntPtr navtiveDragEvent); + public delegate void DragAndDropWindowEventHandler(Window targetWindow, DragEvent nativeDragEvent); + private delegate void InternalDragAndDropEventHandler(global::System.IntPtr nativeDragEvent); private InternalSourceEventHandler sourceEventCb; private Dictionary targetEventDictionary = new Dictionary(); private Dictionary targetWindowEventDictionary = new Dictionary(); @@ -61,16 +61,16 @@ public class DragAndDrop : BaseHandle private const int MinDragWindowWidth = 100; private const int MinDragWindowHeight = 100; - private void ProcessDragEventTargetCallback(IntPtr navtiveDragEvent, View targetView, DragAndDropEventHandler callback) + private void ProcessDragEventTargetCallback(IntPtr nativeDragEvent, View targetView, DragAndDropEventHandler callback) { - DragType type = (DragType)Interop.DragAndDrop.GetAction(navtiveDragEvent); + DragType type = (DragType)Interop.DragAndDrop.GetAction(nativeDragEvent); DragEvent dragEvent = new DragEvent(); - global::System.IntPtr cPtr = Interop.DragAndDrop.GetPosition(navtiveDragEvent); + global::System.IntPtr cPtr = Interop.DragAndDrop.GetPosition(nativeDragEvent); dragEvent.Position = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, true); IntPtr nativeMimeTypes; int count; - Interop.DragAndDrop.GetMimeTypes(navtiveDragEvent, out nativeMimeTypes, out count); + Interop.DragAndDrop.GetMimeTypes(nativeDragEvent, out nativeMimeTypes, out count); if (count > 0) { IntPtr [] nativeMimeTypesArrary = new IntPtr[count]; @@ -105,21 +105,21 @@ private void ProcessDragEventTargetCallback(IntPtr navtiveDragEvent, View target else if (type == DragType.Drop) { dragEvent.DragType = type; - dragEvent.Data = Interop.DragAndDrop.GetData(navtiveDragEvent); + dragEvent.Data = Interop.DragAndDrop.GetData(nativeDragEvent); callback(targetView, dragEvent); } } - private void ProcessDragEventWindowCallback(IntPtr navtiveDragEvent, Window targetWindow, DragAndDropWindowEventHandler callback) + private void ProcessDragEventWindowCallback(IntPtr nativeDragEvent, Window targetWindow, DragAndDropWindowEventHandler callback) { - DragType type = (DragType)Interop.DragAndDrop.GetAction(navtiveDragEvent); + DragType type = (DragType)Interop.DragAndDrop.GetAction(nativeDragEvent); DragEvent dragEvent = new DragEvent(); - global::System.IntPtr cPtr = Interop.DragAndDrop.GetPosition(navtiveDragEvent); + global::System.IntPtr cPtr = Interop.DragAndDrop.GetPosition(nativeDragEvent); dragEvent.Position = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false); IntPtr nativeMimeTypes; int count; - Interop.DragAndDrop.GetMimeTypes(navtiveDragEvent, out nativeMimeTypes, out count); + Interop.DragAndDrop.GetMimeTypes(nativeDragEvent, out nativeMimeTypes, out count); if (count > 0) { IntPtr [] nativeMimeTypesArrary = new IntPtr[count]; @@ -154,7 +154,7 @@ private void ProcessDragEventWindowCallback(IntPtr navtiveDragEvent, Window targ else if (type == DragType.Drop) { dragEvent.DragType = type; - dragEvent.Data = Interop.DragAndDrop.GetData(navtiveDragEvent); + dragEvent.Data = Interop.DragAndDrop.GetData(nativeDragEvent); callback(targetWindow, dragEvent); } } @@ -311,7 +311,7 @@ public void AddListener(View targetView, DragAndDropEventHandler callback) [EditorBrowsable(EditorBrowsableState.Never)] public void AddListener(View targetView, string mimeType, DragAndDropEventHandler callback) { - InternalDragAndDropEventHandler cb = (navtiveDragEvent) => ProcessDragEventTargetCallback(navtiveDragEvent, targetView, callback); + InternalDragAndDropEventHandler cb = (nativeDragEvent) => ProcessDragEventTargetCallback(nativeDragEvent, targetView, callback); targetEventDictionary.Add(targetView, cb); @@ -364,7 +364,7 @@ public void AddListener(Window targetWindow, DragAndDropWindowEventHandler callb [EditorBrowsable(EditorBrowsableState.Never)] public void AddListener(Window targetWindow, string mimeType, DragAndDropWindowEventHandler callback) { - InternalDragAndDropEventHandler cb = (navtiveDragEvent) => ProcessDragEventWindowCallback(navtiveDragEvent, targetWindow, callback); + InternalDragAndDropEventHandler cb = (nativeDragEvent) => ProcessDragEventWindowCallback(nativeDragEvent, targetWindow, callback); targetWindowEventDictionary.Add(targetWindow, cb);