1 /*! \page script-hello Scripting Hello World
3 * <h2 class="pg">Hello World - JSON layout</h2>
5 * The following JSON code is the minimum required to put the sentence "Hello World" on the screen.
11 * "name": "text-label",
12 * "type": "TextLabel",
13 * "text": "Hello World",
14 * "parent-origin": "CENTER"
19 * The following c++ code loads the JSON file
22 * Builder builder = Builder::New();
24 * std::string json_data(ReadFile("layout.json"));
26 * builder.LoadFromString(json_data);
28 * Actor actor = builder.GetActor("text-label");
30 * Stage::GetCurrent().Add(actor);
33 * <h2 class="pg">Hello World - Javascript</h2>
35 * Hello world can also be executed via Javascript.
37 * The Dali script application is needed to run the Javascript which provides a Javascript runtime and an interface to Dali.
40 * daliscript hello-world.js
43 * The TextLabel control to display Hello World can be constructed using Javascript dot notation accessing Dali Actor Properties.
46 * var textLabel = Dali.TextLabel();
48 * textLabel.text = "Hello World";
49 * textLabel.font-family = "FreeSans";
50 * textLabel.font-style = "Regular";
51 * textLabel.parent-origin = "CENTER";