[dali_2.3.20] Merge branch 'devel/master'
[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) 2021 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-landscape-view.h>
23 #include <dali-toolkit/internal/controls/page-turn-view/page-turn-view-impl.h>
24
25 namespace Dali
26 {
27 namespace Toolkit
28 {
29 namespace Internal
30 {
31 class PageTurnLandscapeView : public PageTurnView
32 {
33 public:
34   /**
35    * @copydoc Toolkit::PageTurnLandscapeView::New( PageFactory&, const Vector2& )
36    */
37   static Toolkit::PageTurnLandscapeView New(PageFactory& pageFactory, const Vector2& viewPageSize);
38
39 protected:
40   /**
41    * Constructor.
42    * It initializes the PageTurnPortraitView members
43    * @param[in] pageFactory The factory which provides image to PageTurnView as the page content.
44    * @param[in] viewPageSize The size of the page
45    */
46   PageTurnLandscapeView(PageFactory& pageFactory, const Vector2& viewPageSize);
47
48   /**
49    * A reference counted object may only be deleted by calling Unreference()
50    */
51   virtual ~PageTurnLandscapeView();
52
53 protected: // From PageTurnView
54   /**
55    * @copydoc PageTurnView::OnPageTurnViewInitialize
56    */
57   void OnPageTurnViewInitialize() override;
58
59   /**
60    * @copydoc PageTurnView::OnAddPage
61    */
62   void OnAddPage(Actor newPage, bool isLeftSide) override;
63
64   /**
65    * @copydoc PageTurnView::SetPanPosition
66    */
67   Vector2 SetPanPosition(const Vector2& gesturePosition) override;
68
69   /**
70    * @copydoc PageTurnView::SetPanActor
71    */
72   void SetPanActor(const Vector2& panPosition) override;
73
74 private:
75   //Undefined
76   PageTurnLandscapeView(const PageTurnLandscapeView&);
77
78   //undefined
79   PageTurnLandscapeView& operator=(const PageTurnLandscapeView& rhs);
80 };
81
82 } // namespace Internal
83
84 } // namespace Toolkit
85
86 } // namespace Dali
87
88 #endif // DALI_TOOLKIT_INTERNAL_PAGE_TURN_LANDSCAPE_VIEW_IMPL_H