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 * "freesans": {"name": "FreeSans", "point-size": 12.0, "weight": "WEIGHT_REGULAR" }
15 * {"name":"text-actor",
17 * "text":"Hello World",
19 * "parent-origin":"CENTER"
25 * The following c++ code loads the JSON file
28 * Builder builder = Builder::New();
30 * std::string json_data(ReadFile("layout.json"));
32 * builder.LoadFromString(json_data);
34 * Actor actor = builder.GetActor("text-actor");
36 * Stage::GetCurrent().Add(actor);
39 * <h2 class="pg">Hello World - Javascript</h2>
41 * Hello world can also be executed via Javascript.
43 * The Dali script application is needed to run the Javascript which provides a Javascript runtime and an interface to Dali.
46 * daliscript hello-world.js
49 * The TextActor control to display Hello World can be constructed using Javascript dot notation accessing Dali Actor Properties.
52 * var textActor = Dali.TextActor();
54 * textActor.text = "Hello World";
55 * textActor.font = "FreeSans";
56 * textActor.font-weight = "WEIGHT_REGULAR";
57 * textActor.parent-origin = "CENTER";