2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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.
18 #include "cube-transition-effect.h"
21 #include <dali-toolkit/internal/transition-effects/cube-transition-effect-impl.h>
29 const char* const CubeTransitionEffect::SIGNAL_TRANSITION_COMPLETED = "transition-completed";
31 CubeTransitionEffect::CubeTransitionEffect()
35 CubeTransitionEffect::~CubeTransitionEffect()
39 CubeTransitionEffect::CubeTransitionEffect(Internal::CubeTransitionEffect* impl)
44 void CubeTransitionEffect::SetTransitionDuration( float duration )
46 GetImpl(*this).SetTransitionDuration( duration );
49 float CubeTransitionEffect::GetTransitionDuration() const
51 return GetImpl(*this).GetTransitionDuration();
54 void CubeTransitionEffect::SetCubeDisplacement( float displacement )
56 GetImpl(*this).SetCubeDisplacement( displacement );
59 float CubeTransitionEffect::GetCubeDisplacement() const
61 return GetImpl(*this).GetCubeDisplacement();
64 Actor CubeTransitionEffect::GetRoot()
66 return GetImpl(*this).GetRoot();
69 bool CubeTransitionEffect::IsTransiting()
71 return GetImpl(*this).IsTransiting();
74 void CubeTransitionEffect::SetCurrentImage(ImageActor imageActor)
76 GetImpl(*this).SetCurrentImage( imageActor );
79 void CubeTransitionEffect::SetTargetImage(ImageActor imageActor)
81 GetImpl(*this).SetTargetImage( imageActor );
84 void CubeTransitionEffect::StartTransition( bool toNextImage )
86 GetImpl(*this).StartTransition( toNextImage );
89 void CubeTransitionEffect::StartTransition( Vector2 panPosition, Vector2 panDisplacement )
91 GetImpl(*this).StartTransition( panPosition, panDisplacement );
94 void CubeTransitionEffect::PauseTransition()
96 GetImpl(*this).PauseTransition();
99 void CubeTransitionEffect::ResumeTransition()
101 GetImpl(*this).ResumeTransition();
104 void CubeTransitionEffect::StopTransition()
106 GetImpl(*this).StopTransition();
109 CubeTransitionEffect::TransitionCompletedSignalV2& CubeTransitionEffect::TransitionCompletedSignal()
111 return GetImpl( *this ).TransitionCompletedSignal();
114 } // namespace Toolkit