Merge "Add BuildPickingRay to devel api" into devel/master
[platform/core/uifw/dali-core.git] / dali / public-api / actors / actor.h
index 9be506d..8d3e9b6 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_ACTOR_H
 
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,8 +19,8 @@
  */
 
 // EXTERNAL INCLUDES
-#include <string>
 #include <cstdint> // uint32_t
+#include <string>
 
 // INTERNAL INCLUDES
 #include <dali/public-api/actors/actor-enumerations.h>
@@ -49,16 +49,14 @@ class Renderer;
 struct Degree;
 class Quaternion;
 class Layer;
-struct KeyEvent;
-class TouchData;
-struct TouchEvent;
-struct HoverEvent;
-struct WheelEvent;
+class TouchEvent;
+class HoverEvent;
+class WheelEvent;
 struct Vector2;
 struct Vector3;
 struct Vector4;
 
-typedef Rect<float> Padding;      ///< Padding definition @SINCE_1_0.0
+using Padding = Rect<float>; ///< Padding definition @SINCE_1_0.0
 
 /**
  * @brief Actor is the primary object with which Dali applications interact.
@@ -104,7 +102,7 @@ typedef Rect<float> Padding;      ///< Padding definition @SINCE_1_0.0
  *       // Only hit-test the actor and its children if it is sensitive and visible
  *       IF ( ACTOR-IS-SENSITIVE &&
  *            ACTOR-IS-VISIBLE &&
- *            ACTOR-IS-ON-STAGE )
+ *            ACTOR-IS-ON-SCENE )
  *       {
  *         // Depth-first traversal within current layer, visiting parent first
  *
@@ -217,10 +215,6 @@ typedef Rect<float> Padding;      ///< Padding definition @SINCE_1_0.0
  *   - If the consumed actor on hover-start is not the same as the consumed actor on hover-finished, then
  *     hover signals are also emitted from the hover-started actor with an "Interrupted" state.
  *
- * <h3>Key Events:</h3>
- *
- * Key events are received by an actor once set to grab key events, only one actor can be set as focused.
- *
  * @nosubgrouping
  *
  * Signals
@@ -229,8 +223,8 @@ typedef Rect<float> Padding;      ///< Padding definition @SINCE_1_0.0
  * | touched           | @ref TouchedSignal()         |
  * | hovered           | @ref HoveredSignal()         |
  * | wheelEvent        | @ref WheelEventSignal()      |
- * | onStage           | @ref OnStageSignal()         |
- * | offStage          | @ref OffStageSignal()        |
+ * | onScene           | @ref OnSceneSignal()         |
+ * | offScene          | @ref OffSceneSignal()        |
  * | onRelayout        | @ref OnRelayoutSignal()      |
  *
  * Actions
@@ -244,7 +238,6 @@ typedef Rect<float> Padding;      ///< Padding definition @SINCE_1_0.0
 class DALI_CORE_API Actor : public Handle
 {
 public:
-
   /**
    * @brief Enumeration for the instance of properties belonging to the Actor class.
    * @SINCE_1_0.0
@@ -315,9 +308,9 @@ public:
 
       /**
        * @brief The size of an actor.
-       * @details Name "size", type Property::VECTOR3, animatable / constraint-input
+       * @details Name "size", type Property::VECTOR3 or Property::VECTOR2, animatable / constraint-input
+       * @note Only Property::VECTOR3 can be animated or used as constraint-input
        * @SINCE_1_0.0
-       * @see Actor::SetSize()
        */
       SIZE,
 
@@ -325,7 +318,6 @@ public:
        * @brief The width of an actor.
        * @details Name "sizeWidth", type Property::FLOAT, animatable / constraint-input
        * @SINCE_1_0.0
-       * @see Actor::SetSize()
        */
       SIZE_WIDTH,
 
@@ -333,7 +325,6 @@ public:
        * @brief The height of an actor.
        * @details Name "sizeHeight", type Property::FLOAT, animatable / constraint-input
        * @SINCE_1_0.0
