Change TOUCH_AREA to TOUCH_AREA_OFFSET 87/257287/1
authorJoogab Yun <joogab.yun@samsung.com>
Thu, 22 Apr 2021 02:09:26 +0000 (11:09 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Thu, 22 Apr 2021 02:09:58 +0000 (11:09 +0900)
commit5e3ebac2896d465ae55700d5eecc7cc31acd6746
tree383fb01c310f8c37950163b83cf512effd829ae5
parent611aa0a439969daefa33e9428d294ce4f9c03f1b
Change TOUCH_AREA to TOUCH_AREA_OFFSET

You can set offset the touch area.

for example)
  Actor actor = Actor::New();
  actor.SetProperty(Actor::Property::SIZE, Vector2(10.0f, 10.0f));
  actor.SetProperty(DevelActor::Property::TOUCH_AREA_OFFSET, Rect<int>(-100, 100, 100, -100));
  actor.TouchedSignal().Connect(OnTouchCallback);

then touch area is 210x210.
this is actor.width + touchAreaOffset.right - touchAreaOffset.left
and actor.height + touchAreaOffset.bottom -touchAreaOffset.top

This reverts commit 611aa0a439969daefa33e9428d294ce4f9c03f1b.

Change-Id: Ifaafb243f18ec24cfd0089e009a62505e54f60ec
automated-tests/src/dali/utc-Dali-Actor.cpp
automated-tests/src/dali/utc-Dali-TouchProcessing.cpp
dali/devel-api/actors/actor-devel.h
dali/internal/event/actors/actor-impl.cpp
dali/internal/event/actors/actor-impl.h
dali/internal/event/actors/actor-property-handler.cpp
dali/internal/event/events/ray-test.cpp