Split dali-toolkit into Base & Optional
[platform/core/uifw/dali-toolkit.git] / optional / dali-toolkit / public-api / controls / page-turn-view / page-turn-view.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 #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>
19
20 using namespace Dali;
21
22 namespace Dali
23 {
24
25 namespace Toolkit
26 {
27
28 PageTurnView::PageTurnView()
29 {
30 }
31
32 PageTurnView::PageTurnView( const PageTurnView& handle )
33 : Control( handle )
34 {
35 }
36
37 PageTurnView& PageTurnView::operator=( const PageTurnView& handle )
38 {
39   if( &handle != this )
40   {
41     Control::operator=( handle );
42   }
43   return *this;
44 }
45
46 PageTurnView::~PageTurnView()
47 {
48 }
49
50 PageTurnView PageTurnView::DownCast( BaseHandle handle )
51 {
52   return Control::DownCast<PageTurnView, Internal::PageTurnView>(handle);
53 }
54
55 PageTurnView::PageTurnView( Internal::PageTurnView& implementation )
56 : Control( implementation )
57 {
58 }
59
60 PageTurnView::PageTurnView( Dali::Internal::CustomActor* internal )
61 : Control( internal )
62 {
63   VerifyCustomActorPointer<Internal::PageTurnView>(internal);
64 }
65
66 void PageTurnView::SetSpineShadowParameter( const Vector2& spineShadowParameter )
67 {
68   Toolkit::GetImplementation( *this ).SetSpineShadowParameter( spineShadowParameter );
69 }
70
71 Vector2 PageTurnView::GetSpineShadowParameter()
72 {
73   return Toolkit::GetImplementation( *this ).GetSpineShadowParameter();
74 }
75
76 void PageTurnView::GoToPage( unsigned int pageId )
77 {
78   Toolkit::GetImplementation( *this ).GoToPage(pageId);
79 }
80
81 unsigned int PageTurnView::GetCurrentPage()
82 {
83   return Toolkit::GetImplementation( *this ).GetCurrentPage();
84 }
85
86 PageTurnView::PageTurnSignal& PageTurnView::PageTurnStartedSignal()
87 {
88   return Toolkit::GetImplementation( *this ).PageTurnStartedSignal();
89 }
90
91 PageTurnView::PageTurnSignal& PageTurnView::PageTurnFinishedSignal()
92 {
93   return Toolkit::GetImplementation( *this ).PageTurnFinishedSignal();
94 }
95
96 PageTurnView::PagePanSignal& PageTurnView::PagePanStartedSignal()
97 {
98   return Toolkit::GetImplementation( *this ).PagePanStartedSignal();
99 }
100
101 PageTurnView::PagePanSignal& PageTurnView::PagePanFinishedSignal()
102 {
103   return Toolkit::GetImplementation( *this ).PagePanFinishedSignal();
104 }
105
106 Actor PageTurnView::EnterEditMode()
107 {
108   return Toolkit::GetImplementation( *this ).EnterEditMode();
109 }
110
111 void PageTurnView::LeaveEditMode()
112 {
113   Toolkit::GetImplementation( *this ).LeaveEditMode();
114 }
115
116 Actor PageTurnView::GetHitActor( Vector2& screenCoordinates, Vector2& actorCoordinates )
117 {
118   return Toolkit::GetImplementation( *this ).GetHitActor( screenCoordinates, actorCoordinates );
119 }
120
121 void PageTurnView::RefreshAll()
122 {
123   Toolkit::GetImplementation( *this ).RefreshAll();
124 }
125
126 void PageTurnView::RefreshCurrentPage()
127 {
128   Toolkit::GetImplementation( *this ).RefreshCurrentPage();
129 }
130
131 } // namespace Toolkit
132
133 } // namespace Dali