X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fvisual-base-impl.cpp;h=58e4d38f10d85b9ad8842daf4ab6080cd1a79cda;hb=99f2a4758a1830accbcd79f4bc6b5c0ca836e2fe;hp=9d0c964646dcf6358e083f2316eaa69c7d9eefab;hpb=f29b744f4c9d27aeb355319712313876bb236bca;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/visual-base-impl.cpp b/dali-toolkit/internal/visuals/visual-base-impl.cpp index 9d0c964..58e4d38 100644 --- a/dali-toolkit/internal/visuals/visual-base-impl.cpp +++ b/dali-toolkit/internal/visuals/visual-base-impl.cpp @@ -36,21 +36,18 @@ namespace Toolkit namespace Internal { -namespace Visual -{ - -Base::Base( VisualFactoryCache& factoryCache ) +Visual::Base::Base( VisualFactoryCache& factoryCache ) : mImpl( new Impl() ), mFactoryCache( factoryCache ) { } -Base::~Base() +Visual::Base::~Base() { delete mImpl; } -void Base::SetCustomShader( const Property::Map& shaderMap ) +void Visual::Base::SetCustomShader( const Property::Map& shaderMap ) { if( mImpl->mCustomShader ) { @@ -62,7 +59,7 @@ void Base::SetCustomShader( const Property::Map& shaderMap ) } } -void Base::Initialize( Actor& actor, const Property::Map& propertyMap ) +void Visual::Base::Initialize( Actor& actor, const Property::Map& propertyMap ) { Property::Value* customShaderValue = propertyMap.Find( Toolkit::Visual::Property::SHADER, CUSTOM_SHADER ); if( customShaderValue ) @@ -77,31 +74,22 @@ void Base::Initialize( Actor& actor, const Property::Map& propertyMap ) DoInitialize( actor, propertyMap ); } -void Base::SetSize( const Vector2& size ) +void Visual::Base::SetSize( const Vector2& size ) { mImpl->mSize = size; } -const Vector2& Base::GetSize() const +const Vector2& Visual::Base::GetSize() const { return mImpl->mSize; } -void Base::GetNaturalSize( Vector2& naturalSize ) const +void Visual::Base::GetNaturalSize( Vector2& naturalSize ) const { naturalSize = Vector2::ZERO; } -void Base::SetClipRect( const Rect& clipRect ) -{ -} - -void Base::SetOffset( const Vector2& offset ) -{ - mImpl->mOffset = offset; -} - -void Base::SetDepthIndex( float index ) +void Visual::Base::SetDepthIndex( float index ) { mImpl->mDepthIndex = index; if( mImpl->mRenderer ) @@ -110,12 +98,12 @@ void Base::SetDepthIndex( float index ) } } -float Base::GetDepthIndex() const +float Visual::Base::GetDepthIndex() const { return mImpl->mDepthIndex; } -void Base::SetOnStage( Actor& actor ) +void Visual::Base::SetOnStage( Actor& actor ) { DoSetOnStage( actor ); @@ -126,7 +114,7 @@ void Base::SetOnStage( Actor& actor ) mImpl->mFlags |= Impl::IS_ON_STAGE; } -void Base::SetOffStage( Actor& actor ) +void Visual::Base::SetOffStage( Actor& actor ) { if( GetIsOnStage() ) { @@ -136,7 +124,7 @@ void Base::SetOffStage( Actor& actor ) } } -void Base::EnablePreMultipliedAlpha( bool preMultipled ) +void Visual::Base::EnablePreMultipliedAlpha( bool preMultipled ) { if(preMultipled) { @@ -153,22 +141,22 @@ void Base::EnablePreMultipliedAlpha( bool preMultipled ) } } -bool Base::IsPreMultipliedAlphaEnabled() const +bool Visual::Base::IsPreMultipliedAlphaEnabled() const { return mImpl->mFlags & Impl::IS_PREMULTIPLIED_ALPHA; } -void Base::DoSetOnStage( Actor& actor ) +void Visual::Base::DoSetOnStage( Actor& actor ) { } -void Base::DoSetOffStage( Actor& actor ) +void Visual::Base::DoSetOffStage( Actor& actor ) { actor.RemoveRenderer( mImpl->mRenderer ); mImpl->mRenderer.Reset(); } -void Base::CreatePropertyMap( Property::Map& map ) const +void Visual::Base::CreatePropertyMap( Property::Map& map ) const { DoCreatePropertyMap( map ); @@ -178,18 +166,16 @@ void Base::CreatePropertyMap( Property::Map& map ) const } } -bool Base::GetIsOnStage() const +bool Visual::Base::GetIsOnStage() const { return mImpl->mFlags & Impl::IS_ON_STAGE; } -bool Base::GetIsFromCache() const +bool Visual::Base::GetIsFromCache() const { return mImpl->mFlags & Impl::IS_FROM_CACHE; } -} // namespace Visual - } // namespace Internal } // namespace Toolkit