Remove some public Setter/Getter APIs from Dali::Actor
[platform/core/uifw/dali-toolkit.git] / docs / content / programming-guide / event-system.h
index 98c650d..9e0c1b2 100644 (file)
@@ -72,7 +72,7 @@ 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;
+  Vector3 newSize = actor.GetCurrentProperty< Vector3 >( Actor::Property::SIZE ) * pinch.scale;
   actor.SetSize(newSize);
 }