[NUI] Add TouchArea property. (#2105)
authorJoogabYun <40262755+JoogabYun@users.noreply.github.com>
Tue, 3 Nov 2020 01:23:13 +0000 (10:23 +0900)
committerTizenAPI-Bot <37820187+TizenAPI-Bot@users.noreply.github.com>
Tue, 3 Nov 2020 03:44:07 +0000 (12:44 +0900)
commit4a36f8f08fe9d580b35d740b8462a9a75fabd401
treee2aaf9fbb410f860c37cc22a6d72250c44998740
parent9b1dfa7d93bb9d75b879fc42e3b97f57f44b835e
[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