/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 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.
GetImplementation(*this).SetName(name);
}
-unsigned int Actor::GetId() const
+uint32_t Actor::GetId() const
{
return GetImplementation(*this).GetId();
}
GetImplementation(*this).Unparent();
}
-unsigned int Actor::GetChildCount() const
+uint32_t Actor::GetChildCount() const
{
return GetImplementation(*this).GetChildCount();
}
-Actor Actor::GetChildAt(unsigned int index) const
+Actor Actor::GetChildAt( uint32_t index ) const
{
Internal::ActorPtr child = GetImplementation(*this).GetChildAt( index );
return Actor( child.Get() );
return Actor( child.Get() );
}
-Actor Actor::FindChildById(const unsigned int id)
+Actor Actor::FindChildById( const uint32_t id )
{
Internal::ActorPtr child = GetImplementation(*this).FindChildById( id );
return Actor( child.Get() );
return GetImplementation(*this).GetCurrentWorldPosition();
}
-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();
-}
-
void Actor::SetOrientation(const Radian& angle, const Vector3& axis)
{
GetImplementation(*this).SetOrientation(angle, axis);
return GetImplementation(*this).IsKeyboardFocusable();
}
+void Actor::Raise()
+{
+ GetImplementation( *this ).Raise();
+}
+
+void Actor::Lower()
+{
+ GetImplementation( *this ).Lower();
+}
+
+void Actor::RaiseToTop()
+{
+ GetImplementation( *this ).RaiseToTop();
+}
+
+void Actor::LowerToBottom()
+{
+ GetImplementation( *this ).LowerToBottom();
+}
+
+void Actor::RaiseAbove( Actor target )
+{
+ GetImplementation( *this ).RaiseAbove( GetImplementation( target ) );
+}
+
+void Actor::LowerBelow( Actor target )
+{
+ GetImplementation( *this ).LowerBelow( GetImplementation( target ) );
+}
+
void Actor::SetResizePolicy( ResizePolicy::Type policy, Dimension::Type dimension )
{
GetImplementation(*this).SetResizePolicy( policy, dimension );
return Vector2( impl.GetMaximumSize( Dimension::WIDTH ), impl.GetMaximumSize( Dimension::HEIGHT ) );
}
-int Actor::GetHierarchyDepth()
+int32_t Actor::GetHierarchyDepth()
{
return GetImplementation(*this).GetHierarchyDepth();
}
return GetImplementation(*this).OffStageSignal();
}
-unsigned int Actor::AddRenderer( Renderer& renderer )
+uint32_t Actor::AddRenderer( Renderer& renderer )
{
return GetImplementation(*this).AddRenderer( GetImplementation( renderer ) );
}
-unsigned int Actor::GetRendererCount() const
+uint32_t Actor::GetRendererCount() const
{
return GetImplementation(*this).GetRendererCount();
}
-Renderer Actor::GetRendererAt( unsigned int index )
+Renderer Actor::GetRendererAt( uint32_t index )
{
Internal::RendererPtr renderer = GetImplementation(*this).GetRendererAt( index );
return Renderer( renderer.Get() );
GetImplementation(*this).RemoveRenderer( GetImplementation( renderer ) );
}
-void Actor::RemoveRenderer( unsigned int index )
+void Actor::RemoveRenderer( uint32_t index )
{
GetImplementation(*this).RemoveRenderer( index );
}
return GetImplementation(*this).OnRelayoutSignal();
}
+Actor::LayoutDirectionChangedSignalType& Actor::LayoutDirectionChangedSignal()
+{
+ return GetImplementation( *this ).LayoutDirectionChangedSignal();
+}
+
Actor::Actor(Internal::Actor* internal)
: Handle(internal)
{