2 * Copyright (c) 2018 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.
18 #include "linear-layout.h"
21 #include <dali-toolkit/internal/layouting/linear-layout-impl.h>
28 LinearLayout::LinearLayout()
32 LinearLayout LinearLayout::New()
34 Internal::LinearLayoutPtr internal = Internal::LinearLayout::New();
35 return LinearLayout( internal.Get() );
38 LinearLayout LinearLayout::DownCast( BaseHandle handle )
40 return LinearLayout( dynamic_cast< Dali::Toolkit::Internal::LinearLayout*>( handle.GetObjectPtr() ) );
43 LinearLayout::LinearLayout( const LinearLayout& other )
44 : LayoutGroup( other )
48 LinearLayout& LinearLayout::operator=( const LinearLayout& other )
52 LayoutGroup::operator=( other );
57 void LinearLayout::SetCellPadding( LayoutSize size )
59 GetImplementation(*this).SetCellPadding( size );
62 LayoutSize LinearLayout::GetCellPadding() const
64 return GetImplementation(*this).GetCellPadding();
67 void LinearLayout::SetOrientation( LinearLayout::Orientation orientation )
69 GetImplementation(*this).SetOrientation( orientation );
72 LinearLayout::Orientation LinearLayout::GetOrientation() const
74 return GetImplementation(*this).GetOrientation();
77 void LinearLayout::SetAlignment( unsigned int alignment )
79 GetImplementation(*this).SetAlignment( alignment );
82 unsigned int LinearLayout::GetAlignment() const
84 return GetImplementation(*this).GetAlignment();
87 LinearLayout::LinearLayout( Dali::Toolkit::Internal::LinearLayout* object )
88 : LayoutGroup( object )
92 } // namespace Toolkit