Add TouchDelegateArea property. 35/245935/9
authorJoogab Yun <joogab.yun@samsung.com>
Tue, 20 Oct 2020 06:46:19 +0000 (15:46 +0900)
committerjoogab yun <joogab.yun@samsung.com>
Thu, 22 Oct 2020 01:29:02 +0000 (01:29 +0000)
commit199a66447fc65d87cdfffc39465253ddcb0e436b
treec57a36e980810111df5071328f32dc3bb1ed1a36
parent654869a395fef70ccbec1776b8f3a0bf8636824d
Add TouchDelegateArea property.

TouchDelegateArea can reset the actor's touchable area.
This is usefull when the actor is small, but it should have a larger touch area.

for example

      Actor actor = Actor::New();
      actor.SetProperty(Actor::Property::SIZE, Vector2(10.0f, 10.0f));
      actor.SetProperty(DevelActor::Property::TOUCH_DELEGATE_AREA, Vector2(200.0f, 200.0f));
      actor.TouchedSignal().Connect(OnTouchCallback);

The actor is small, If you want to set the touch area to a larger area,
you can use the TOUCH_DELEGATE_AREA property.

Change-Id: Ic4e3683e09d1636bc61719ea1e83bcd05a1c4153
automated-tests/src/dali/utc-Dali-Actor.cpp [changed mode: 0644->0755]
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 [changed mode: 0644->0755]
dali/internal/event/events/ray-test.cpp [changed mode: 0644->0755]