1 #ifndef __DALI_TOOLKIT_PAGE_TURN_LANDSCAPE_VIEW_H__
2 #define __DALI_TOOLKIT_PAGE_TURN_LANDSCAPE_VIEW_H__
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
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
11 // http://floralicense.org/license/
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.
21 #include <dali-toolkit/public-api/controls/page-turn-view/page-turn-view.h>
23 namespace Dali DALI_IMPORT_API
29 namespace Internal DALI_INTERNAL
31 // Forward declarations
32 class PageTurnLandscapeView;
36 * PageTurnLandscapeView provides a page turn view in landscape mode
38 class PageTurnLandscapeView : public PageTurnView
42 * Create an uninitialized PageTurnLandscapeView; this can be initialized with PageTurnLandscapeView::New()
43 * Calling member functions with an uninitialized Dali::Object is not allowed.
45 PageTurnLandscapeView();
50 PageTurnLandscapeView( const PageTurnLandscapeView& pageTurnLandscapeView );
53 * Assignment operator.
55 PageTurnLandscapeView& operator=( const PageTurnLandscapeView& pageTurnLandscapeView );
59 * Dali::Object derived classes typically do not contain member data.
61 virtual ~PageTurnLandscapeView();
64 * Create an initialized PageTurnLandscapeView control
65 * @param[in] pageFactory The factory which provides PageTurnView with pages.
66 * @param[in] pageSize The size of the page
67 * @return A handle to the PageTurnLandscapeView control.
69 static PageTurnLandscapeView New( PageFactory& pageFactory, const Vector2& pageSize );
72 * Downcast an Object handle to PageTurnPortraitView. If handle points to a PageTurnLandscapeView the
73 * downcast produces valid handle. If not the returned handle is left uninitialized.
74 * @param[in] handle Handle to an object
75 * @return handle to a PageTurnLandscapeView or an uninitialized handle
77 static PageTurnLandscapeView DownCast( BaseHandle handle );
79 public: // Not intended for application developers
82 * Creates a handle using the Toolkit::Internal implementation.
83 * @param[in] implementation The Control implementation.
85 PageTurnLandscapeView( Internal::PageTurnLandscapeView& implementation );
88 * Allows the creation of this Control from an Internal::CustomActor pointer.
89 * @param[in] internal A pointer to the internal CustomActor.
91 PageTurnLandscapeView( Dali::Internal::CustomActor* internal );
96 } // namespace Toolkit
100 #endif /* __DALI_TOOLKIT_PAGE_TURN_LANDSCAPE_VIEW_H__ */