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