X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=plugins%2Fdali-script-v8%2Fdocs%2Fcontent%2Factor.js;h=98b35a4bcc49fa90d8d0e5f6b3fe3dc904cf7cd3;hb=90925e62266ce32a326ba2458e9c3d1107244218;hp=4938c01dbb4978e12c106bb12d10897673ebe911;hpb=7d670fbea93dfffa62535078bd8d84139176e0f0;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/plugins/dali-script-v8/docs/content/actor.js b/plugins/dali-script-v8/docs/content/actor.js index 4938c01..98b35a4 100644 --- a/plugins/dali-script-v8/docs/content/actor.js +++ b/plugins/dali-script-v8/docs/content/actor.js @@ -9,7 +9,6 @@ ``` var actor = new dali.Actor(); -var imageActor = new dali.ImageActor(); var textActor = new dali.TextActor("hello world"); var camera = new dali.CameraActor(); var layer = new dali.Layer(); @@ -72,13 +71,13 @@ Note that since DALi is a 3D toolkit, this behaviour is the result of a default The actor provides the following call back events -| Name | Description | Parameters passed to call back | -|-------------------|----------------------------------------|--------------------------| -|touched | touch event | (actor, touchEvent ) | -|hovered | mouse or pointer hovering over actor | (actor, hoverEvent) | -|mouse-wheel-event | mouse wheel events | (actor, wheelEvent) | -|on-stage | actor has been moved on stage | (actor) | -|off-stage | actor has been moved off stage | (actor) | +| Name | Description | Parameters passed to call back | +|-----------------|----------------------------------------|--------------------------| +|touched | touch event | (actor, touchEvent ) | +|hovered | mouse or pointer hovering over actor | (actor, hoverEvent) | +|mouseWheelEvent | mouse wheel events | (actor, wheelEvent) | +|onStage | actor has been moved on stage | (actor) | +|offStage | actor has been moved off stage | (actor) | #### Touch event @@ -125,7 +124,7 @@ function OnPressed( actor, touchEvent ) } // connect to touch events -myActor.connect( "touched", onPressed ); +myActor.on( "touched", onPressed ); ``` @@ -144,7 +143,7 @@ hoverEvent = { } ``` // connect to touch events - myActor.connect( "hovered", onHover); + myActor.on( "hovered", onHover); #### Mouse wheel event @@ -162,7 +161,7 @@ mouseWheelEvent = { } // connect to touch events -myActor.connect( "mouse-wheel-event", onMouseWheel ); +myActor.on( "mouseWheelEvent", onMouseWheel ); ``` #### Key events @@ -226,6 +225,7 @@ See * @class Actor + * @extends Handle */ @@ -543,7 +543,7 @@ INHERIT_SCALE, * By default a renderable actor will be drawn as a 3D object. It will be depth-tested against * other objects in the world i.e. it may be obscured if other objects are in front. * - * If OVERLAY is used, the actor and its children will be drawn as a 2D overlay. + * If OVERLAY_2D is used, the actor and its children will be drawn as a 2D overlay. * Overlay actors are drawn in a separate pass, after all non-overlay actors within the Layer. * For overlay actors, the drawing order is determined by the hierachy (depth-first search order), * and depth-testing will not be used. @@ -554,9 +554,9 @@ INHERIT_SCALE, * * @example * - * var actor.drawMode = dali.DRAW_MODE_NORMAL; // binary 00. The default draw-mode - * var actor.drawMode = dali.DRAW_MODE_OVERLAY; // binary 01. Draw the actor and its children as an overlay - * var actor.drawMode = dali.DRAW_MODE_STENCIL ;// binary 11. Draw the actor and its children into the stencil buffer + * var actor.drawMode = dali.DRAW_MODE_NORMAL; // binary 00. The default draw-mode + * var actor.drawMode = dali.DRAW_MODE_OVERLAY_2D; // binary 01. Draw the actor and its children as an overlay + * var actor.drawMode = dali.DRAW_MODE_STENCIL ; // binary 11. Draw the actor and its children into the stencil buffer * * * @type Number