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=0a2c3c87546bd98177cc6fdace1063d4660c9868;hb=99e2ea03e6d6059f5803d700932df1ff1c848cd3;hpb=9fff4fa5534b563329dc8cd6c0598888f667ee39 diff --git a/dali-toolkit/public-api/controls/control-impl.cpp b/dali-toolkit/public-api/controls/control-impl.cpp index 0a2c3c8..a736f7d 100644 --- a/dali-toolkit/public-api/controls/control-impl.cpp +++ b/dali-toolkit/public-api/controls/control-impl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2016 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. @@ -25,9 +25,9 @@ #include #include #include -#include #include -#include +#include +#include #include #include @@ -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 );