[NUI] Support Device orientation and window orientation event.
authorWonsik Jung <sidein@samsung.com>
Thu, 5 Jan 2023 08:04:01 +0000 (17:04 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Thu, 5 Jan 2023 11:57:36 +0000 (20:57 +0900)
commit800c7fd91b80b8d6e9fe6210767cddd78d9a60df
tree6ce38ade87410e156f8404f0c4c0d58974e39bae
parent43fe3e02229f5bd723ca6f0f1ae6d763aa663a2f
[NUI] Support Device orientation and window orientation event.

Supporting  Device orientation and Window Orienation event
when device orientation is changed or window orientation is changed.
Window orientation event is emitted by display server.
To emit the Window Orientation event, AddAvailableOrientation()
or SetPreferredOrientation() should be called before the device is rotated.
Otherwise, Device Orientation event is emitted by Application framework
and any condition is not needed.
13 files changed:
src/Tizen.NUI/src/internal/Application/Application.cs
src/Tizen.NUI/src/internal/Application/NUICoreBackend.cs
src/Tizen.NUI/src/internal/Application/NUIWidgetCoreBackend.cs
src/Tizen.NUI/src/internal/Common/DeviceOrientationChangedSignalType.cs [new file with mode: 0644]
src/Tizen.NUI/src/internal/Interop/Interop.DeviceOrientationChangedSignal.cs [new file with mode: 0644]
src/Tizen.NUI/src/internal/Interop/Interop.WindowOrientationChangedSignal.cs [new file with mode: 0644]
src/Tizen.NUI/src/internal/Interop/NDalicPINVOKE.cs
src/Tizen.NUI/src/internal/Window/WindowOrientationChangedSignal.cs [new file with mode: 0644]
src/Tizen.NUI/src/public/Application/NUIApplication.cs
src/Tizen.NUI/src/public/Application/NUIWidgetApplication.cs
src/Tizen.NUI/src/public/Window/WindowEvent.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/WindowEventsTest.cs
test/Tizen.NUI.UIThread/Tizen.NUI.UIThread.cs