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 BaseHandle Builder::CreateFromStyle( const std::string& styleName )
88 return GetImpl(*this).CreateFromStyle( styleName );
91 BaseHandle Builder::CreateFromStyle( const std::string& styleName, const PropertyValueMap& map )
93 return GetImpl(*this).CreateFromStyle( styleName, map );
96 void Builder::ApplyStyle( const std::string& styleName, Handle& handle )
98 GetImpl(*this).ApplyStyle( styleName, handle );
101 void Builder::AddActors( Actor toActor )
103 GetImpl(*this).AddActors( toActor );
106 void Builder::AddActors( const std::string §ionName, Actor toActor )
108 GetImpl(*this).AddActors( sectionName, toActor );
111 Font Builder::GetFont( const std::string &name ) const
113 return GetImpl(*this).GetFont( name );
116 TextStyle Builder::GetTextStyle( const std::string &name ) const
118 return GetImpl(*this).GetTextStyle( name );
121 Image Builder::GetImage( const std::string &name ) const
123 return GetImpl(*this).GetImage( name );
126 Actor Builder::GetActor( const std::string &name ) const
128 return GetImpl(*this).GetActor( name );
131 Animation Builder::GetAnimation( const std::string &name ) const
133 return GetImpl(*this).GetAnimation( name );
136 void Builder::CreateRenderTask( const std::string &name )
138 GetImpl(*this).CreateRenderTask( name );
141 ShaderEffect Builder::GetShaderEffect( const std::string &name )
143 return GetImpl(*this).GetShaderEffect( name );
146 FrameBufferImage Builder::GetFrameBufferImage( const std::string &name )
148 return GetImpl(*this).GetFrameBufferImage( name );
151 ActorContainer Builder::GetTopLevelActors( void ) const
153 return GetImpl(*this).GetTopLevelActors();
156 } // namespace Toolkit