-       * @see Actor::SetSize()
        */
       SIZE_HEIGHT,
 
@@ -341,15 +332,14 @@ public:
        * @brief The depth of an actor.
        * @details Name "sizeDepth", type Property::FLOAT, animatable / constraint-input
        * @SINCE_1_0.0
-       * @see Actor::SetSize()
        */
       SIZE_DEPTH,
 
       /**
        * @brief The position of an actor.
-       * @details Name "position", type Property::VECTOR3, animatable / constraint-input
+       * @details Name "position", type Property::VECTOR3 or Property::VECTOR2, animatable / constraint-input
+       * @note Only Property::VECTOR3 can be animated or used as constraint-input
        * @SINCE_1_0.0
-       * @see Actor::SetPosition()
        */
       POSITION,
 
@@ -357,7 +347,6 @@ public:
        * @brief The x position of an actor.
        * @details Name "positionX", type Property::FLOAT, animatable / constraint-input
        * @SINCE_1_0.0
-       * @see Actor::SetX()
        */
       POSITION_X,
 
@@ -365,7 +354,6 @@ public:
        * @brief The y position of an actor.
        * @details Name "positionY", type Property::FLOAT, animatable / constraint-input
        * @SINCE_1_0.0
-       * @see Actor::SetY()
        */
       POSITION_Y,
 
@@ -373,7 +361,6 @@ public:
        * @brief The z position of an actor.
        * @details Name "positionZ", type Property::FLOAT, animatable / constraint-input
        * @SINCE_1_0.0
-       * @see Actor::SetZ()
        */
       POSITION_Z,
 
@@ -421,9 +408,9 @@ public:
 
       /**
        * @brief The scale factor applied to an actor.
-       * @details Name "scale", type Property::VECTOR3, animatable / constraint-input
+       * @details Name "scale", type Property::VECTOR3 or Property::FLOAT, animatable / constraint-input
+       * @note Only Property::VECTOR3 can be animated or used as constraint-input
        * @SINCE_1_0.0
-       * @see Actor::SetScale()
        */
       SCALE,
 
@@ -431,7 +418,6 @@ public:
        * @brief The x scale factor applied to an actor.
        * @details Name "scaleX", type Property::FLOAT, animatable / constraint-input
        * @SINCE_1_0.0
-       * @see Actor::SetScale()
        */
       SCALE_X,
 
@@ -439,7 +425,6 @@ public:
        * @brief The y scale factor applied to an actor.
        * @details Name "scaleY", type Property::FLOAT, animatable / constraint-input
        * @SINCE_1_0.0
-       * @see Actor::SetScale()
        */
       SCALE_Y,
 
@@ -447,7 +432,6 @@ public:
        * @brief The x scale factor applied to an actor.
        * @details Name "scaleZ", type Property::FLOAT, animatable / constraint-input
        * @SINCE_1_0.0
-       * @see Actor::SetScale()
        */
       SCALE_Z,
 
@@ -558,11 +542,6 @@ public:
       COLOR_MODE,
 
       /**
-       * @brief This property is removed because it's deprecated.
-       */
-      RESERVED_PROPERTY_01,
-
-      /**
        * @brief The draw mode of an actor.
        * @details Name "drawMode", type DrawMode::Type (Property::INTEGER) or Property::STRING.
        * @SINCE_1_0.0
@@ -666,19 +645,106 @@ public:
        * @SINCE_1_2.60
        */
       INHERIT_LAYOUT_DIRECTION,
