2 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #include <dali-toolkit/public-api/shader-effects/page-turn-effect.h>
22 #include <dali-toolkit/internal/shader-effects/page-turn-effect-impl.h>
30 PageTurnEffect::PageTurnEffect()
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 )
38 AttachExtension( shaderExtension );
41 PageTurnEffect::~PageTurnEffect()
45 PageTurnEffect PageTurnEffect::New( bool enableBlending )
47 return Internal::PageTurnEffect::CreateShaderEffect( enableBlending );
50 void PageTurnEffect::SetPageSize(const Vector2& pageSize)
52 GetImpl( *this ).SetPageSize( pageSize );
55 void PageTurnEffect::SetOriginalCenter(const Vector2& originalCenter)
57 GetImpl( *this ).SetOriginalCenter( originalCenter );
60 void PageTurnEffect::SetCurrentCenter(const Vector2& currentCenter)
62 GetImpl( *this ).SetCurrentCenter( currentCenter );
65 void PageTurnEffect::SetIsTurningBack(bool isTurningBack)
67 GetImpl( *this ).SetIsTurningBack( isTurningBack );
70 void PageTurnEffect::SetShadowWidth(float shadowWidth)
72 GetImpl( *this ).SetShadowWidth( shadowWidth );
75 void PageTurnEffect::SetSpineShadowParameter(const Vector2& spineShadowParameter)
77 GetImpl( *this ).SetSpineShadowParameter( spineShadowParameter);
80 const std::string& PageTurnEffect::GetPageSizePropertyName() const
82 return GetImpl( *this ).GetPageSizePropertyName();
85 const std::string& PageTurnEffect::GetOriginalCenterPropertyName() const
87 return GetImpl( *this ).GetOriginalCenterPropertyName();
90 const std::string& PageTurnEffect::GetCurrentCenterPropertyName() const
92 return GetImpl( *this ).GetCurrentCenterPropertyName();
95 } // namespace Toolkit