2 * Copyright (c) 2015 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/integration-api/debug.h>
27 #include <dali-toolkit/internal/controls/tool-bar/tool-bar-impl.h>
35 const Toolkit::Alignment::Padding ToolBar::DEFAULT_PADDING( 0.f, 0.f, 0.f, 0.f );
41 ToolBar::ToolBar( const ToolBar& handle )
46 ToolBar& ToolBar::operator=( const ToolBar& handle )
50 Control::operator=( handle );
59 ToolBar ToolBar::New()
61 return Internal::ToolBar::New();
64 ToolBar ToolBar::DownCast( BaseHandle handle )
66 return Control::DownCast<ToolBar, Internal::ToolBar>(handle);
69 void ToolBar::AddControl( Actor control, float relativeSize, Toolkit::Alignment::Type alignment, const Toolkit::Alignment::Padding& padding )
71 GetImpl( *this ).AddControl( control, relativeSize, alignment, padding );
74 void ToolBar::RemoveControl( Actor control )
76 GetImpl( *this ).RemoveControl( control );
79 ToolBar::ToolBar( Internal::ToolBar& implementation )
80 : Control( implementation )
84 ToolBar::ToolBar( Dali::Internal::CustomActor* internal )
87 VerifyCustomActorPointer<Internal::ToolBar>(internal);
90 } // namespace Toolkit