24cbf817df94edaef4cedda4ed330cc921443295
[platform/core/uifw/dali-toolkit.git] / optional / dali-toolkit / public-api / transition-effects / cube-transition-effect.cpp
1 //
2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 //
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
7 //
8 //     http://floralicense.org/license/
9 //
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.
15 //
16
17 // CLASS HEADER
18 #include "cube-transition-effect.h"
19
20 //INTERNAL INCLUDES
21 #include <dali-toolkit/internal/transition-effects/cube-transition-effect-impl.h>
22
23 namespace Dali
24 {
25
26 namespace Toolkit
27 {
28
29 const char* const CubeTransitionEffect::SIGNAL_TRANSITION_COMPLETED = "transition-completed";
30
31 CubeTransitionEffect::CubeTransitionEffect()
32 {
33 }
34
35 CubeTransitionEffect::~CubeTransitionEffect()
36 {
37 }
38
39 CubeTransitionEffect::CubeTransitionEffect(Internal::CubeTransitionEffect* impl)
40 : BaseHandle(impl)
41 {
42 }
43
44 void CubeTransitionEffect::SetTransitionDuration( float duration )
45 {
46   GetImpl(*this).SetTransitionDuration( duration );
47 }
48
49 float CubeTransitionEffect::GetTransitionDuration() const
50 {
51   return GetImpl(*this).GetTransitionDuration();
52 }
53
54 void CubeTransitionEffect::SetCubeDisplacement( float displacement )
55 {
56   GetImpl(*this).SetCubeDisplacement( displacement );
57 }
58
59 float CubeTransitionEffect::GetCubeDisplacement() const
60 {
61   return GetImpl(*this).GetCubeDisplacement();
62 }
63
64 Actor CubeTransitionEffect::GetRoot()
65 {
66   return GetImpl(*this).GetRoot();
67 }
68
69 bool CubeTransitionEffect::IsTransiting()
70 {
71   return GetImpl(*this).IsTransiting();
72 }
73
74 void CubeTransitionEffect::SetCurrentImage(ImageActor imageActor)
75 {
76   GetImpl(*this).SetCurrentImage( imageActor );
77 }
78
79 void CubeTransitionEffect::SetTargetImage(ImageActor imageActor)
80 {
81   GetImpl(*this).SetTargetImage( imageActor );
82 }
83
84 void CubeTransitionEffect::StartTransition( bool toNextImage )
85 {
86   GetImpl(*this).StartTransition( toNextImage );
87 }
88
89 void CubeTransitionEffect::StartTransition( Vector2 panPosition, Vector2 panDisplacement )
90 {
91   GetImpl(*this).StartTransition( panPosition, panDisplacement );
92 }
93
94 void CubeTransitionEffect::PauseTransition()
95 {
96   GetImpl(*this).PauseTransition();
97 }
98
99 void CubeTransitionEffect::ResumeTransition()
100 {
101   GetImpl(*this).ResumeTransition();
102 }
103
104 void CubeTransitionEffect::StopTransition()
105 {
106   GetImpl(*this).StopTransition();
107 }
108
109 CubeTransitionEffect::TransitionCompletedSignalV2& CubeTransitionEffect::TransitionCompletedSignal()
110 {
111   return GetImpl( *this ).TransitionCompletedSignal();
112 }
113
114 } // namespace Toolkit
115
116 } // namespace Dali