Render control background without creating extra actor
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / controls / renderer-factory / control-renderer.h
index 3a44603..fe26fab 100644 (file)
@@ -78,6 +78,22 @@ public:
   void SetSize( const Vector2& size );
 
   /**
   void SetSize( const Vector2& size );
 
   /**
+   * @brief Get the size of the painting area.
+   *
+   * @return The size of the renderer's painting area.
+   */
+  const Vector2& GetSize() const;
+
+  /**
+   * @brief Return the natural size of the renderer.
+   *
+   * Deriving classes stipulate the natural size and by default a renderer has a ZERO natural size.
+   *
+   * @param[out] naturalSize The renderer's natural size
+   */
+  void GetNaturalSize( Vector2& naturalSize ) const;
+
+  /**
    * @brief Set the depth index of this renderer.
    *
    * Depth-index controls draw-order for overlapping renderers.
    * @brief Set the depth index of this renderer.
    *
    * Depth-index controls draw-order for overlapping renderers.
@@ -88,6 +104,13 @@ public:
   void SetDepthIndex( float index );
 
   /**
   void SetDepthIndex( float index );
 
   /**
+   * @brief Get the depth index of this renderer
+   *
+   * @return The depth index of this renderer.
+   */
+  float GetDepthIndex() const;
+
+  /**
    * @brief Renderer only exists when control is on stage.
    *
    * This function should be called when the control put on stage.
    * @brief Renderer only exists when control is on stage.
    *
    * This function should be called when the control put on stage.
@@ -106,6 +129,15 @@ public:
   void SetOffStage( Actor& actor );
 
   /**
   void SetOffStage( Actor& actor );
 
   /**
+   * @brief Remove the renderer from actor and reset the control renderer self.
+   *
+   * This function can be called with an empty handle. If the control renderer is empty, do nothing.
+   *
+   * @param[in] actor The actor to be set off stage.
+   */
+  void RemoveAndReset( Actor& actor );
+
+  /**
    * @brief Create the property map representing this renderer.
    *
    * @param[out] map The renderer property map.
    * @brief Create the property map representing this renderer.
    *
    * @param[out] map The renderer property map.