Merge "Deleted Move/Copy operators & constructors from Internal::Control" into devel...
[platform/core/uifw/dali-toolkit.git] / docs / content / programming-guide / programming-languages.md
index ea391b2..5ab5e8a 100644 (file)
@@ -10,10 +10,10 @@ DALi applications can be written in several different programming languages.
 ~~~{.cpp}
 Dali::Actor actor = Dali::Actor::New();
 actor.SetParentOrigin( Dali::ParentOrigin::CENTER );
-actor.SetAnchorPoint( Dali::AnchorPoint::CENTER );
+actor.SetProperty( Dali::Actor::Property::ANCHOR_POINT, Dali::AnchorPoint::CENTER );
 Dali::Stage::GetCurrent().Add( actor );
 ...
-bool OnPressed( Dali::Actor, const TouchData& touch )
+bool OnPressed( Dali::Actor, const TouchEvent& touch )
 {
   Dali::Animation anim = Dali::Animation::New( 1.5f );
   anim.AnimateTo( Property( actor, Actor::Property::POSITION ), Vector3( 200, -100, 0 ), AlphaFunctions::Bounce );
@@ -21,7 +21,7 @@ bool OnPressed( Dali::Actor, const TouchData& touch )
   return true; // consume the touch event
 }
 ...
-actor.TouchSignal().Connect( &OnPressed );
+actor.TouchedSignal().Connect( &OnPressed );
 ~~~
 
 ## JSON {#json-support}
@@ -53,7 +53,7 @@ actor.TouchSignal().Connect( &OnPressed );
       "parentOrigin": "CENTER",
       "signals" :
       [
-        { "name" : "touch", "action": "play", "animation": "move" }
+        { "name" : "touched", "action": "play", "animation": "move" }
       ]
     }
   ]