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.
18 #include <dali-toolkit/public-api/controls/page-turn-view/page-turn-view.h>
19 #include <dali-toolkit/internal/controls/page-turn-view/page-turn-view-impl.h>
29 PageTurnView::PageTurnView()
33 PageTurnView::PageTurnView( const PageTurnView& handle )
38 PageTurnView& PageTurnView::operator=( const PageTurnView& handle )
42 Control::operator=( handle );
47 PageTurnView::~PageTurnView()
51 PageTurnView PageTurnView::DownCast( BaseHandle handle )
53 return Control::DownCast<PageTurnView, Internal::PageTurnView>(handle);
56 PageTurnView::PageTurnView( Internal::PageTurnView& implementation )
57 : Control( implementation )
61 PageTurnView::PageTurnView( Dali::Internal::CustomActor* internal )
64 VerifyCustomActorPointer<Internal::PageTurnView>(internal);
67 void PageTurnView::SetSpineShadowParameter( const Vector2& spineShadowParameter )
69 Toolkit::GetImplementation( *this ).SetSpineShadowParameter( spineShadowParameter );
72 Vector2 PageTurnView::GetSpineShadowParameter()
74 return Toolkit::GetImplementation( *this ).GetSpineShadowParameter();
77 void PageTurnView::GoToPage( unsigned int pageId )
79 Toolkit::GetImplementation( *this ).GoToPage(pageId);
82 unsigned int PageTurnView::GetCurrentPage()
84 return Toolkit::GetImplementation( *this ).GetCurrentPage();
87 PageTurnView::PageTurnSignal& PageTurnView::PageTurnStartedSignal()
89 return Toolkit::GetImplementation( *this ).PageTurnStartedSignal();
92 PageTurnView::PageTurnSignal& PageTurnView::PageTurnFinishedSignal()
94 return Toolkit::GetImplementation( *this ).PageTurnFinishedSignal();
97 PageTurnView::PagePanSignal& PageTurnView::PagePanStartedSignal()
99 return Toolkit::GetImplementation( *this ).PagePanStartedSignal();
102 PageTurnView::PagePanSignal& PageTurnView::PagePanFinishedSignal()
104 return Toolkit::GetImplementation( *this ).PagePanFinishedSignal();
107 Actor PageTurnView::EnterEditMode()
109 return Toolkit::GetImplementation( *this ).EnterEditMode();
112 void PageTurnView::LeaveEditMode()
114 Toolkit::GetImplementation( *this ).LeaveEditMode();
117 Actor PageTurnView::GetHitActor( Vector2& screenCoordinates, Vector2& actorCoordinates )
119 return Toolkit::GetImplementation( *this ).GetHitActor( screenCoordinates, actorCoordinates );
122 void PageTurnView::RefreshAll()
124 Toolkit::GetImplementation( *this ).RefreshAll();
127 void PageTurnView::RefreshCurrentPage()
129 Toolkit::GetImplementation( *this ).RefreshCurrentPage();
132 } // namespace Toolkit