2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
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
8 // http://floralicense.org/license/
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.
18 #include <dali-toolkit/public-api/shader-effects/page-turn-effect.h>
21 #include <dali-toolkit/internal/shader-effects/page-turn-effect-impl.h>
29 PageTurnEffect::PageTurnEffect()
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 )
37 AttachExtension( shaderExtension );
40 PageTurnEffect::~PageTurnEffect()
44 PageTurnEffect PageTurnEffect::New( bool enableBlending )
46 return Internal::PageTurnEffect::CreateShaderEffect( enableBlending );
49 void PageTurnEffect::SetPageSize(const Vector2& pageSize)
51 GetImpl( *this ).SetPageSize( pageSize );
54 void PageTurnEffect::SetOriginalCenter(const Vector2& originalCenter)
56 GetImpl( *this ).SetOriginalCenter( originalCenter );
59 void PageTurnEffect::SetCurrentCenter(const Vector2& currentCenter)
61 GetImpl( *this ).SetCurrentCenter( currentCenter );
64 void PageTurnEffect::SetIsTurningBack(bool isTurningBack)
66 GetImpl( *this ).SetIsTurningBack( isTurningBack );
69 void PageTurnEffect::SetShadowWidth(float shadowWidth)
71 GetImpl( *this ).SetShadowWidth( shadowWidth );
74 void PageTurnEffect::SetSpineShadowParameter(const Vector2& spineShadowParameter)
76 GetImpl( *this ).SetSpineShadowParameter( spineShadowParameter);
79 const std::string& PageTurnEffect::GetPageSizePropertyName() const
81 return GetImpl( *this ).GetPageSizePropertyName();
84 const std::string& PageTurnEffect::GetOriginalCenterPropertyName() const
86 return GetImpl( *this ).GetOriginalCenterPropertyName();
89 const std::string& PageTurnEffect::GetCurrentCenterPropertyName() const
91 return GetImpl( *this ).GetCurrentCenterPropertyName();
94 } // namespace Toolkit