X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=docs%2Fcontent%2Fshared-javascript-and-cpp-documentation%2Ffundamentals.md;h=8a243ccc81f100544c651bc5a060de8bf62cb722;hp=115001b95aca2b79c950907ce607cfc356abe330;hb=7dbdc48ead036277d57a6a6ad61d6056c3b39a07;hpb=5c01fbfae7ab607f68d31a8bec6bf17f7b67a652 diff --git a/docs/content/shared-javascript-and-cpp-documentation/fundamentals.md b/docs/content/shared-javascript-and-cpp-documentation/fundamentals.md index 115001b..8a243cc 100644 --- a/docs/content/shared-javascript-and-cpp-documentation/fundamentals.md +++ b/docs/content/shared-javascript-and-cpp-documentation/fundamentals.md @@ -2,7 +2,7 @@ * # Dali Fundamentals {#fundamentals} -## Actors and the Stage +## Actors and the Stage {#actors-and-stage} A Dali application uses a hierachy of Dali::Actor objects to position visible content. An actor inherits a position relative to its parent, and can be moved relative to this point. UI controls can be built by combining multiple actors. @@ -20,7 +20,7 @@ var actor = new dali.Actor(); dali.stage.add( actor ); ~~~ -## The Coordinate System +## The Coordinate System {#coordinate-system} The Stage has a 2D size, which matches the size of the application window. The default coordinate system in Dali has the origin at the top-left corner, with positive X to right, and position Y going downwards. This is intended to be convenient when laying-out 2D views. @@ -28,7 +28,7 @@ downwards. This is intended to be convenient when laying-out 2D views. ![ ](../assets/img/coordinate-system-and-stage.png) ![ ](coordinate-system-and-stage.png) -## Positioning Actors +## Positioning Actors {#positioning-actors} An actor inherits its parent's position. The relative position between the actor & parent is determined by 3 properties: 1) ParentOrigin. This Vector3 property defines a point within the parent actor's area.