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* impl)
43 CubeTransitionEffect CubeTransitionEffect::DownCast( BaseHandle handle )
45 return CubeTransitionEffect( dynamic_cast< Dali::Toolkit::Internal::CubeTransitionEffect* >( handle.GetObjectPtr() ) );
48 void CubeTransitionEffect::SetTransitionDuration( float duration )
50 GetImpl(*this).SetTransitionDuration( duration );
53 float CubeTransitionEffect::GetTransitionDuration() const
55 return GetImpl(*this).GetTransitionDuration();
58 void CubeTransitionEffect::SetCubeDisplacement( float displacement )
60 GetImpl(*this).SetCubeDisplacement( displacement );
63 float CubeTransitionEffect::GetCubeDisplacement() const
65 return GetImpl(*this).GetCubeDisplacement();
68 Actor CubeTransitionEffect::GetRoot()
70 return GetImpl(*this).GetRoot();
73 bool CubeTransitionEffect::IsTransiting()
75 return GetImpl(*this).IsTransiting();
78 void CubeTransitionEffect::SetCurrentImage(ImageActor imageActor)
80 GetImpl(*this).SetCurrentImage( imageActor );
83 void CubeTransitionEffect::SetTargetImage(ImageActor imageActor)
85 GetImpl(*this).SetTargetImage( imageActor );
88 void CubeTransitionEffect::StartTransition( bool toNextImage )
90 GetImpl(*this).StartTransition( toNextImage );
93 void CubeTransitionEffect::StartTransition( Vector2 panPosition, Vector2 panDisplacement )
95 GetImpl(*this).StartTransition( panPosition, panDisplacement );
98 void CubeTransitionEffect::PauseTransition()
100 GetImpl(*this).PauseTransition();
103 void CubeTransitionEffect::ResumeTransition()
105 GetImpl(*this).ResumeTransition();
108 void CubeTransitionEffect::StopTransition()
110 GetImpl(*this).StopTransition();
113 CubeTransitionEffect::TransitionCompletedSignalType& CubeTransitionEffect::TransitionCompletedSignal()
115 return GetImpl( *this ).TransitionCompletedSignal();
118 } // namespace Toolkit