[NUI] Do not connect default signals when View created
authorEunki, Hong <eunkiki.hong@samsung.com>
Mon, 6 Mar 2023 13:25:05 +0000 (22:25 +0900)
committertscholb <scholb.kim@samsung.com>
Mon, 13 Mar 2023 10:02:21 +0000 (19:02 +0900)
commit8918ceb5e0bc3ccc7c3f20503cab3e9db5823d8d
tree628dfc36e0bd79287e8e18139db20998b4d3cf77
parentf86117e708714b90da4cc673ad233159ad2da2da
[NUI] Do not connect default signals when View created

Since Window.ViewAdded signal required to all common view's creation time,
It will reduce each view's creation time.
And more, ViewAdded signal only works for default windows previously.

Now we make the signal ownership from window.

And additionaly, register custom HitTest signal only if subclass required.

TODO : The role of signal conflict with View.AddedToWindow.
Can we just remove this ViewAdded signal?

TODO : Can we just skip default view constructor's signal connection?

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI/src/internal/Common/WindowViewAddedSignal.cs [new file with mode: 0755]
src/Tizen.NUI/src/internal/Interop/Interop.WindowViewAddedSignal.cs [new file with mode: 0755]
src/Tizen.NUI/src/public/BaseComponents/View.cs
src/Tizen.NUI/src/public/BaseComponents/ViewEvent.cs
src/Tizen.NUI/src/public/BaseComponents/ViewInternal.cs
src/Tizen.NUI/src/public/BaseComponents/ViewPublicMethods.cs
src/Tizen.NUI/src/public/Window/BorderWindow.cs
src/Tizen.NUI/src/public/Window/WindowEvent.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/EventPropagationSample.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/HitTestSample.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/WindowEventsTest.cs