[SRUK] Initial copy from Tizen 2.2 version
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / public-api / builder / builder.cpp
1 //
2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 //
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
7 //
8 //     http://floralicense.org/license/
9 //
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.
15 //
16
17 // CLASS HEADER
18
19 #include "builder.h"
20
21 // EXTERNAL INCLUDES
22
23 // INTERNAL INCLUDES
24
25 #include <dali-toolkit/internal/builder/builder-impl.h>
26
27 namespace Dali
28 {
29
30 namespace Toolkit
31 {
32
33 Builder::Builder()
34 {
35 }
36
37 Builder::~Builder()
38 {
39 }
40
41 Builder Builder::New(void)
42 {
43   return Builder(new Internal::Builder());
44 }
45
46 Builder::Builder(Internal::Builder *impl)
47   : BaseHandle(impl)
48 {
49 }
50
51 void Builder::LoadFromString( const std::string &data, UIFormat rep )
52 {
53   GetImpl(*this).LoadFromString( data );
54 }
55
56 Animation Builder::CreateAnimation( const std::string& animationName )
57 {
58   return GetImpl(*this).CreateAnimation( animationName );
59 }
60
61 BaseHandle Builder::CreateFromStyle( const std::string& styleName )
62 {
63   return GetImpl(*this).CreateFromStyle( styleName );
64 }
65
66 void Builder::ApplyStyle( const std::string& styleName, Handle& handle )
67 {
68   GetImpl(*this).ApplyStyle( styleName, handle );
69 }
70
71 void Builder::AddActors( Actor toActor )
72 {
73   GetImpl(*this).AddActors( toActor );
74 }
75
76 void Builder::AddActors( const std::string &sectionName, Actor toActor )
77 {
78   GetImpl(*this).AddActors( sectionName, toActor );
79 }
80
81 Font Builder::GetFont( const std::string &name ) const
82 {
83   return GetImpl(*this).GetFont( name );
84 }
85
86 TextStyle Builder::GetTextStyle( const std::string &name ) const
87 {
88   return GetImpl(*this).GetTextStyle( name );
89 }
90
91 Image Builder::GetImage( const std::string &name ) const
92 {
93   return GetImpl(*this).GetImage( name );
94 }
95
96 Actor Builder::GetActor( const std::string &name ) const
97 {
98   return GetImpl(*this).GetActor( name );
99 }
100
101 Animation Builder::GetAnimation( const std::string &name ) const
102 {
103   return GetImpl(*this).GetAnimation( name );
104 }
105
106 void Builder::CreateRenderTask( const std::string &name )
107 {
108   GetImpl(*this).CreateRenderTask( name );
109 }
110
111 ShaderEffect Builder::GetShaderEffect( const std::string &name )
112 {
113   return GetImpl(*this).GetShaderEffect( name );
114 }
115
116 FrameBufferImage Builder::GetFrameBufferImage( const std::string &name )
117 {
118   return GetImpl(*this).GetFrameBufferImage( name );
119 }
120
121 ActorContainer Builder::GetTopLevelActors( void ) const
122 {
123   return GetImpl(*this).GetTopLevelActors();
124 }
125
126 } // namespace Toolkit
127
128 } // namespace Dali
129