2 * Copyright (c) 2020 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.
19 #include "cube-transition-effect.h"
22 #include <dali-toolkit/internal/transition-effects/cube-transition-effect-impl.h>
28 CubeTransitionEffect::CubeTransitionEffect()
32 CubeTransitionEffect::~CubeTransitionEffect()
36 CubeTransitionEffect::CubeTransitionEffect(Internal::CubeTransitionEffect& implementation)
37 : Control(implementation)
41 CubeTransitionEffect::CubeTransitionEffect(Dali::Internal::CustomActor* internal)
44 VerifyCustomActorPointer<Internal::CubeTransitionEffect>(internal);
47 CubeTransitionEffect CubeTransitionEffect::DownCast(BaseHandle handle)
49 return Control::DownCast<CubeTransitionEffect, Internal::CubeTransitionEffect>(handle);
52 void CubeTransitionEffect::SetTransitionDuration(float duration)
54 GetImpl(*this).SetTransitionDuration(duration);
57 float CubeTransitionEffect::GetTransitionDuration() const
59 return GetImpl(*this).GetTransitionDuration();
62 void CubeTransitionEffect::SetCubeDisplacement(float displacement)
64 GetImpl(*this).SetCubeDisplacement(displacement);
67 float CubeTransitionEffect::GetCubeDisplacement() const
69 return GetImpl(*this).GetCubeDisplacement();
72 bool CubeTransitionEffect::IsTransitioning()
74 return GetImpl(*this).IsTransitioning();
77 void CubeTransitionEffect::SetCurrentTexture(Texture texture)
79 GetImpl(*this).SetCurrentTexture(texture);
82 void CubeTransitionEffect::SetTargetTexture(Texture texture)
84 GetImpl(*this).SetTargetTexture(texture);
87 void CubeTransitionEffect::StartTransition(bool toNextImage)
89 GetImpl(*this).StartTransition(toNextImage);
92 void CubeTransitionEffect::StartTransition(Vector2 panPosition, Vector2 panDisplacement)
94 GetImpl(*this).StartTransition(panPosition, panDisplacement);
97 void CubeTransitionEffect::PauseTransition()
99 GetImpl(*this).PauseTransition();
102 void CubeTransitionEffect::ResumeTransition()
104 GetImpl(*this).ResumeTransition();
107 void CubeTransitionEffect::StopTransition()
109 GetImpl(*this).StopTransition();
112 CubeTransitionEffect::TransitionCompletedSignalType& CubeTransitionEffect::TransitionCompletedSignal()
114 return GetImpl(*this).TransitionCompletedSignal();
117 } // namespace Toolkit