Merge "Divide Render() into small apis" into devel/master
[platform/core/uifw/dali-toolkit.git] / docs / content / programming-guide / event-system.h
index 98c650d..1498ed0 100644 (file)
@@ -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