[NUI] Add TouchArea property. (#2105)
authorJoogabYun <40262755+JoogabYun@users.noreply.github.com>
Tue, 3 Nov 2020 01:23:13 +0000 (10:23 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 4 Nov 2020 08:17:17 +0000 (17:17 +0900)
commitfb22656be74566ab515564624ae4b394c4085f29
tree7c284242618f4a2135b006fd6a950d6291e24cbd
parent0c436ea0cc6db472f4e60973f440c84c69589ad1
[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