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