X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Factors%2Factor.cpp;h=b96283f7b49967824178a6eccaef2b5d6d7a99a6;hb=9bd1e7c8beed5e94d9b2e552e315ec7caf7718db;hp=1f413fbe529fd17ea3a959ba3324b1baa257fac1;hpb=14a7ce57b6b0a71869185a5218d59180f60ef892;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/actors/actor.cpp b/dali/public-api/actors/actor.cpp index 1f413fb..b96283f 100644 --- a/dali/public-api/actors/actor.cpp +++ b/dali/public-api/actors/actor.cpp @@ -27,7 +27,7 @@ #include #include -#include +#include #include #include @@ -105,11 +105,6 @@ void Actor::Add(Actor actor) GetImplementation(*this).Add(GetImplementation(actor)); } -void Actor::Insert(unsigned int index, Actor actor) -{ - GetImplementation(*this).Insert(index, GetImplementation(actor)); -} - void Actor::Remove(Actor actor) { GetImplementation(*this).Remove(GetImplementation(actor)); @@ -127,19 +122,20 @@ unsigned int Actor::GetChildCount() const Actor Actor::GetChildAt(unsigned int index) const { - return GetImplementation(*this).GetChildAt(index); + Internal::ActorPtr child = GetImplementation(*this).GetChildAt( index ); + return Actor( child.Get() ); } Actor Actor::FindChildByName(const std::string& actorName) { - Internal::ActorPtr child = GetImplementation(*this).FindChildByName(actorName); - return Actor(child.Get()); + Internal::ActorPtr child = GetImplementation(*this).FindChildByName( actorName ); + return Actor( child.Get() ); } Actor Actor::FindChildById(const unsigned int id) { - Internal::ActorPtr child = GetImplementation(*this).FindChildById(id); - return Actor(child.Get()); + Internal::ActorPtr child = GetImplementation(*this).FindChildById( id ); + return Actor( child.Get() ); } Actor Actor::GetParent() const @@ -251,11 +247,15 @@ Vector3 Actor::GetCurrentWorldPosition() const void Actor::SetPositionInheritanceMode( PositionInheritanceMode mode ) { + DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: SetPositionInheritanceMode() is deprecated and will be removed from next release. Use SetInheritPosition() instead.\n" ); + GetImplementation(*this).SetPositionInheritanceMode( mode ); } PositionInheritanceMode Actor::GetPositionInheritanceMode() const { + DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: GetPositionInheritanceMode() is deprecated and will be removed from next release. Use IsPositionInherited() instead.\n" ); + return GetImplementation(*this).GetPositionInheritanceMode(); } @@ -533,11 +533,23 @@ Vector2 Actor::GetMaximumSize() return Vector2( impl.GetMaximumSize( Dimension::WIDTH ), impl.GetMaximumSize( Dimension::HEIGHT ) ); } +int Actor::GetHierarchyDepth() +{ + return GetImplementation(*this).GetHierarchyDepth(); +} + Actor::TouchSignalType& Actor::TouchedSignal() { + DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: TouchedSignal() is deprecated and will be removed from next release. Use TouchSignal() instead.\n" ); + return GetImplementation(*this).TouchedSignal(); } +Actor::TouchDataSignalType& Actor::TouchSignal() +{ + return GetImplementation( *this ).TouchSignal(); +} + Actor::HoverSignalType& Actor::HoveredSignal() { return GetImplementation(*this).HoveredSignal(); @@ -558,6 +570,32 @@ Actor::OffStageSignalType& Actor::OffStageSignal() return GetImplementation(*this).OffStageSignal(); } +unsigned int Actor::AddRenderer( Renderer& renderer ) +{ + return GetImplementation(*this).AddRenderer( GetImplementation( renderer ) ); +} + +unsigned int Actor::GetRendererCount() const +{ + return GetImplementation(*this).GetRendererCount(); +} + +Renderer Actor::GetRendererAt( unsigned int index ) +{ + Internal::RendererPtr renderer = GetImplementation(*this).GetRendererAt( index ); + return Renderer( renderer.Get() ); +} + +void Actor::RemoveRenderer( Renderer& renderer ) +{ + GetImplementation(*this).RemoveRenderer( GetImplementation( renderer ) ); +} + +void Actor::RemoveRenderer( unsigned int index ) +{ + GetImplementation(*this).RemoveRenderer( index ); +} + Actor::OnRelayoutSignalType& Actor::OnRelayoutSignal() { return GetImplementation(*this).OnRelayoutSignal();