/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 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.
namespace Dali
{
-
namespace Toolkit
{
-
Builder::Builder()
{
}
return Builder(new Internal::Builder());
}
-Builder::Builder(Internal::Builder *impl)
- : BaseHandle(impl)
-{
-}
-
-void Builder::LoadFromString( const std::string &data, UIFormat rep )
+Builder::Builder(Internal::Builder* impl)
+: BaseHandle(impl)
{
- GetImpl(*this).LoadFromString( data );
}
-void Builder::AddConstants( const Property::Map& map )
+void Builder::LoadFromString(const std::string& data, UIFormat rep)
{
- GetImpl(*this).AddConstants( map );
+ GetImpl(*this).LoadFromString(data);
}
-void Builder::AddConstant( const std::string& key, const Property::Value& value )
+void Builder::AddConstants(const Property::Map& map)
{
- GetImpl(*this).AddConstant( key, value );
+ GetImpl(*this).AddConstants(map);
}
-const Property::Map& Builder::GetConstants() const
+void Builder::AddConstant(const std::string& key, const Property::Value& value)
{
- return GetImpl(*this).GetConstants();
+ GetImpl(*this).AddConstant(key, value);
}
-const Property::Value& Builder::GetConstant( const std::string& key ) const
+const Property::Map& Builder::GetConfigurations() const
{
- return GetImpl(*this).GetConstant( key );
+ return GetImpl(*this).GetConfigurations();
}
-Animation Builder::CreateAnimation( const std::string& animationName )
+const Property::Map& Builder::GetConstants() const
{
- return GetImpl(*this).CreateAnimation( animationName );
+ return GetImpl(*this).GetConstants();
}
-Animation Builder::CreateAnimation( const std::string& animationName, const Property::Map& map )
+const Property::Value& Builder::GetConstant(const std::string& key) const
{
- return GetImpl(*this).CreateAnimation( animationName, map );
+ return GetImpl(*this).GetConstant(key);
}
-Animation Builder::CreateAnimation( const std::string& animationName, Dali::Actor sourceActor )
+Animation Builder::CreateAnimation(const std::string& animationName)
{
- return GetImpl(*this).CreateAnimation( animationName, sourceActor );
+ return GetImpl(*this).CreateAnimation(animationName);
}
-Animation Builder::CreateAnimation( const std::string& animationName, const Property::Map& map, Dali::Actor sourceActor )
+Animation Builder::CreateAnimation(const std::string& animationName, const Property::Map& map)
{
- return GetImpl(*this).CreateAnimation( animationName, map, sourceActor );
+ return GetImpl(*this).CreateAnimation(animationName, map);
}
-BaseHandle Builder::Create( const std::string& templateName )
+Animation Builder::CreateAnimation(const std::string& animationName, Dali::Actor sourceActor)
{
- return GetImpl(*this).Create( templateName );
+ return GetImpl(*this).CreateAnimation(animationName, sourceActor);
}
-BaseHandle Builder::Create( const std::string& templateName, const Property::Map& map )
+Animation Builder::CreateAnimation(const std::string& animationName, const Property::Map& map, Dali::Actor sourceActor)
{
- return GetImpl(*this).Create( templateName, map );
+ return GetImpl(*this).CreateAnimation(animationName, map, sourceActor);
}
-BaseHandle Builder::CreateFromJson( const std::string& json )
+BaseHandle Builder::Create(const std::string& templateName)
{
- return GetImpl(*this).CreateFromJson( json );
+ return GetImpl(*this).Create(templateName);
}
-bool Builder::ApplyStyle( const std::string& styleName, Handle& handle )
+BaseHandle Builder::Create(const std::string& templateName, const Property::Map& map)
{
- return GetImpl(*this).ApplyStyle( styleName, handle );
+ return GetImpl(*this).Create(templateName, map);
}
-bool Builder::ApplyFromJson( Handle& handle, const std::string& json )
+BaseHandle Builder::CreateFromJson(const std::string& json)
{
- return GetImpl(*this).ApplyFromJson( handle, json );
+ return GetImpl(*this).CreateFromJson(json);
}
-void Builder::AddActors( Actor toActor )
+bool Builder::ApplyStyle(const std::string& styleName, Handle& handle)
{
- GetImpl(*this).AddActors( toActor );
+ return GetImpl(*this).ApplyStyle(styleName, handle);
}
-void Builder::AddActors( const std::string §ionName, Actor toActor )
+bool Builder::ApplyFromJson(Handle& handle, const std::string& json)
{
- GetImpl(*this).AddActors( sectionName, toActor );
+ return GetImpl(*this).ApplyFromJson(handle, json);
}
-void Builder::CreateRenderTask( const std::string &name )
+void Builder::AddActors(Actor toActor)
{
- GetImpl(*this).CreateRenderTask( name );
+ GetImpl(*this).AddActors(toActor);
}
-ShaderEffect Builder::GetShaderEffect( const std::string &name )
+void Builder::AddActors(const std::string& sectionName, Actor toActor)
{
- return GetImpl(*this).GetShaderEffect( name );
+ GetImpl(*this).AddActors(sectionName, toActor);
}
-FrameBufferImage Builder::GetFrameBufferImage( const std::string &name )
+void Builder::CreateRenderTask(const std::string& name)
{
- return GetImpl(*this).GetFrameBufferImage( name );
+ GetImpl(*this).CreateRenderTask(name);
}
-Path Builder::GetPath( const std::string &name )
+Path Builder::GetPath(const std::string& name)
{
- return GetImpl(*this).GetPath( name );
+ return GetImpl(*this).GetPath(name);
}
-PathConstrainer Builder::GetPathConstrainer( const std::string& pathConstrainerName )
+PathConstrainer Builder::GetPathConstrainer(const std::string& pathConstrainerName)
{
- return GetImpl(*this).GetPathConstrainer( pathConstrainerName );
+ return GetImpl(*this).GetPathConstrainer(pathConstrainerName);
}
-LinearConstrainer Builder::GetLinearConstrainer( const std::string& linearConstrainerName )
+LinearConstrainer Builder::GetLinearConstrainer(const std::string& linearConstrainerName)
{
- return GetImpl(*this).GetLinearConstrainer( linearConstrainerName );
+ return GetImpl(*this).GetLinearConstrainer(linearConstrainerName);
}
Builder::BuilderSignalType& Builder::QuitSignal()
{
- return GetImpl( *this ).QuitSignal();
+ return GetImpl(*this).QuitSignal();
}
} // namespace Toolkit
} // namespace Dali
-