5dc56b647c550bab721410c698e5f1734813123b
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / controls / page-turn-view / page-turn-landscape-view-impl.h
1 #ifndef __DALI_TOOLKIT_INTERNAL_PAGE_TURN_LANDSCAPE_VIEW_IMPL_H__
2 #define __DALI_TOOLKIT_INTERNAL_PAGE_TURN_LANDSCAPE_VIEW_IMPL_H__
3
4 //
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
6 //
7 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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 // INTERNAL INCLUDES
21 #include <dali-toolkit/public-api/controls/page-turn-view/page-turn-landscape-view.h>
22 #include <dali-toolkit/internal/controls/page-turn-view/page-turn-view-impl.h>
23
24 namespace Dali
25 {
26
27 namespace Toolkit
28 {
29
30 namespace Internal
31 {
32
33 class PageTurnLandscapeView : public PageTurnView
34 {
35 public:
36
37   /**
38    * Create a new PageTurnLandscapeView
39    * @return A handle to the newly allocated PageTurnLandscapeView
40    */
41   static Toolkit::PageTurnLandscapeView New( PageFactory& pageFactory, const Vector2& pageSize );
42
43 protected:
44   /**
45    * Constructor.
46    * It initializes the PageTurnLandscapeView members
47    */
48   PageTurnLandscapeView( PageFactory& pageFactory, const Vector2& pageSize );
49
50   /**
51    * A reference counted object may only be deleted by calling Unreference()
52    */
53   virtual ~PageTurnLandscapeView();
54
55 protected: // From PageTurnView
56
57   /**
58    * @copydoc PageTurnView::OnPageTurnViewInitialize
59    */
60   virtual void OnPageTurnViewInitialize();
61
62   /**
63    * copydoc PageTurnView::NewPAgeFromRenderBuffer
64    */
65   virtual ImageActor NewPageFromRenderBuffer( int pageIndex );
66
67   /**
68    * @copydoc PageTurnView::OnAddPage
69    */
70   virtual void OnAddPage( ImageActor newPage, bool isLeftSide );
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(Actor actor, bool isLeftSide);
86
87 private:
88
89   //Undefined
90   PageTurnLandscapeView( const PageTurnLandscapeView& );
91
92   //undefined
93   PageTurnLandscapeView& operator=(const PageTurnLandscapeView& rhs);
94
95 };
96
97 } // namespace Internal
98
99 } // namespace Toolkit
100
101 } // namespace Dali
102 #endif /* __DALI_TOOLKIT_INTERNAL_PAGE_TURN_LANDSCAPE_VIEW_IMPL_H__ */