Move more public-api headers to devel-api. PART 3
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / controls / page-turn-view / page-turn-portrait-view-impl.h
1 #ifndef __DALI_TOOLKIT_INTERNAL_PAGE_TURN_PORTRAIT_VIEW_IMPL_H__
2 #define __DALI_TOOLKIT_INTERNAL_PAGE_TURN_PORTRAIT_VIEW_IMPL_H__
3
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // INTERNAL INCLUDES
22 #include <dali-toolkit/devel-api/controls/page-turn-view/page-turn-portrait-view.h>
23 #include <dali-toolkit/internal/controls/page-turn-view/page-turn-view-impl.h>
24
25 namespace Dali
26 {
27
28 namespace Toolkit
29 {
30
31 namespace Internal
32 {
33
34 /**
35  * Implementation class of the PageTurnView in portrait mode
36  */
37 class PageTurnPortraitView : public PageTurnView
38 {
39 public:
40
41   /**
42    * Create a new PageTurnPortraitView
43    * @return A handle to the newly allocated PageTurnPortraitView
44    */
45   static Toolkit::PageTurnPortraitView New( PageFactory& pageFactory, const Vector2& pageSize );
46
47 protected:
48
49   /**
50    * Constructor.
51    * It initializes the PageTurnPortraitView members
52    */
53   PageTurnPortraitView( PageFactory& pageFactory, const Vector2& pageSize );
54
55   /**
56    * A reference counted object may only be deleted by calling Unreference()
57    */
58   virtual ~PageTurnPortraitView();
59
60 protected: // From PageTurnView
61
62   /**
63    * @copydoc PageTurnView::OnPageTurnViewInitialize
64    */
65   virtual void OnPageTurnViewInitialize();
66
67   /**
68    * @copydoc PageTurnView::NewPageFromRenderBuffer
69    */
70   virtual ImageActor NewPageFromRenderBuffer( int pageIndex );
71
72   /**
73    * @copydoc PageTurnView::SetPanPosition
74    */
75   virtual Vector2 SetPanPosition( const Vector2& gesturePosition );
76
77   /**
78    * @copydoc PageTurnView::SetPanActor
79    */
80   virtual void SetPanActor( const Vector2& panPosition );
81
82   /**
83    * @copydoc PageTurnView::SetSpineEffect
84    */
85   virtual void SetSpineEffect(ImageActor actor, bool isLeftSide);
86
87   /**
88    * @copydoc PageTurnView::OnPossibleOutwardsFlick
89    */
90   virtual void OnPossibleOutwardsFlick( const Vector2& panPosition, float gestureSpeed );
91
92 private:
93
94   /**
95    * @copydoc PageTurnView::TurnedOver
96    */
97   void OnTurnedOver( Animation& animation );
98
99 private:
100
101   //Undefined
102   PageTurnPortraitView( const PageTurnPortraitView& );
103
104   //undefined
105   PageTurnPortraitView& operator=(const PageTurnPortraitView& rhs);
106
107 };
108
109 } // namespace Internal
110
111 } // namespace Toolkit
112
113 } // namespace Dali
114 #endif /* __DALI_TOOLKIT_INTERNAL_PAGE_TURN_PORTRAIT_VIEW_IMPL_H__ */