2 * Copyright (c) 2014 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 PropertyValueMap& 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 PropertyValueMap& 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 PropertyValueMap& 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 PropertyValueMap& map, Dali::Actor sourceActor )
94 return GetImpl(*this).CreateAnimation( animationName, map, sourceActor );
97 BaseHandle Builder::CreateFromStyle( const std::string& styleName )
102 BaseHandle Builder::CreateFromStyle( const std::string& styleName, const PropertyValueMap& map )
107 BaseHandle Builder::Create( const std::string& templateName )
109 return GetImpl(*this).Create( templateName );
112 BaseHandle Builder::Create( const std::string& templateName, const PropertyValueMap& map )
114 return GetImpl(*this).Create( templateName, map );
117 bool Builder::ApplyStyle( const std::string& styleName, Handle& handle )
119 return GetImpl(*this).ApplyStyle( styleName, handle );
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 Font Builder::GetFont( const std::string &name ) const
134 return GetImpl(*this).GetFont( name );
137 TextStyle Builder::GetTextStyle( const std::string &name ) const
139 return GetImpl(*this).GetTextStyle( name );
142 Image Builder::GetImage( const std::string &name ) const
144 return GetImpl(*this).GetImage( name );
147 Actor Builder::GetActor( const std::string &name ) const
149 return GetImpl(*this).GetActor( name );
152 Animation Builder::GetAnimation( const std::string &name ) const
154 return GetImpl(*this).GetAnimation( name );
157 void Builder::CreateRenderTask( const std::string &name )
159 GetImpl(*this).CreateRenderTask( name );
162 ShaderEffect Builder::GetShaderEffect( const std::string &name )
164 return GetImpl(*this).GetShaderEffect( name );
167 FrameBufferImage Builder::GetFrameBufferImage( const std::string &name )
169 return GetImpl(*this).GetFrameBufferImage( name );
172 ActorContainer Builder::GetTopLevelActors( void ) const
174 return GetImpl(*this).GetTopLevelActors();
177 } // namespace Toolkit