X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fvisual-factory%2Fvisual-base.cpp;fp=dali-toolkit%2Fdevel-api%2Fvisual-factory%2Fvisual.cpp;h=0b3193f91c3b75d2fec1d466da4c1942a3709032;hp=f61d4cb70ff8ec55ae561d316c37a7ee796a08df;hb=99e2ea03e6d6059f5803d700932df1ff1c848cd3;hpb=4cd15baa1eaa620c0ef5e94e56d82fad17b888d5 diff --git a/dali-toolkit/devel-api/visual-factory/visual.cpp b/dali-toolkit/devel-api/visual-factory/visual-base.cpp similarity index 65% rename from dali-toolkit/devel-api/visual-factory/visual.cpp rename to dali-toolkit/devel-api/visual-factory/visual-base.cpp index f61d4cb..0b3193f 100644 --- a/dali-toolkit/devel-api/visual-factory/visual.cpp +++ b/dali-toolkit/devel-api/visual-factory/visual-base.cpp @@ -16,8 +16,10 @@ */ // CLASS HEADER -#include -#include "visual.h" +#include + +// INTERAL INCLUDES +#include namespace Dali { @@ -25,66 +27,69 @@ namespace Dali namespace Toolkit { -Visual::Visual() +namespace Visual +{ + +Base::Base() { } -Visual::~Visual() +Base::~Base() { } -Visual::Visual( const Visual& handle ) +Base::Base( const Base& handle ) : BaseHandle( handle ) { } -Visual& Visual::operator=( const Visual& handle ) +Base& Base::operator=( const Base& handle ) { BaseHandle::operator=( handle ); return *this; } -Visual::Visual(Internal::Visual *impl) +Base::Base(Internal::Visual::Base *impl) : BaseHandle( impl ) { } -void Visual::SetSize( const Vector2& size ) +void Base::SetSize( const Vector2& size ) { GetImplementation( *this ).SetSize( size ); } -const Vector2& Visual::GetSize() const +const Vector2& Base::GetSize() const { return GetImplementation( *this ).GetSize(); } -void Visual::GetNaturalSize(Vector2& naturalSize ) const +void Base::GetNaturalSize(Vector2& naturalSize ) const { GetImplementation( *this ).GetNaturalSize( naturalSize ); } -void Visual::SetDepthIndex( float index ) +void Base::SetDepthIndex( float index ) { GetImplementation( *this ).SetDepthIndex( index ); } -float Visual::GetDepthIndex() const +float Base::GetDepthIndex() const { return GetImplementation( *this ).GetDepthIndex(); } -void Visual::SetOnStage( Actor& actor ) +void Base::SetOnStage( Actor& actor ) { GetImplementation( *this ).SetOnStage( actor ); } -void Visual::SetOffStage( Actor& actor ) +void Base::SetOffStage( Actor& actor ) { GetImplementation( *this ).SetOffStage( actor ); } -void Visual::RemoveAndReset( Actor& actor ) +void Base::RemoveAndReset( Actor& actor ) { if( actor && *this ) { @@ -93,11 +98,13 @@ void Visual::RemoveAndReset( Actor& actor ) Reset(); } -void Visual::CreatePropertyMap( Property::Map& map ) const +void Base::CreatePropertyMap( Property::Map& map ) const { GetImplementation( *this ).CreatePropertyMap( map ); } +} // namespace Visual + } // namespace Toolkit } // namespace Dali