X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fcontent%2Fshared-javascript-and-cpp-documentation%2Fprogramming-languages.md;h=5938e530891664593c8bd5ef55ba5172e7d2c134;hb=7f0a28e0f0da67178997e5a647bdc471e8dcb652;hp=e2c4de2bc2369ae1655a64ded65390c8ed5a7894;hpb=a073ebfd862b49692c8e6d7dff2b128e62a4f6df;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/docs/content/shared-javascript-and-cpp-documentation/programming-languages.md b/docs/content/shared-javascript-and-cpp-documentation/programming-languages.md index e2c4de2..5938e53 100644 --- a/docs/content/shared-javascript-and-cpp-documentation/programming-languages.md +++ b/docs/content/shared-javascript-and-cpp-documentation/programming-languages.md @@ -13,15 +13,15 @@ actor.SetParentOrigin( Dali::ParentOrigin::CENTER ); actor.SetAnchorPoint( Dali::AnchorPoint::CENTER ); Dali::Stage::GetCurrent().Add( actor ); ... -bool OnPressed( Dali::Actor, const TouchEvent& event ) +bool OnPressed( Dali::Actor, const TouchData& touch ) { Dali::Animation anim = Dali::Animation::New( 1.5f ); - anim.AnimateTo( Property( actor, Actor::Property::POSITION ), Vector3( 200,-100,0), AlphaFunctions::Bounce ); + anim.AnimateTo( Property( actor, Actor::Property::POSITION ), Vector3( 200, -100, 0 ), AlphaFunctions::Bounce ); anim.play(); return true; // consume the touch event } ... -actor.TouchedSignal().Connect( &OnPressed ); +actor.TouchSignal().Connect( &OnPressed ); ~~~ */ @@ -34,16 +34,16 @@ actor.parentOrigin = dali.CENTER; actor.anchorPoint = dali.CENTER; dali.stage.add( actor ); ... -function onPressed( actor, touchEvent ) +function onPressed( actor, touch ) { var animOptions = { alpha: "bounce", delay: 0, duration: 15 }; var anim = new dali.Animation(); - anim.animateTo( actor, "position", [ 200,-100,0], animOptions ); + anim.animateTo( actor, "position", [ 200, -100, 0 ], animOptions ); anim.play(); return true; // consume the touch event } ... -actor.connect( "touched", onPressed ); +actor.connect( "touch", onPressed ); ~~~ @@ -76,7 +76,7 @@ actor.connect( "touched", onPressed ); "parentOrigin": "CENTER", "signals" : [ - { "name" : "touched", "action": "play", "animation": "move" } + { "name" : "touch", "action": "play", "animation": "move" } ] } ]