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/integration-api/debug.h>
26 #include <dali-toolkit/internal/controls/tool-bar/tool-bar-impl.h>
34 const Toolkit::Alignment::Padding ToolBar::DEFAULT_PADDING( 0.f, 0.f, 0.f, 0.f );
40 ToolBar::ToolBar( const ToolBar& handle )
45 ToolBar& ToolBar::operator=( const ToolBar& handle )
49 Control::operator=( handle );
58 ToolBar ToolBar::New()
60 return Internal::ToolBar::New();
63 ToolBar ToolBar::DownCast( BaseHandle handle )
65 return Control::DownCast<ToolBar, Internal::ToolBar>(handle);
68 void ToolBar::SetBackground( Actor background )
70 GetImpl( *this ).SetBackground( background );
73 void ToolBar::AddControl( Actor control, float relativeSize, Toolkit::Alignment::Type alignment, const Toolkit::Alignment::Padding& padding )
75 GetImpl( *this ).AddControl( control, relativeSize, alignment, padding );
78 void ToolBar::RemoveControl( Actor control )
80 GetImpl( *this ).RemoveControl( control );
83 ToolBar::ToolBar( Internal::ToolBar& implementation )
84 : Control( implementation )
88 ToolBar::ToolBar( Dali::Internal::CustomActor* internal )
91 VerifyCustomActorPointer<Internal::ToolBar>(internal);
94 } // namespace Toolkit