X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=docs%2Fcontent%2Fprogramming-guide%2Fprogramming-languages.md;h=5ab5e8a28f886d971efad1b44b06c9f9d9facd0c;hp=a17705c79f8d5c6d1bbecda57694e107e1f80ad0;hb=d8a4571d975ae061fe32f1d098d07ccc94604729;hpb=c01f2590ed7bb00d9b3600511d08dc420261ed46 diff --git a/docs/content/programming-guide/programming-languages.md b/docs/content/programming-guide/programming-languages.md index a17705c..5ab5e8a 100644 --- a/docs/content/programming-guide/programming-languages.md +++ b/docs/content/programming-guide/programming-languages.md @@ -13,7 +13,7 @@ actor.SetParentOrigin( Dali::ParentOrigin::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" } ] } ]