X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=docs%2Fcontent%2Fprogramming-guide%2Fhello-world.h;h=780ad3eeae243f4e6fe063f07fdfb96013778619;hb=266f5b8959b7e9e1215be278dac13347c358af47;hp=2065659e451e5b6a750f0e0db0fc4426050977fa;hpb=b88f2695b93192680a5779764757ada1534c57fe;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/docs/content/programming-guide/hello-world.h b/docs/content/programming-guide/hello-world.h index 2065659..780ad3e 100644 --- a/docs/content/programming-guide/hello-world.h +++ b/docs/content/programming-guide/hello-world.h @@ -1,12 +1,12 @@ /*! \page hello-world Hello World - explained -The following steps are required for displaying the sentence 'Hello World' with Dali: +The following steps are required for displaying the sentence 'Hello World' with DALi: -- initialize the Dali library +- initialize the DALi library - create an Actor showing text - add it to the Stage -To understand the basic building blocks of the UI make sure to read the chapter on \link fundamentals Dali Fundamentals\endlink first. +To understand the basic building blocks of the UI make sure to read the chapter on \link fundamentals DALi Fundamentals\endlink first. Let's take a look at the code for this test application. @@ -48,10 +48,10 @@ public: stage.Add( mTextLabel ); // Respond to a click anywhere on the stage - stage.GetRootLayer().TouchedSignal().Connect( this, &HelloWorldController::OnTouch ); + stage.GetRootLayer().TouchSignal().Connect( this, &HelloWorldController::OnTouch ); } - bool OnTouch( Actor actor, const TouchEvent& touch ) + bool OnTouch( Actor actor, const TouchData& touch ) { // quit the application mApplication.Quit(); @@ -85,8 +85,8 @@ int main( int argc, char **argv ) There are a couple of steps which are very important to understand. -

Initializing Dali

- The application should not use the Dali library until it has sent the init complete signal! +

Initializing DALi

+ The application should not use the DALi library until it has sent the init complete signal! That's why we connect our ExampleApp::Create callback to Dali::Application's SignalInit signal: \code ... @@ -96,7 +96,7 @@ int main( int argc, char **argv )

Reference counting

The application should store Actors' and resources' handles. - Dali objects are reference counted, which makes sure they exist only as long as they are needed. + DALi objects are reference counted, which makes sure they exist only as long as they are needed. That's why we store the Actor's handle: \code ...