X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Fcontrol-impl.cpp;h=a736f7d8f7fd9a0b24bdb3334e4f087f1a5f5c23;hp=e47001a09131522169697f61ff8570bd25f23baf;hb=99e2ea03e6d6059f5803d700932df1ff1c848cd3;hpb=d00a250741411c386d988e7ac34525cf94a1918e diff --git a/dali-toolkit/public-api/controls/control-impl.cpp b/dali-toolkit/public-api/controls/control-impl.cpp index e47001a..a736f7d 100644 --- a/dali-toolkit/public-api/controls/control-impl.cpp +++ b/dali-toolkit/public-api/controls/control-impl.cpp @@ -36,11 +36,11 @@ #include #include #include -#include +#include #include #include -#include -#include +#include +#include namespace Dali { @@ -368,7 +368,7 @@ public: Control& mControlImpl; std::string mStyleName; - Toolkit::ControlRenderer mBackgroundRenderer; ///< The control renderer to render the background + Toolkit::Visual::Base mBackgroundRenderer; ///< The control renderer to render the background Vector4 mBackgroundColor; ///< The color of the background renderer Vector3* mStartingPinchScale; ///< The scale when a pinch gesture starts, TODO: consider removing this Toolkit::Control::KeyEventSignalType mKeyEventSignal; @@ -447,7 +447,7 @@ void Control::SetBackgroundColor( const Vector4& color ) Property::Map map; map[ RENDERER_TYPE ] = COLOR_RENDERER; map[ "mixColor" ] = color; - InitializeControlRenderer( self, mImpl->mBackgroundRenderer, map ); + InitializeVisual( self, mImpl->mBackgroundRenderer, map ); if( mImpl->mBackgroundRenderer ) { mImpl->mBackgroundRenderer.SetDepthIndex( DepthIndex::BACKGROUND ); @@ -462,7 +462,7 @@ Vector4 Control::GetBackgroundColor() const void Control::SetBackground( const Property::Map& map ) { Actor self( Self() ); - InitializeControlRenderer( self, mImpl->mBackgroundRenderer, map ); + InitializeVisual( self, mImpl->mBackgroundRenderer, map ); if( mImpl->mBackgroundRenderer ) { mImpl->mBackgroundRenderer.SetDepthIndex( DepthIndex::BACKGROUND ); @@ -472,7 +472,7 @@ void Control::SetBackground( const Property::Map& map ) void Control::SetBackgroundImage( Image image ) { Actor self( Self() ); - InitializeControlRenderer( self, mImpl->mBackgroundRenderer, image ); + InitializeVisual( self, mImpl->mBackgroundRenderer, image ); if( mImpl->mBackgroundRenderer ) { mImpl->mBackgroundRenderer.SetDepthIndex( DepthIndex::BACKGROUND );