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/controls/tool-bar/tool-bar-impl.h>
27 #include <dali/integration-api/debug.h>
33 const Toolkit::Alignment::Padding ToolBar::DEFAULT_PADDING(0.f, 0.f, 0.f, 0.f);
39 ToolBar::ToolBar(const ToolBar& handle)
44 ToolBar& ToolBar::operator=(const ToolBar& handle)
48 Control::operator=(handle);
57 ToolBar ToolBar::New()
59 return Internal::ToolBar::New();
62 ToolBar ToolBar::DownCast(BaseHandle handle)
64 return Control::DownCast<ToolBar, Internal::ToolBar>(handle);
67 void ToolBar::AddControl(Actor control, float relativeSize, Toolkit::Alignment::Type alignment, const Toolkit::Alignment::Padding& padding)
69 GetImpl(*this).AddControl(control, relativeSize, alignment, padding);
72 void ToolBar::RemoveControl(Actor control)
74 GetImpl(*this).RemoveControl(control);
77 ToolBar::ToolBar(Internal::ToolBar& implementation)
78 : Control(implementation)
82 ToolBar::ToolBar(Dali::Internal::CustomActor* internal)
85 VerifyCustomActorPointer<Internal::ToolBar>(internal);
88 } // namespace Toolkit