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 );
60 GetImplementation(*this).RequestLayout();
63 LayoutSize LinearLayout::GetCellPadding()
65 return GetImplementation(*this).GetCellPadding();
66 GetImplementation(*this).RequestLayout();
69 void LinearLayout::SetOrientation( LinearLayout::Orientation orientation )
71 GetImplementation(*this).SetOrientation( orientation );
72 GetImplementation(*this).RequestLayout();
75 LinearLayout::Orientation LinearLayout::GetOrientation()
77 return GetImplementation(*this).GetOrientation();
78 GetImplementation(*this).RequestLayout();
81 LinearLayout::LinearLayout( Dali::Toolkit::Internal::LinearLayout* object )
82 : LayoutGroup( object )
86 } // namespace Toolkit