Add Layout complex animation.
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / layouting / bin-layout.cpp
1 /*
2  * Copyright (c) 2018 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 //CLASS HEADER
18 #include <dali-toolkit/devel-api/layouting/bin-layout.h>
19
20 //INTERNAL HEADERS
21 #include <dali-toolkit/internal/layouting/bin-layout-impl.h>
22
23 namespace Dali
24 {
25 namespace Toolkit
26 {
27
28 BinLayout::BinLayout()
29 {
30 }
31
32 BinLayout BinLayout::New()
33 {
34   Internal::BinLayoutPtr internal = Internal::BinLayout::New();
35   return BinLayout( internal.Get() );
36 }
37
38 BinLayout BinLayout::DownCast( BaseHandle handle )
39 {
40   return BinLayout( dynamic_cast< Dali::Toolkit::Internal::BinLayout*>( handle.GetObjectPtr() ) );
41 }
42
43 BinLayout::BinLayout( const BinLayout& other )
44 : LayoutGroup( other )
45 {
46 }
47
48 BinLayout& BinLayout::operator=( const BinLayout& other )
49 {
50   if( &other != this )
51   {
52     LayoutGroup::operator=( other );
53   }
54   return *this;
55 }
56
57 BinLayout::BinLayout( Dali::Toolkit::Internal::BinLayout* object )
58 : LayoutGroup( object )
59 {
60 }
61
62 } // namespace Toolkit
63 } // namespace Dali