[NUI] Change TouchArea to TouchAreaOffset (#2948)
authorJoogabYun <40262755+JoogabYun@users.noreply.github.com>
Mon, 26 Apr 2021 06:05:53 +0000 (15:05 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 28 Apr 2021 03:36:30 +0000 (12:36 +0900)
commitac0ea25490a88bd852651fa64a8c5bcddc5416fc
treefd8e035e21e0ff38e24097348dc7eda229d49af9
parent118a8f7b5aaefade94c3f9e66644e484f2bf893b
[NUI] Change  TouchArea to TouchAreaOffset (#2948)

    You can expand the touch area.

    for example)
      View view = new View();
      view.Size = new Size(10, 10);
      view.TouchEvent += OnTouch;
      view.TouchAreaOffset = new Offset(-100, 100, 100, -100); // left, right, bottom, top

    then touch area is 210x210.
    this is view.width  -touchAreaOffset.left + touchAreaOffset.right
    and view.height + touchAreaOffset.bottom  -touchAreaOffset.top
src/Tizen.NUI/src/internal/Interop/Interop.ActorInternal.cs
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
src/Tizen.NUI/src/public/Common/NUIConstants.cs