X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=docs%2Fcontent%2Fprogramming-guide%2Fhello-world.h;h=d0cabd740ca26a9e13cdf96829a6eb6fd6b726d3;hp=2065659e451e5b6a750f0e0db0fc4426050977fa;hb=e4a3c7b18f3a6168ec3967d4881663f7ed54f8d5;hpb=61be2f8d3c96e01da8e6ade2a76a192ff6ab6945 diff --git a/docs/content/programming-guide/hello-world.h b/docs/content/programming-guide/hello-world.h index 2065659..d0cabd7 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. @@ -44,7 +44,7 @@ public: Stage stage = Stage::GetCurrent(); mTextLabel = TextLabel::New( "Hello World" ); - mTextLabel.SetAnchorPoint( AnchorPoint::TOP_LEFT ); + mTextLabel.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT ); stage.Add( mTextLabel ); // Respond to a click anywhere on the stage @@ -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 ...