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