X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=docs%2Fcontent%2Fprogramming-guide%2Fevent-system.h;h=1498ed078e543382727f759a7d6757f105ab1d13;hb=763c96a171fb79c5ae983792434537c70ac231fb;hp=98c650dcaf41cc966620a420ac459d2cff6f9c7a;hpb=283c6129b00dfdbc1badbf809b4257784820bb30;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/docs/content/programming-guide/event-system.h b/docs/content/programming-guide/event-system.h index 98c650d..1498ed0 100644 --- a/docs/content/programming-guide/event-system.h +++ b/docs/content/programming-guide/event-system.h @@ -72,8 +72,8 @@ The example below shows how an application can be notified of a pinch gesture: void OnPinch( Dali::Actor actor, const Dali::PinchGesture& pinch ) { // Scale your actor according to the pinch scale - Vector3 newSize = actor.GetCurrentSize() * pinch.scale; - actor.SetSize(newSize); + Vector3 newSize = actor.GetCurrentProperty< Vector3 >( Actor::Property::SIZE ) * pinch.scale; + actor.SetProperty( Actor::Property::SIZE, newSize ); } // Elsewhere