2 * Copyright (c) 2014 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 const char* const CubeTransitionEffect::SIGNAL_TRANSITION_COMPLETED = "transition-completed";
32 CubeTransitionEffect::CubeTransitionEffect()
36 CubeTransitionEffect::~CubeTransitionEffect()
40 CubeTransitionEffect::CubeTransitionEffect(Internal::CubeTransitionEffect* impl)
45 void CubeTransitionEffect::SetTransitionDuration( float duration )
47 GetImpl(*this).SetTransitionDuration( duration );
50 float CubeTransitionEffect::GetTransitionDuration() const
52 return GetImpl(*this).GetTransitionDuration();
55 void CubeTransitionEffect::SetCubeDisplacement( float displacement )
57 GetImpl(*this).SetCubeDisplacement( displacement );
60 float CubeTransitionEffect::GetCubeDisplacement() const
62 return GetImpl(*this).GetCubeDisplacement();
65 Actor CubeTransitionEffect::GetRoot()
67 return GetImpl(*this).GetRoot();
70 bool CubeTransitionEffect::IsTransiting()
72 return GetImpl(*this).IsTransiting();
75 void CubeTransitionEffect::SetCurrentImage(ImageActor imageActor)
77 GetImpl(*this).SetCurrentImage( imageActor );
80 void CubeTransitionEffect::SetTargetImage(ImageActor imageActor)
82 GetImpl(*this).SetTargetImage( imageActor );
85 void CubeTransitionEffect::StartTransition( bool toNextImage )
87 GetImpl(*this).StartTransition( toNextImage );
90 void CubeTransitionEffect::StartTransition( Vector2 panPosition, Vector2 panDisplacement )
92 GetImpl(*this).StartTransition( panPosition, panDisplacement );
95 void CubeTransitionEffect::PauseTransition()
97 GetImpl(*this).PauseTransition();
100 void CubeTransitionEffect::ResumeTransition()
102 GetImpl(*this).ResumeTransition();
105 void CubeTransitionEffect::StopTransition()
107 GetImpl(*this).StopTransition();
110 CubeTransitionEffect::TransitionCompletedSignalType& CubeTransitionEffect::TransitionCompletedSignal()
112 return GetImpl( *this ).TransitionCompletedSignal();
115 } // namespace Toolkit