4d6c877d36b667c8492c07e316cf1e81695f4ce1
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / public-api / controls / page-turn-view / page-turn-landscape-view.h
1 #ifndef __DALI_TOOLKIT_PAGE_TURN_LANDSCAPE_VIEW_H__
2 #define __DALI_TOOLKIT_PAGE_TURN_LANDSCAPE_VIEW_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-view.h>
23
24 namespace Dali
25 {
26
27 namespace Toolkit
28 {
29
30 namespace Internal DALI_INTERNAL
31 {
32 // Forward declarations
33 class PageTurnLandscapeView;
34 }
35
36 /**
37  * PageTurnLandscapeView provides a page turn view in landscape mode
38  */
39 class DALI_IMPORT_API PageTurnLandscapeView : public PageTurnView
40 {
41 public:
42   /**
43    * Create an uninitialized PageTurnLandscapeView; this can be initialized with PageTurnLandscapeView::New()
44    * Calling member functions with an uninitialized Dali::Object is not allowed.
45    */
46   PageTurnLandscapeView();
47
48   /**
49    * Copy constructor.
50    */
51   PageTurnLandscapeView( const PageTurnLandscapeView& pageTurnLandscapeView );
52
53   /**
54    * Assignment operator.
55    */
56   PageTurnLandscapeView& operator=( const PageTurnLandscapeView& pageTurnLandscapeView );
57
58   /**
59    * @brief Destructor
60    *
61    * This is non-virtual since derived Handle types must not contain data or virtual methods.
62    */
63   ~PageTurnLandscapeView();
64
65   /**
66    * Create an initialized PageTurnLandscapeView control
67    * @param[in] pageFactory The factory which provides PageTurnView with pages.
68    * @param[in] pageSize The size of the page
69    * @return A handle to the PageTurnLandscapeView control.
70    */
71   static PageTurnLandscapeView New( PageFactory& pageFactory, const Vector2& pageSize );
72
73   /**
74    * Downcast an Object handle to PageTurnPortraitView. If handle points to a PageTurnLandscapeView the
75    * downcast produces valid handle. If not the returned handle is left uninitialized.
76    * @param[in] handle Handle to an object
77    * @return handle to a PageTurnLandscapeView or an uninitialized handle
78    */
79   static PageTurnLandscapeView DownCast( BaseHandle handle );
80
81 public: // Not intended for application developers
82
83   /**
84    * Creates a handle using the Toolkit::Internal implementation.
85    * @param[in]  implementation  The Control implementation.
86    */
87   DALI_INTERNAL PageTurnLandscapeView( Internal::PageTurnLandscapeView& implementation );
88
89   /**
90    * Allows the creation of this Control from an Internal::CustomActor pointer.
91    * @param[in]  internal  A pointer to the internal CustomActor.
92    */
93   explicit DALI_INTERNAL PageTurnLandscapeView( Dali::Internal::CustomActor* internal );
94 };
95
96 } // namespace Toolkit
97
98 } // namespace Dali
99
100 #endif /* __DALI_TOOLKIT_PAGE_TURN_LANDSCAPE_VIEW_H__ */