2 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
26 #include <dali-toolkit/internal/builder/builder-impl.h>
42 Builder Builder::New(void)
44 return Builder(new Internal::Builder());
47 Builder::Builder(Internal::Builder *impl)
52 void Builder::LoadFromString( const std::string &data, UIFormat rep )
54 GetImpl(*this).LoadFromString( data );
57 void Builder::AddConstants( const Property::Map& map )
59 GetImpl(*this).AddConstants( map );
62 void Builder::AddConstant( const std::string& key, const Property::Value& value )
64 GetImpl(*this).AddConstant( key, value );
67 const Property::Map& Builder::GetConstants() const
69 return GetImpl(*this).GetConstants();
72 const Property::Value& Builder::GetConstant( const std::string& key ) const
74 return GetImpl(*this).GetConstant( key );
77 Animation Builder::CreateAnimation( const std::string& animationName )
79 return GetImpl(*this).CreateAnimation( animationName );
82 Animation Builder::CreateAnimation( const std::string& animationName, const Property::Map& map )
84 return GetImpl(*this).CreateAnimation( animationName, map );
87 Animation Builder::CreateAnimation( const std::string& animationName, Dali::Actor sourceActor )
89 return GetImpl(*this).CreateAnimation( animationName, sourceActor );
92 Animation Builder::CreateAnimation( const std::string& animationName, const Property::Map& map, Dali::Actor sourceActor )
94 return GetImpl(*this).CreateAnimation( animationName, map, sourceActor );
97 BaseHandle Builder::Create( const std::string& templateName )
99 return GetImpl(*this).Create( templateName );
102 BaseHandle Builder::Create( const std::string& templateName, const Property::Map& map )
104 return GetImpl(*this).Create( templateName, map );
107 BaseHandle Builder::CreateFromJson( const std::string& json )
109 return GetImpl(*this).CreateFromJson( json );
112 bool Builder::ApplyStyle( const std::string& styleName, Handle& handle )
114 return GetImpl(*this).ApplyStyle( styleName, handle );
117 bool Builder::ApplyFromJson( Handle& handle, const std::string& json )
119 return GetImpl(*this).ApplyFromJson( handle, json );
122 void Builder::AddActors( Actor toActor )
124 GetImpl(*this).AddActors( toActor );
127 void Builder::AddActors( const std::string §ionName, Actor toActor )
129 GetImpl(*this).AddActors( sectionName, toActor );
132 void Builder::CreateRenderTask( const std::string &name )
134 GetImpl(*this).CreateRenderTask( name );
137 ShaderEffect Builder::GetShaderEffect( const std::string &name )
139 return GetImpl(*this).GetShaderEffect( name );
142 FrameBufferImage Builder::GetFrameBufferImage( const std::string &name )
144 return GetImpl(*this).GetFrameBufferImage( name );
147 Path Builder::GetPath( const std::string &name )
149 return GetImpl(*this).GetPath( name );
152 PathConstrainer Builder::GetPathConstrainer( const std::string& pathConstrainerName )
154 return GetImpl(*this).GetPathConstrainer( pathConstrainerName );
157 LinearConstrainer Builder::GetLinearConstrainer( const std::string& linearConstrainerName )
159 return GetImpl(*this).GetLinearConstrainer( linearConstrainerName );
162 Builder::BuilderSignalType& Builder::QuitSignal()
164 return GetImpl( *this ).QuitSignal();
167 } // namespace Toolkit