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