[dali_1.4.16] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / custom-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 "custom-layout.h"
19
20 // INTERNAL HEADERS
21 #include "custom-layout-impl.h"
22
23 namespace Test
24 {
25
26 CustomLayout CustomLayout::New()
27 {
28   Internal::CustomLayoutPtr internal = Internal::CustomLayout::New();
29   return CustomLayout( internal.Get() );
30 }
31
32 CustomLayout CustomLayout::DownCast( BaseHandle handle )
33 {
34   return CustomLayout( dynamic_cast< Test::Internal::CustomLayout* >( handle.GetObjectPtr() ) );
35 }
36
37 CustomLayout::CustomLayout( Internal::CustomLayout* object )
38 : Dali::Toolkit::LayoutGroup( object )
39 {
40 }
41
42 void CustomLayout::RequestLayout()
43 {
44   GetImplementation( *this ).RequestLayout();
45 }
46
47 void CustomLayout::SetCustomBehaviourFlag( int flag )
48 {
49   GetImplementation(*this).SetCustomBehaviourFlag( flag );
50 }
51
52 bool CustomLayout::GetCustomBehaviourFlags( int flagToCheck )
53 {
54   return GetImplementation(*this).GetCustomBehaviourFlags( flagToCheck );
55 }
56
57 void CustomLayout::ClearPrivateFlag( int flag )
58 {
59   return GetImplementation(*this).ClearPrivateFlag( flag );
60 }
61
62 } // namespace Test