+
+      /**
+       * @brief The opacity of the actor.
+       * @details Name "opacity", type Property::FLOAT.
+       * @SINCE_1_9.17
+       */
+      OPACITY,
+
+      /**
+       * @brief Returns the screen position of the Actor
+       * @details Name "screenPosition", type Property::VECTOR2. Read-only
+       * @note This assumes default camera and default render-task and the Z position is ZERO.
+       * @note The last known frame is used for the calculation. May not match a position value just set.
+       * @SINCE_1_9.17
+       */
+      SCREEN_POSITION,
+
+      /**
+       * @brief Determines whether the anchor point should be used to determine the position of the actor.
+       * @details Name "positionUsesAnchorPoint", type Property::BOOLEAN.
+       * @note This is true by default.
+       * @note If false, then the top-left of the actor is used for the position.
+       * @note Setting this to false will allow scaling or rotation around the anchor-point without affecting the actor's position.
+       * @SINCE_1_9.17
+       */
+      POSITION_USES_ANCHOR_POINT,
+
+      /**
+       * @brief Returns whether the actor is culled or not.
+       * @details Name "culled", type Property::BOOLEAN. Read-only
+       * @note True means that the actor is out of the view frustum.
+       * @SINCE_1_9.17
+       */
+      CULLED,
+
+      /**
+       * @brief The unique ID of the actor.
+       * @details Name "id", type Property::INTEGER. Read-only
+       * @SINCE_1_9.17
+       */
+      ID,
+
+      /**
+       * @brief The current depth in the hierarchy of the actor.
+       * @details Name "hierarchyDepth", type Property::INTEGER. Read-only
+       * @note The value is -1 if actor is not in the hierarchy.
+       * @SINCE_1_9.17
+       */
+      HIERARCHY_DEPTH,
+
+      /**
+       * @brief The flag whether an actor is the root actor, which is owned by the Scene.
+       * @details Name "isRoot", type Property::BOOLEAN. Read-only
+       * @SINCE_1_9.17
+       */
+      IS_ROOT,
+
+      /**
+       * @brief The flag whether the actor is of class Dali::Layer.
+       * @details Name "isLayer", type Property::BOOLEAN. Read-only
+       * @SINCE_1_9.17
+       */
+      IS_LAYER,
+
+      /**
+       * @brief The flag whether the actor is connected to the Scene.
+       * When an actor is connected, it will be directly or indirectly parented to the root Actor.
+       * @details Name "connectedToScene", type Property::BOOLEAN. Read-only
+       * @note The root Actor is provided automatically by the Scene, and is always considered to be connected.
+       * @SINCE_1_9.17
+       */
+      CONNECTED_TO_SCENE,
+
+      /**
+       * @brief The flag whether the actor should be focusable by keyboard navigation.
+       * @details Name "keyboardFocusable", type Property::BOOLEAN.
+       * @SINCE_1_9.17
+       */
+      KEYBOARD_FOCUSABLE,
+
+      /**
+       * @brief Sets the update area hint of the actor.
+       * @details Name "updateAreaHint", type Property::VECTOR4 (x, y, width, height).
+       * @note Overrides the area - the position and the size - used for the actor damaged area calculation. Affected by the actor model view matrix.
+       * The position is relative to the center of the actor and it is also the center of the damaged area.
+       * @SINCE_2_1.33
+       */
+      UPDATE_AREA_HINT
     };
   };
 
   // Typedefs
 
