[dali_1.1.38] Merge branch 'devel/master'
[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/public-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    * @copydoc Toolkit::PageTurnPortraitView::New( PageFactory&, const Vector2& )
43    */
44   static Toolkit::PageTurnPortraitView New( PageFactory& pageFactory, const Vector2& pageSize );
45
46 protected:
47
48   /**
49    * Constructor.
50    * It initializes the PageTurnPortraitView members
51    * @param[in] pageFactory The factory which provides image to PageTurnView as the page content.
52    * @param[in] pageSize The size of the page
53    */
54   PageTurnPortraitView( PageFactory& pageFactory, const Vector2& pageSize );
55
56   /**
57    * A reference counted object may only be deleted by calling Unreference()
58    */
59   virtual ~PageTurnPortraitView();
60
61 protected: // From PageTurnView
62
63   /**
64    * @copydoc PageTurnView::OnPageTurnViewInitialize
65    */
66   virtual void OnPageTurnViewInitialize();
67
68   /**
69    * @copydoc PageTurnView::SetPanPosition
70    */
71   virtual Vector2 SetPanPosition( const Vector2& gesturePosition );
72
73   /**
74    * @copydoc PageTurnView::SetPanActor
75    */
76   virtual void SetPanActor( const Vector2& panPosition );
77
78   /**
79    * @copydoc PageTurnView::OnPossibleOutwardsFlick
80    */
81   virtual void OnPossibleOutwardsFlick( const Vector2& panPosition, float gestureSpeed );
82
83   /**
84    * @copydoc PageTurnView::OnTurnedOver
85    */
86   virtual void OnTurnedOver( Actor actor, bool isLeftSide );
87
88 private:
89
90   /**
91    * @copydoc PageTurnView::TurnedOver
92    */
93   void TurnedOverBackwards( Animation& animation );
94
95 private:
96
97   //Undefined
98   PageTurnPortraitView( const PageTurnPortraitView& );
99
100   //undefined
101   PageTurnPortraitView& operator=(const PageTurnPortraitView& rhs);
102
103 };
104
105 } // namespace Internal
106
107 } // namespace Toolkit
108
109 } // namespace Dali
110 #endif /* __DALI_TOOLKIT_INTERNAL_PAGE_TURN_PORTRAIT_VIEW_IMPL_H__ */