[dali_2.3.20] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / transition-effects / cube-transition-effect.cpp
1 /*
2  * Copyright (c) 2020 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
18 // CLASS HEADER
19 #include "cube-transition-effect.h"
20
21 //INTERNAL INCLUDES
22 #include <dali-toolkit/internal/transition-effects/cube-transition-effect-impl.h>
23
24 namespace Dali
25 {
26 namespace Toolkit
27 {
28 CubeTransitionEffect::CubeTransitionEffect()
29 {
30 }
31
32 CubeTransitionEffect::~CubeTransitionEffect()
33 {
34 }
35
36 CubeTransitionEffect::CubeTransitionEffect(Internal::CubeTransitionEffect& implementation)
37 : Control(implementation)
38 {
39 }
40
41 CubeTransitionEffect::CubeTransitionEffect(Dali::Internal::CustomActor* internal)
42 : Control(internal)
43 {
44   VerifyCustomActorPointer<Internal::CubeTransitionEffect>(internal);
45 }
46
47 CubeTransitionEffect CubeTransitionEffect::DownCast(BaseHandle handle)
48 {
49   return Control::DownCast<CubeTransitionEffect, Internal::CubeTransitionEffect>(handle);
50 }
51
52 void CubeTransitionEffect::SetTransitionDuration(float duration)
53 {
54   GetImpl(*this).SetTransitionDuration(duration);
55 }
56
57 float CubeTransitionEffect::GetTransitionDuration() const
58 {
59   return GetImpl(*this).GetTransitionDuration();
60 }
61
62 void CubeTransitionEffect::SetCubeDisplacement(float displacement)
63 {
64   GetImpl(*this).SetCubeDisplacement(displacement);
65 }
66
67 float CubeTransitionEffect::GetCubeDisplacement() const
68 {
69   return GetImpl(*this).GetCubeDisplacement();
70 }
71
72 bool CubeTransitionEffect::IsTransitioning()
73 {
74   return GetImpl(*this).IsTransitioning();
75 }
76
77 void CubeTransitionEffect::SetCurrentTexture(Texture texture)
78 {
79   GetImpl(*this).SetCurrentTexture(texture);
80 }
81
82 void CubeTransitionEffect::SetTargetTexture(Texture texture)
83 {
84   GetImpl(*this).SetTargetTexture(texture);
85 }
86
87 void CubeTransitionEffect::StartTransition(bool toNextImage)
88 {
89   GetImpl(*this).StartTransition(toNextImage);
90 }
91
92 void CubeTransitionEffect::StartTransition(Vector2 panPosition, Vector2 panDisplacement)
93 {
94   GetImpl(*this).StartTransition(panPosition, panDisplacement);
95 }
96
97 void CubeTransitionEffect::PauseTransition()
98 {
99   GetImpl(*this).PauseTransition();
100 }
101
102 void CubeTransitionEffect::ResumeTransition()
103 {
104   GetImpl(*this).ResumeTransition();
105 }
106
107 void CubeTransitionEffect::StopTransition()
108 {
109   GetImpl(*this).StopTransition();
110 }
111
112 CubeTransitionEffect::TransitionCompletedSignalType& CubeTransitionEffect::TransitionCompletedSignal()
113 {
114   return GetImpl(*this).TransitionCompletedSignal();
115 }
116
117 } // namespace Toolkit
118
119 } // namespace Dali