Render control background without creating extra actor
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / controls / renderer-factory / control-renderer.cpp
index 687949c..c036334 100644 (file)
@@ -56,14 +56,14 @@ void ControlRenderer::SetSize( const Vector2& size )
   GetImplementation( *this ).SetSize(size);
 }
 
-void ControlRenderer::SetClipRect( const Rect<int>& clipRect )
+const Vector2& ControlRenderer::GetSize() const
 {
-  GetImplementation( *this ).SetClipRect(clipRect);
+  return GetImplementation( *this ).GetSize();
 }
 
-void ControlRenderer::SetOffset( const Vector2& offset )
+void ControlRenderer::GetNaturalSize(Vector2& naturalSize ) const
 {
-  GetImplementation( *this ).SetOffset(offset);
+  GetImplementation( *this ).GetNaturalSize( naturalSize );
 }
 
 void ControlRenderer::SetDepthIndex( float index )
@@ -71,6 +71,11 @@ void ControlRenderer::SetDepthIndex( float index )
   GetImplementation( *this ).SetDepthIndex(index);
 }
 
+float ControlRenderer::GetDepthIndex() const
+{
+  return GetImplementation( *this ).GetDepthIndex();
+}
+
 void ControlRenderer::SetOnStage( Actor& actor )
 {
   GetImplementation( *this ).SetOnStage(actor);
@@ -81,6 +86,20 @@ void ControlRenderer::SetOffStage( Actor& actor )
   GetImplementation( *this ).SetOffStage(actor);
 }
 
+void ControlRenderer::RemoveAndReset( Actor& actor )
+{
+  if( actor && *this )
+  {
+    SetOffStage( actor );
+  }
+  Reset();
+}
+
+void ControlRenderer::CreatePropertyMap( Property::Map& map ) const
+{
+  GetImplementation( *this ).CreatePropertyMap( map );
+}
+
 } // namespace Toolkit
 
 } // namespace Dali