2 * Copyright (c) 2015 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>
30 CubeTransitionEffect::CubeTransitionEffect()
34 CubeTransitionEffect::~CubeTransitionEffect()
38 CubeTransitionEffect::CubeTransitionEffect( Internal::CubeTransitionEffect& implementation )
39 : Control( implementation )
43 CubeTransitionEffect::CubeTransitionEffect( Dali::Internal::CustomActor* internal )
46 VerifyCustomActorPointer<Internal::CubeTransitionEffect>(internal);
49 CubeTransitionEffect CubeTransitionEffect::DownCast( BaseHandle handle )
51 return Control::DownCast<CubeTransitionEffect, Internal::CubeTransitionEffect>( handle );
54 void CubeTransitionEffect::SetTransitionDuration( float duration )
56 GetImpl(*this).SetTransitionDuration( duration );
59 float CubeTransitionEffect::GetTransitionDuration() const
61 return GetImpl(*this).GetTransitionDuration();
64 void CubeTransitionEffect::SetCubeDisplacement( float displacement )
66 GetImpl(*this).SetCubeDisplacement( displacement );
69 float CubeTransitionEffect::GetCubeDisplacement() const
71 return GetImpl(*this).GetCubeDisplacement();
74 bool CubeTransitionEffect::IsTransitioning()
76 return GetImpl(*this).IsTransitioning();
79 void CubeTransitionEffect::SetCurrentTexture( Texture texture )
81 GetImpl(*this).SetCurrentTexture( texture );
84 void CubeTransitionEffect::SetTargetTexture( Texture texture )
86 GetImpl(*this).SetTargetTexture( texture );
89 void CubeTransitionEffect::StartTransition( bool toNextImage )
91 GetImpl(*this).StartTransition( toNextImage );
94 void CubeTransitionEffect::StartTransition( Vector2 panPosition, Vector2 panDisplacement )
96 GetImpl(*this).StartTransition( panPosition, panDisplacement );
99 void CubeTransitionEffect::PauseTransition()
101 GetImpl(*this).PauseTransition();
104 void CubeTransitionEffect::ResumeTransition()
106 GetImpl(*this).ResumeTransition();
109 void CubeTransitionEffect::StopTransition()
111 GetImpl(*this).StopTransition();
114 CubeTransitionEffect::TransitionCompletedSignalType& CubeTransitionEffect::TransitionCompletedSignal()
116 return GetImpl( *this ).TransitionCompletedSignal();
119 } // namespace Toolkit