Create property map from ControlRenderer and make SetOffStage API public
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / controls / renderer-factory / control-renderer.h
index 8d47e36..3a44603 100644 (file)
@@ -33,7 +33,8 @@ class ControlRenderer;
 }
 
 /**
- * ControlRenderer provides renderer for rendering the controls. A control may have multiple ControlRenders.
+ * @brief ControlRenderer provides renderer for rendering the controls. A control may have multiple ControlRenders.
+ *
  * ControlRenderers reuses geometry, shader etc. across controls and manages the renderer and material to exist only when control is on-stage.
  * It also responds to actor size and color change, and provides the clipping at the renderer level.
  * Note: The control renderer responds to the the Actor::COLOR by blending it with the 'Multiply' operator.
@@ -70,29 +71,15 @@ public:
   ControlRenderer& operator=( const ControlRenderer& handle );
 
   /**
-   * Set the size of the painting area.
+   * @brief Set the size of the painting area.
    *
    * @param[in] size The size of the painting area.
    */
   void SetSize( const Vector2& size );
 
   /**
-   * Set the clip rectangular of this renderer.
-   * The contents of the renderer will not be visible outside this rectangular.
+   * @brief Set the depth index of this renderer.
    *
-   * @param [in] clipRect The clipping rectangular.
-   */
-  void SetClipRect( const Rect<int>& clipRect );
-
-  /**
-   * Reposition this renderer with a 2D offset.
-   *
-   * @param[in] offset The offset to reposition the renderer.
-   */
-  void SetOffset( const Vector2& offset );
-
-  /**
-   * Set the depth index of this renderer.
    * Depth-index controls draw-order for overlapping renderers.
    * Renderer with higher depth indices are rendered in front of other renderer with smaller values
    *
@@ -101,7 +88,8 @@ public:
   void SetDepthIndex( float index );
 
   /**
-   * Renderer only exists when control is on stage.
+   * @brief Renderer only exists when control is on stage.
+   *
    * This function should be called when the control put on stage.
    *
    * @param[in] actor The actor applying this renderer.
@@ -109,13 +97,21 @@ public:
   void SetOnStage( Actor& actor );
 
   /**
-   * Renderer is destroyed when control is off stage.
+   * @brief Renderer is destroyed when control is off stage.
+   *
    * This function should be called when the control removes from stage
    *
    * @param[in] actor The actor applying this renderer.
    */
   void SetOffStage( Actor& actor );
 
+  /**
+   * @brief Create the property map representing this renderer.
+   *
+   * @param[out] map The renderer property map.
+   */
+  void CreatePropertyMap( Property::Map& map ) const;
+
 public: // Not intended for application developers
 
   explicit DALI_INTERNAL ControlRenderer(Internal::ControlRenderer *impl);