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=ea391b2f2dac39500aa7a3a9d7e78ea23ef80666;hb=d8a4571d975ae061fe32f1d098d07ccc94604729;hpb=63a4af2b863121be7ed57daee038d169d9ebe768 diff --git a/docs/content/programming-guide/programming-languages.md b/docs/content/programming-guide/programming-languages.md index ea391b2..5ab5e8a 100644 --- a/docs/content/programming-guide/programming-languages.md +++ b/docs/content/programming-guide/programming-languages.md @@ -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" } ] } ]