[NUI] Supports Clockwise and CounterClockwise focus movement.
authorjoogab.yun <joogab.yun@samsung.com>
Thu, 10 Mar 2022 05:27:14 +0000 (14:27 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 29 Mar 2022 03:10:12 +0000 (12:10 +0900)
commit4bd4d82f7c72262abfc9b1705e601dbac86f6939
tree0fdfe23e4c2e1bebe90ff5c6cc60a4ed9edc7e49
parent2c4dae8e2e5d3a6bb84f217def164bc0f2b1ff45
[NUI] Supports Clockwise and CounterClockwise focus movement.

Clockwise and CounterClockwise are rotary wheel event directions.

There is also a requirement that the focus be moved with a rotary wheel as well.

So, you can set the FocusableView according to the clockwise and counterclockwise directions of the rotary wheel.

```C#
  var viewA = new View { Focusable = true };
  var ViewB = new View { Focusable = true };

  viewA.ClockwiseFocusableView = viewB;
  ViewB.CounterClockwiseFocusableView = ViewA;

```

In ViewA, if the rotary wheel is in the Clockwise direction, ViewB is focused.
When the rotary wheel in ViewB is in the CountClockwise direction, ViewA is focused.

Dependency
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-toolkit/+/272040/
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-csharp-binder/+/272137/
src/Tizen.NUI/src/internal/Interop/Interop.ViewProperty.cs
src/Tizen.NUI/src/public/BaseComponents/View.cs
src/Tizen.NUI/src/public/BaseComponents/ViewBindableProperty.cs
src/Tizen.NUI/src/public/BaseComponents/ViewEnum.cs
src/Tizen.NUI/src/public/BaseComponents/ViewInternal.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/CustomWheelEventSample.cs [new file with mode: 0755]