2 * Copyright (c) 2020 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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.
26 #include <dali-toolkit/internal/builder/builder-impl.h>
40 Builder Builder::New(void)
42 return Builder(new Internal::Builder());
45 Builder::Builder(Internal::Builder* impl)
50 void Builder::LoadFromString(const std::string& data, UIFormat rep)
52 GetImpl(*this).LoadFromString(data);
55 void Builder::AddConstants(const Property::Map& map)
57 GetImpl(*this).AddConstants(map);
60 void Builder::AddConstant(const std::string& key, const Property::Value& value)
62 GetImpl(*this).AddConstant(key, value);
65 const Property::Map& Builder::GetConfigurations() const
67 return GetImpl(*this).GetConfigurations();
70 const Property::Map& Builder::GetConstants() const
72 return GetImpl(*this).GetConstants();
75 const Property::Value& Builder::GetConstant(const std::string& key) const
77 return GetImpl(*this).GetConstant(key);
80 Animation Builder::CreateAnimation(const std::string& animationName)
82 return GetImpl(*this).CreateAnimation(animationName);
85 Animation Builder::CreateAnimation(const std::string& animationName, const Property::Map& map)
87 return GetImpl(*this).CreateAnimation(animationName, map);
90 Animation Builder::CreateAnimation(const std::string& animationName, Dali::Actor sourceActor)
92 return GetImpl(*this).CreateAnimation(animationName, sourceActor);
95 Animation Builder::CreateAnimation(const std::string& animationName, const Property::Map& map, Dali::Actor sourceActor)
97 return GetImpl(*this).CreateAnimation(animationName, map, sourceActor);
100 BaseHandle Builder::Create(const std::string& templateName)
102 return GetImpl(*this).Create(templateName);
105 BaseHandle Builder::Create(const std::string& templateName, const Property::Map& map)
107 return GetImpl(*this).Create(templateName, map);
110 BaseHandle Builder::CreateFromJson(const std::string& json)
112 return GetImpl(*this).CreateFromJson(json);
115 bool Builder::ApplyStyle(const std::string& styleName, Handle& handle)
117 return GetImpl(*this).ApplyStyle(styleName, handle);
120 bool Builder::ApplyFromJson(Handle& handle, const std::string& json)
122 return GetImpl(*this).ApplyFromJson(handle, json);
125 void Builder::AddActors(Actor toActor)
127 GetImpl(*this).AddActors(toActor);
130 void Builder::AddActors(const std::string& sectionName, Actor toActor)
132 GetImpl(*this).AddActors(sectionName, toActor);
135 void Builder::CreateRenderTask(const std::string& name)
137 GetImpl(*this).CreateRenderTask(name);
140 Path Builder::GetPath(const std::string& name)
142 return GetImpl(*this).GetPath(name);
145 PathConstrainer Builder::GetPathConstrainer(const std::string& pathConstrainerName)
147 return GetImpl(*this).GetPathConstrainer(pathConstrainerName);
150 LinearConstrainer Builder::GetLinearConstrainer(const std::string& linearConstrainerName)
152 return GetImpl(*this).GetLinearConstrainer(linearConstrainerName);
155 Builder::BuilderSignalType& Builder::QuitSignal()
157 return GetImpl(*this).QuitSignal();
160 } // namespace Toolkit