-  typedef Signal< bool (Actor, const TouchEvent&) > TouchSignalType;        ///< @DEPRECATED_1_1.37 @brief Touch signal type @SINCE_1_0.0
-  typedef Signal< bool (Actor, const TouchData&) >  TouchDataSignalType;    ///< Touch signal type @SINCE_1_1.37
-  typedef Signal< bool (Actor, const HoverEvent&) > HoverSignalType;        ///< Hover signal type @SINCE_1_0.0
-  typedef Signal< bool (Actor, const WheelEvent&) > WheelEventSignalType;   ///< Wheel signal type @SINCE_1_0.0
-  typedef Signal< void (Actor) > OnStageSignalType;                         ///< Stage connection signal type @SINCE_1_0.0
-  typedef Signal< void (Actor) > OffStageSignalType;                        ///< Stage disconnection signal type @SINCE_1_0.0
-  typedef Signal< void (Actor) > OnRelayoutSignalType;                      ///< Called when the actor is relaid out @SINCE_1_0.0
-  typedef Signal< void ( Actor, LayoutDirection::Type ) > LayoutDirectionChangedSignalType; ///< Layout direction changes signal type. @SINCE_1_2.60
+  using TouchEventSignalType             = Signal<bool(Actor, const TouchEvent&)>;     ///< Touch signal type @SINCE_1_1.37
+  using HoverSignalType                  = Signal<bool(Actor, const HoverEvent&)>;     ///< Hover signal type @SINCE_1_0.0
+  using WheelEventSignalType             = Signal<bool(Actor, const WheelEvent&)>;     ///< Wheel signal type @SINCE_1_0.0
+  using OnSceneSignalType                = Signal<void(Actor)>;                        ///< Scene connection signal type @SINCE_1_9.24
+  using OffSceneSignalType               = Signal<void(Actor)>;                        ///< Scene disconnection signal type @SINCE_1_9.24
+  using OnRelayoutSignalType             = Signal<void(Actor)>;                        ///< Called when the actor is relaid out @SINCE_1_0.0
+  using LayoutDirectionChangedSignalType = Signal<void(Actor, LayoutDirection::Type)>; ///< Layout direction changes signal type. @SINCE_1_2.60
 
   // Creation
 
@@ -708,7 +774,7 @@ public:
    * @param[in] handle to An object
    * @return handle to a Actor object or an uninitialized handle
    */
-  static Actor DownCast( BaseHandle handle );
+  static Actor DownCast(BaseHandle handle);
 
   /**
    * @brief Dali::Actor is intended as a base class.
@@ -736,44 +802,23 @@ public:
   Actor& operator=(const Actor& rhs);
 
   /**
-   * @brief Retrieves the unique ID of the actor.
-   *
-   * @SINCE_1_0.0
-   * @return The ID
-   * @pre The Actor has been initialized.
-   */
-  uint32_t GetId() const;
-
-  // Containment
-
-  /**
-   * @brief Queries whether an actor is the root actor, which is owned by the Stage.
+   * @brief Move constructor.
    *
-   * @SINCE_1_0.0
-   * @return True if the actor is the root actor
-   * @pre The Actor has been initialized.
+   * @SINCE_1_9.22
+   * @param[in] rhs A reference to the actor to move
    */
-  bool IsRoot() const;
+  Actor(Actor&& rhs) noexcept;
 
   /**
-   * @brief Queries whether the actor is connected to the Stage.
+   * @brief Move assignment operator.
    *
-   * When an actor is connected, it will be directly or indirectly parented to the root Actor.
-   * @SINCE_1_0.0
-   * @return True if the actor is connected to the Stage
-   * @pre The Actor has been initialized.
-   * @note The root Actor is provided automatically by Dali::Stage, and is always considered to be connected.
+   * @SINCE_1_9.22
+   * @param[in] rhs A reference to the actor to move
+   * @return A reference to this
    */
-  bool OnStage() const;
+  Actor& operator=(Actor&& rhs) noexcept;
 
-  /**
-   * @brief Queries whether the actor is of class Dali::Layer.
-   *
-   * @SINCE_1_0.0
-   * @return True if the actor is a layer
-   * @pre The Actor has been initialized.
-   */
-  bool IsLayer() const;
+  // Containment
 
   /**
    * @brief Gets the layer in which the actor is present.
@@ -838,18 +883,18 @@ public:
    * @return The actor for the given index or empty handle if children not initialized
    * @pre The Actor has been initialized.
    */
-  Actor GetChildAt( uint32_t index ) const;
+  Actor GetChildAt(uint32_t index) const;
 
   /**
    * @brief Search through this actor's hierarchy for an actor with the given name.
    *
    * The actor itself is also considered in the search.
-   * @SINCE_1_0.0
+   * @SINCE_2_0.9
    * @param[in] actorName The name of the actor to find
    * @return A handle to the actor if found, or an empty handle if not
    * @pre The Actor has been initialized.
    */
