2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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.
25 #include <dali-toolkit/internal/builder/builder-impl.h>
41 Builder Builder::New(void)
43 return Builder(new Internal::Builder());
46 Builder::Builder(Internal::Builder *impl)
51 void Builder::LoadFromString( const std::string &data, UIFormat rep )
53 GetImpl(*this).LoadFromString( data );
56 void Builder::AddConstants( const PropertyValueMap& map )
58 GetImpl(*this).AddConstants( map );
61 void Builder::AddConstant( const std::string& key, const Property::Value& value )
63 GetImpl(*this).AddConstant( key, value );
66 const PropertyValueMap& Builder::GetConstants() const
68 return GetImpl(*this).GetConstants();
71 const Property::Value& Builder::GetConstant( const std::string& key ) const
73 return GetImpl(*this).GetConstant( key );
76 Animation Builder::CreateAnimation( const std::string& animationName )
78 return GetImpl(*this).CreateAnimation( animationName );
81 Animation Builder::CreateAnimation( const std::string& animationName, const PropertyValueMap& map )
83 return GetImpl(*this).CreateAnimation( animationName, map );
86 Animation Builder::CreateAnimation( const std::string& animationName, Dali::Actor sourceActor )
88 return GetImpl(*this).CreateAnimation( animationName, sourceActor );
91 Animation Builder::CreateAnimation( const std::string& animationName, const PropertyValueMap& map, Dali::Actor sourceActor )
93 return GetImpl(*this).CreateAnimation( animationName, map, sourceActor );
96 BaseHandle Builder::CreateFromStyle( const std::string& styleName )
101 BaseHandle Builder::CreateFromStyle( const std::string& styleName, const PropertyValueMap& map )
106 BaseHandle Builder::Create( const std::string& templateName )
108 return GetImpl(*this).Create( templateName );
111 BaseHandle Builder::Create( const std::string& templateName, const PropertyValueMap& map )
113 return GetImpl(*this).Create( templateName, map );
116 void Builder::ApplyStyle( const std::string& styleName, Handle& handle )
118 GetImpl(*this).ApplyStyle( styleName, handle );
121 void Builder::AddActors( Actor toActor )
123 GetImpl(*this).AddActors( toActor );
126 void Builder::AddActors( const std::string §ionName, Actor toActor )
128 GetImpl(*this).AddActors( sectionName, toActor );
131 Font Builder::GetFont( const std::string &name ) const
133 return GetImpl(*this).GetFont( name );
136 TextStyle Builder::GetTextStyle( const std::string &name ) const
138 return GetImpl(*this).GetTextStyle( name );
141 Image Builder::GetImage( const std::string &name ) const
143 return GetImpl(*this).GetImage( name );
146 Actor Builder::GetActor( const std::string &name ) const
148 return GetImpl(*this).GetActor( name );
151 Animation Builder::GetAnimation( const std::string &name ) const
153 return GetImpl(*this).GetAnimation( name );
156 void Builder::CreateRenderTask( const std::string &name )
158 GetImpl(*this).CreateRenderTask( name );
161 ShaderEffect Builder::GetShaderEffect( const std::string &name )
163 return GetImpl(*this).GetShaderEffect( name );
166 FrameBufferImage Builder::GetFrameBufferImage( const std::string &name )
168 return GetImpl(*this).GetFrameBufferImage( name );
171 ActorContainer Builder::GetTopLevelActors( void ) const
173 return GetImpl(*this).GetTopLevelActors();
176 } // namespace Toolkit