c01b2dd0a973248268f5bbb855ac4e2e1f654c9a
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / layouting / layout-transition-data.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 #include <dali-toolkit/devel-api/layouting/layout-transition-data.h>
18 #include <dali-toolkit/internal/layouting/layout-transition-data-impl.h>
19
20 namespace Dali
21 {
22 namespace Toolkit
23 {
24
25 LayoutTransitionData::LayoutTransitionData()
26 : BaseHandle()
27 {
28 }
29
30 LayoutTransitionData::LayoutTransitionData( Internal::LayoutTransitionData* layoutAnimationData )
31 : BaseHandle( layoutAnimationData )
32 {
33 }
34
35 LayoutTransitionData LayoutTransitionData::New()
36 {
37   Internal::LayoutTransitionDataPtr layoutAnimationData = Internal::LayoutTransitionData::New();
38   return LayoutTransitionData( layoutAnimationData.Get() );
39 }
40
41 LayoutTransitionData LayoutTransitionData::DownCast( BaseHandle handle )
42 {
43   return LayoutTransitionData( dynamic_cast<Internal::LayoutTransitionData*>(handle.GetObjectPtr()) );
44 }
45
46 void LayoutTransitionData::AddPropertyAnimator( Actor actor, Property::Map map )
47 {
48   GetImplementation( *this ).AddPropertyAnimator( actor, map );
49 }
50
51 void LayoutTransitionData::AddPropertyAnimator(  Actor actor, Property::Map map, KeyFrames keyFrames, Animation::Interpolation interpolation )
52 {
53   GetImplementation( *this ).AddPropertyAnimator( actor, map, keyFrames, interpolation );
54 }
55
56 void LayoutTransitionData::AddPropertyAnimator( Actor actor, Property::Map map, Path path, Vector3 forward )
57 {
58   GetImplementation( *this ).AddPropertyAnimator( actor, map, path, forward );
59 }
60
61 LayoutTransitionData::LayoutTransitionSignalType& LayoutTransitionData::FinishedSignal()
62 {
63   return GetImplementation(*this ).FinishedSignal();
64 }
65
66 } // namespace Toolkit
67 } // namespace Dali