-  Actor FindChildByName(const std::string& actorName);
+  Actor FindChildByName(std::string_view actorName);
 
   /**
    * @brief Search through this actor's hierarchy for an actor with the given unique ID.
@@ -860,7 +905,7 @@ public:
    * @return A handle to the actor if found, or an empty handle if not
    * @pre The Actor has been initialized.
    */
-  Actor FindChildById( const uint32_t id );
+  Actor FindChildById(const uint32_t id);
 
   /**
    * @brief Retrieves the actor's parent.
@@ -874,55 +919,6 @@ public:
   // Positioning
 
   /**
-   * @brief Sets the size of an actor.
-   *
-   * Geometry can be scaled to fit within this area.
-   * This does not interfere with the actors scale factor.
-   * The actors default depth is the minimum of width & height.
-   * @SINCE_1_0.0
-   * @param [in] width The new width
-   * @param [in] height The new height
-   * @pre The actor has been initialized.
-   */
-  void SetSize(float width, float height);
-
-  /**
-   * @brief Sets the size of an actor.
-   *
-   * Geometry can be scaled to fit within this area.
-   * This does not interfere with the actors scale factor.
-   * @SINCE_1_0.0
-   * @param[in] width The size of the actor along the x-axis
-   * @param[in] height The size of the actor along the y-axis
-   * @param[in] depth The size of the actor along the z-axis
-   * @pre The actor has been initialized.
-   */
-  void SetSize(float width, float height, float depth);
-
-  /**
-   * @brief Sets the size of an actor.
-   *
-   * Geometry can be scaled to fit within this area.
-   * This does not interfere with the actors scale factor.
-   * The actors default depth is the minimum of width & height.
-   * @SINCE_1_0.0
-   * @param[in] size The new size
-   * @pre The actor has been initialized.
-   */
-  void SetSize(const Vector2& size);
-
-  /**
-   * @brief Sets the size of an actor.
-   *
-   * Geometry can be scaled to fit within this area.
-   * This does not interfere with the actors scale factor.
-   * @SINCE_1_0.0
-   * @param [in] size The new size
-   * @pre The actor has been initialized.
-   */
-  void SetSize(const Vector3& size);
-
-  /**
    * @brief Retrieves the actor's size.
    *
    * @SINCE_1_0.0
@@ -944,79 +940,6 @@ public:
   Vector3 GetNaturalSize() const;
 
   /**
-   * @brief Sets the position of the Actor.
-   *
-   * By default, sets the position vector between the parent origin and anchor point (default).
-   *
-   * If Position inheritance if disabled, sets the world position. @see Actor::Property::INHERIT_POSITION
-   *
-   * @image html actor-position.png
-   * The Actor's z position will be set to 0.0f.
-   * @SINCE_1_0.0
-   * @param[in] x The new x position
-   * @param[in] y The new y position
-   * @pre The Actor has been initialized.
-   */
-  void SetPosition(float x, float y);
-
-  /**
-   * @brief Sets the position of the Actor.
-   *
-   * By default, sets the position vector between the parent origin and anchor point (default).
-   *
-   * If Position inheritance if disabled, sets the world position. @see Actor::Property::INHERIT_POSITION
-   *
-   * @image html actor-position.png
-   * @SINCE_1_0.0
-   * @param[in] x The new x position
-   * @param[in] y The new y position
-   * @param[in] z The new z position
-   * @pre The Actor has been initialized.
-   */
-  void SetPosition(float x, float y, float z);
-
-  /**
-   * @brief Sets the position of the Actor.
-   *
-   * By default, sets the position vector between the parent origin and anchor point (default).
-   *
-   * If Position inheritance if disabled, sets the world position. @see Actor::Property::INHERIT_POSITION
-   *
-   * @image html actor-position.png
-   * @SINCE_1_0.0
-   * @param[in] position The new position
-   * @pre The Actor has been initialized.
-   */
-  void SetPosition(const Vector3& position);
-
-  /**
-   * @brief Sets the position of an actor along the X-axis.
-   *
-   * @SINCE_1_0.0
-   * @param[in] x The new x position
-   * @pre The Actor has been initialized.
-   */
-  void SetX(float x);
-
-  /**
-   * @brief Sets the position of an actor along the Y-axis.
-   *
-   * @SINCE_1_0.0
-   * @param[in] y The new y position
-   * @pre The Actor has been initialized.
-   */
-  void SetY(float y);
-
-  /**
-   * @brief Sets the position of an actor along the Z-axis.
-   *
-   * @SINCE_1_0.0
-   * @param[in] z The new z position
-   * @pre The Actor has been initialized.
-   */
-  void SetZ(float z);
-
-  /**
    * @brief Translates an actor relative to its existing position.
    *
    * @SINCE_1_0.0
@@ -1033,9 +956,9 @@ public:
    * @param[in] axis The axis of the rotation to combine with the existing orientation
    * @pre The actor has been initialized.
    */
