TextField to start edit mode when keyboard re-shown
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / shader-effects / page-turn-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 <dali-toolkit/devel-api/shader-effects/page-turn-effect.h>
20
21 // INTERNAL HEADERS
22 #include <dali-toolkit/internal/shader-effects/page-turn-effect-impl.h>
23
24 namespace Dali
25 {
26
27 namespace Toolkit
28 {
29
30 PageTurnEffect::PageTurnEffect()
31 {
32 }
33
34 // Call the Parent copy constructor to add reference to the implementation for this object
35 PageTurnEffect::PageTurnEffect( ShaderEffect handle, Internal::PageTurnEffect* shaderExtension )
36 : ShaderEffect( handle )
37 {
38   AttachExtension( shaderExtension );
39 }
40
41 PageTurnEffect::~PageTurnEffect()
42 {
43 }
44
45 PageTurnEffect PageTurnEffect::New( bool enableBlending )
46 {
47   return Internal::PageTurnEffect::CreateShaderEffect( enableBlending );
48 }
49
50 void PageTurnEffect::SetPageSize(const Vector2& pageSize)
51 {
52   GetImpl( *this ).SetPageSize( pageSize );
53 }
54
55 void PageTurnEffect::SetOriginalCenter(const Vector2& originalCenter)
56 {
57   GetImpl( *this ).SetOriginalCenter( originalCenter );
58 }
59
60 void PageTurnEffect::SetCurrentCenter(const Vector2& currentCenter)
61 {
62   GetImpl( *this ).SetCurrentCenter( currentCenter );
63 }
64
65 void PageTurnEffect::SetIsTurningBack(bool isTurningBack)
66 {
67   GetImpl( *this ).SetIsTurningBack( isTurningBack );
68 }
69
70 void PageTurnEffect::SetShadowWidth(float shadowWidth)
71 {
72   GetImpl( *this ).SetShadowWidth( shadowWidth );
73 }
74
75 void PageTurnEffect::SetSpineShadowParameter(const Vector2& spineShadowParameter)
76 {
77   GetImpl( *this ).SetSpineShadowParameter( spineShadowParameter);
78 }
79
80 const std::string& PageTurnEffect::GetPageSizePropertyName() const
81 {
82   return GetImpl( *this ).GetPageSizePropertyName();
83 }
84
85 const std::string& PageTurnEffect::GetOriginalCenterPropertyName() const
86 {
87   return GetImpl( *this ).GetOriginalCenterPropertyName();
88 }
89
90 const std::string& PageTurnEffect::GetCurrentCenterPropertyName() const
91 {
92   return GetImpl( *this ).GetCurrentCenterPropertyName();
93 }
94
95 } // namespace Toolkit
96
97 } // namespace Dali