[NUI] Add TouchArea property. (#2105)
authorJoogabYun <40262755+JoogabYun@users.noreply.github.com>
Tue, 3 Nov 2020 01:23:13 +0000 (10:23 +0900)
committerGitHub <noreply@github.com>
Tue, 3 Nov 2020 01:23:13 +0000 (10:23 +0900)
commit26e21f69bc3f056e277f198833f3eba05392459c
tree0d5cd65e4b6cc084c7789bf27c994df370bf4bf0
parenta0085c35caea957f34b2d2c43ae22930f4951477
[NUI] Add TouchArea property. (#2105)

Default touchable area is view's size.
TouchArea can reset the view's touchable area.

This is usefull when the view is small, but it should have a larger touch area.

for example

      View view = new View();
      view.Size = new Size(10, 10);
      view.TouchEvent += OnTouchEvent;
      view.TouchArea = new Size2D(200, 200);

The view is small, If you want to set the touch area to a larger area,
you can use the TouchArea property.
src/Tizen.NUI/src/internal/Interop/Interop.ActorProperty.cs
src/Tizen.NUI/src/public/BaseComponents/ViewEnum.cs
src/Tizen.NUI/src/public/BaseComponents/ViewEvent.cs