-  void RotateBy( const Degree& angle, const Vector3& axis )
+  void RotateBy(const Degree& angle, const Vector3& axis)
   {
-    RotateBy( Radian( angle ), axis );
+    RotateBy(Radian(angle), axis);
   }
 
   /**
@@ -1058,38 +981,6 @@ public:
   void RotateBy(const Quaternion& relativeRotation);
 
   /**
-   * @brief Sets the scale factor applied to an actor.
-   *
-   * @SINCE_1_0.0
-   * @param[in] scale The scale factor applied on all axes
-   * @pre The Actor has been initialized.
-   * @note This is an asynchronous method; the value written may not match a value subsequently read with GetCurrentScale().
-   */
-  void SetScale(float scale);
-
-  /**
-   * @brief Sets the scale factor applied to an actor.
-   *
-   * @SINCE_1_0.0
-   * @param[in] scaleX The scale factor applied along the x-axis
-   * @param[in] scaleY The scale factor applied along the y-axis
-   * @param[in] scaleZ The scale factor applied along the z-axis
-   * @pre The Actor has been initialized.
-   * @note This is an asynchronous method; the value written may not match a value subsequently read with GetCurrentScale().
-   */
-  void SetScale(float scaleX, float scaleY, float scaleZ);
-
-  /**
-   * @brief Sets the scale factor applied to an actor.
-   *
-   * @SINCE_1_0.0
-   * @param[in] scale A vector representing the scale factor for each axis
-   * @pre The Actor has been initialized.
-   * @note This is an asynchronous method; the value written may not match a value subsequently read with GetCurrentScale().
-   */
-  void SetScale(const Vector3& scale);
-
-  /**
    * @brief Applies a relative scale to an actor.
    *
    * @SINCE_1_0.0
@@ -1115,26 +1006,6 @@ public:
   bool ScreenToLocal(float& localX, float& localY, float screenX, float screenY) const;
 
   /**
-   * @brief Sets whether the actor should be focusable by keyboard navigation.
-   *
-   * The default is false.
-   * @SINCE_1_0.0
-   * @param[in] focusable - true if the actor should be focusable by keyboard navigation,
-   * false otherwise
-   * @pre The Actor has been initialized.
-   */
-  void SetKeyboardFocusable( bool focusable );
-
-  /**
-   * @brief Returns whether the actor is focusable by keyboard navigation.
-   *
-   * @SINCE_1_0.0
-   * @return @c true if the actor is focusable by keyboard navigation, @c false if not
-   * @pre The Actor has been initialized.
-   */
-  bool IsKeyboardFocusable() const;
-
-  /**
    * @brief Raise actor above the next sibling actor.
    *
    * @SINCE_1_2.60
@@ -1179,7 +1050,7 @@ public:
    * @pre The Actor has been parented.
    * @pre The target actor is a sibling.
    */
