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.
17 #include <dali-toolkit/public-api/controls/page-turn-view/page-turn-view.h>
18 #include <dali-toolkit/internal/controls/page-turn-view/page-turn-view-impl.h>
28 PageTurnView::PageTurnView()
32 PageTurnView::PageTurnView( const PageTurnView& handle )
37 PageTurnView& PageTurnView::operator=( const PageTurnView& handle )
41 Control::operator=( handle );
46 PageTurnView::~PageTurnView()
50 PageTurnView PageTurnView::DownCast( BaseHandle handle )
52 return Control::DownCast<PageTurnView, Internal::PageTurnView>(handle);
55 PageTurnView::PageTurnView( Internal::PageTurnView& implementation )
56 : Control( implementation )
60 PageTurnView::PageTurnView( Dali::Internal::CustomActor* internal )
63 VerifyCustomActorPointer<Internal::PageTurnView>(internal);
66 void PageTurnView::SetSpineShadowParameter( const Vector2& spineShadowParameter )
68 Toolkit::GetImplementation( *this ).SetSpineShadowParameter( spineShadowParameter );
71 Vector2 PageTurnView::GetSpineShadowParameter()
73 return Toolkit::GetImplementation( *this ).GetSpineShadowParameter();
76 void PageTurnView::GoToPage( unsigned int pageId )
78 Toolkit::GetImplementation( *this ).GoToPage(pageId);
81 unsigned int PageTurnView::GetCurrentPage()
83 return Toolkit::GetImplementation( *this ).GetCurrentPage();
86 PageTurnView::PageTurnSignal& PageTurnView::PageTurnStartedSignal()
88 return Toolkit::GetImplementation( *this ).PageTurnStartedSignal();
91 PageTurnView::PageTurnSignal& PageTurnView::PageTurnFinishedSignal()
93 return Toolkit::GetImplementation( *this ).PageTurnFinishedSignal();
96 PageTurnView::PagePanSignal& PageTurnView::PagePanStartedSignal()
98 return Toolkit::GetImplementation( *this ).PagePanStartedSignal();
101 PageTurnView::PagePanSignal& PageTurnView::PagePanFinishedSignal()
103 return Toolkit::GetImplementation( *this ).PagePanFinishedSignal();
106 Actor PageTurnView::EnterEditMode()
108 return Toolkit::GetImplementation( *this ).EnterEditMode();
111 void PageTurnView::LeaveEditMode()
113 Toolkit::GetImplementation( *this ).LeaveEditMode();
116 Actor PageTurnView::GetHitActor( Vector2& screenCoordinates, Vector2& actorCoordinates )
118 return Toolkit::GetImplementation( *this ).GetHitActor( screenCoordinates, actorCoordinates );
121 void PageTurnView::RefreshAll()
123 Toolkit::GetImplementation( *this ).RefreshAll();
126 void PageTurnView::RefreshCurrentPage()
128 Toolkit::GetImplementation( *this ).RefreshCurrentPage();
131 } // namespace Toolkit