-  void RaiseAbove( Actor target );
+  void RaiseAbove(Actor target);
 
   /**
    * @brief Lower the actor to below the target actor.
@@ -1190,7 +1061,7 @@ public:
    * @pre The Actor has been parented.
    * @pre The target actor is a sibling.
    */
-  void LowerBelow( Actor target );
+  void LowerBelow(Actor target);
 
   // SIZE NEGOTIATION
 
@@ -1201,7 +1072,7 @@ public:
    * @param[in] policy The resize policy to use
    * @param[in] dimension The dimension(s) to set policy for. Can be a bitfield of multiple dimensions
    */
-  void SetResizePolicy( ResizePolicy::Type policy, Dimension::Type dimension );
+  void SetResizePolicy(ResizePolicy::Type policy, Dimension::Type dimension);
 
   /**
    * @brief Returns the resize policy used for a single dimension.
@@ -1210,7 +1081,7 @@ public:
    * @param[in] dimension The dimension to get policy for
    * @return Return the dimension resize policy. If more than one dimension is requested, just return the first one found
    */
-  ResizePolicy::Type GetResizePolicy( Dimension::Type dimension ) const;
+  ResizePolicy::Type GetResizePolicy(Dimension::Type dimension) const;
 
   /**
    * @brief Calculates the height of the actor given a width.
@@ -1222,7 +1093,7 @@ public:
    * @param[in] width Width to use
    * @return Return the height based on the width
    */
-  float GetHeightForWidth( float width );
+  float GetHeightForWidth(float width);
 
   /**
    * @brief Calculates the width of the actor given a height.
@@ -1234,7 +1105,7 @@ public:
    * @param[in] height Height to use
    * @return Return the width based on the height
    */
-  float GetWidthForHeight( float height );
+  float GetWidthForHeight(float height);
 
   /**
    * @brief Returns the value of negotiated dimension for the given dimension.
@@ -1243,18 +1114,9 @@ public:
    * @param[in] dimension The dimension to retrieve
    * @return Return the value of the negotiated dimension. If more than one dimension is requested, just return the first one found
    */
-  float GetRelayoutSize( Dimension::Type dimension ) const;
-
-  /**
-   * @brief Gets depth in the hierarchy for the actor.
-   *
-   * @SINCE_1_0.0
-   * @return The current depth in the hierarchy of the actor, or @c -1 if actor is not in the hierarchy
-   */
-  int32_t GetHierarchyDepth();
+  float GetRelayoutSize(Dimension::Type dimension) const;
 
 public: // Renderer
-
   /**
    * @brief Adds a renderer to this actor.
    *
@@ -1264,7 +1126,7 @@ public: // Renderer
    * @pre The renderer must be initialized.
    *
    */
-  uint32_t AddRenderer( Renderer& renderer );
+  uint32_t AddRenderer(Renderer& renderer);
 
   /**
    * @brief Gets the number of renderers on this actor.
@@ -1283,7 +1145,7 @@ public: // Renderer
    * @pre The index must be between 0 and GetRendererCount()-1
    *
    */
-  Renderer GetRendererAt( uint32_t index );
+  Renderer GetRendererAt(uint32_t index);
 
   /**
    * @brief Removes a renderer from the actor.
@@ -1291,7 +1153,7 @@ public: // Renderer
    * @SINCE_1_0.0
    * @param[in] renderer Handle to the renderer that is to be removed
    */
-  void RemoveRenderer( Renderer& renderer );
+  void RemoveRenderer(Renderer& renderer);
 
   /**
    * @brief Removes a renderer from the actor by index.
@@ -1301,40 +1163,23 @@ public: // Renderer
    * @pre The index must be between 0 and GetRendererCount()-1
    *
    */
-  void RemoveRenderer( uint32_t index );
+  void RemoveRenderer(uint32_t index);
 
 public: // Signals
-
-  /**
-   * @DEPRECATED_1_1.37 Use TouchSignal() instead.
-   * @brief This signal is emitted when touch input is received.
-   *
-   * A callback of the following type may be connected:
-   * @code
-   *   bool YourCallbackName(Actor actor, const TouchEvent& event);
-   * @endcode
-   * The return value of True, indicates that the touch event should be consumed.
-   * Otherwise the signal will be emitted on the next sensitive parent of the actor.
-   * @SINCE_1_0.0
-   * @return The signal to connect to
-   * @pre The Actor has been initialized.
-   */
-  TouchSignalType& TouchedSignal() DALI_DEPRECATED_API;
-
   /**
    * @brief This signal is emitted when touch input is received.
    *
    * A callback of the following type may be connected:
    * @code
-   *   bool YourCallbackName( Actor actor, TouchData& touch );
+   *   bool YourCallbackName( Actor actor, TouchEvent& touch );
    * @endcode
    * The return value of True, indicates that the touch event has been consumed.
    * Otherwise the signal will be emitted on the next sensitive parent of the actor.
-   * @SINCE_1_1.37
+   * @SINCE_1_9.28
    * @return The signal to connect to
    * @pre The Actor has been initialized.
    */
-  TouchDataSignalType& TouchSignal();
+  TouchEventSignalType& TouchedSignal();
 
   /**
    * @brief This signal is emitted when hover input is received.
@@ -1367,12 +1212,12 @@ public: // Signals
   WheelEventSignalType& WheelEventSignal();
 
   /**
-   * @brief This signal is emitted after the actor has been connected to the stage.
+   * @brief This signal is emitted after the actor has been connected to the scene.
    *
    * When an actor is connected, it will be directly or indirectly parented to the root Actor.
-   * @SINCE_1_0.0
+   * @SINCE_1_9.24
    * @return The signal to connect to
-   * @note The root Actor is provided automatically by Dali::Stage, and is always considered to be connected.
+   * @note The root Actor is provided automatically by the Scene, and is always considered to be connected.
    *
    * @note When the parent of a set of actors is connected to the stage, then all of the children
    * will received this callback.
@@ -1388,16 +1233,16 @@ public: // Signals
    *
    * @endcode
    */
-  OnStageSignalType& OnStageSignal();
+  OnSceneSignalType& OnSceneSignal();
 
   /**
-   * @brief This signal is emitted after the actor has been disconnected from the stage.
+   * @brief This signal is emitted after the actor has been disconnected from the scene.
    *
    * If an actor is disconnected it either has no parent, or is parented to a disconnected actor.
    *
-   * @SINCE_1_0.0
+   * @SINCE_1_9.24
    * @return The signal to connect to
-   * @note When the parent of a set of actors is disconnected to the stage, then all of the children
+   * @note When the parent of a set of actors is disconnected to the scene, then all of the children
    * will received this callback, starting with the leaf actors.
    * For the following actor tree, the callback order will be D, E, B, F, C, and finally A.
    *
@@ -1412,7 +1257,7 @@ public: // Signals
    * @endcode
    *
    */
-  OffStageSignalType& OffStageSignal();
+  OffSceneSignalType& OffSceneSignal();
 
   /**
    * @brief This signal is emitted after the size has been set on the actor during relayout
@@ -1439,7 +1284,6 @@ public: // Signals
   LayoutDirectionChangedSignalType& LayoutDirectionChangedSignal();
 
 public: // Not intended for application developers
-
   /// @cond internal
   /**
    * @brief This constructor is used by Actor::New() methods.
@@ -1459,9 +1303,9 @@ public: // Not intended for application developers
  * @SINCE_1_0.0
  * @param[in,out] actor A handle to an actor, or an empty handle
  */
-inline void UnparentAndReset( Actor& actor )
+inline void UnparentAndReset(Actor& actor)
 {
-  if( actor )
+  if(actor)
   {
     actor.Unparent();
     actor.Reset();