1 #ifndef __DALI_TOOLKIT_INTERNAL_PAGE_TURN_PORTRAIT_VIEW_IMPL_H__
2 #define __DALI_TOOLKIT_INTERNAL_PAGE_TURN_PORTRAIT_VIEW_IMPL_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-portrait-view.h>
22 #include <dali-toolkit/internal/controls/page-turn-view/page-turn-view-impl.h>
34 * Implementation class of the PageTurnView in portrait mode
36 class PageTurnPortraitView : public PageTurnView
41 * Create a new PageTurnPortraitView
42 * @return A handle to the newly allocated PageTurnPortraitView
44 static Toolkit::PageTurnPortraitView New( PageFactory& pageFactory, const Vector2& pageSize );
50 * It initializes the PageTurnPortraitView members
52 PageTurnPortraitView( PageFactory& pageFactory, const Vector2& pageSize );
55 * A reference counted object may only be deleted by calling Unreference()
57 virtual ~PageTurnPortraitView();
59 protected: // From PageTurnView
62 * @copydoc PageTurnView::OnPageTurnViewInitialize
64 virtual void OnPageTurnViewInitialize();
67 * @copydoc PageTurnView::NewPageFromRenderBuffer
69 virtual ImageActor NewPageFromRenderBuffer( int pageIndex );
72 * @copydoc PageTurnView::SetPanPosition
74 virtual Vector2 SetPanPosition( const Vector2& gesturePosition );
77 * @copydoc PageTurnView::SetPanActor
79 virtual void SetPanActor( const Vector2& panPosition );
82 * @copydoc PageTurnView::SetSpineEffect
84 virtual void SetSpineEffect(Actor actor, bool isLeftSide);
87 * @copydoc PageTurnView::OnPossibleOutwardsFlick
89 virtual void OnPossibleOutwardsFlick( const Vector2& panPosition, float gestureSpeed );
94 * @copydoc PageTurnView::TurnedOver
96 void OnTurnedOver( Animation& animation );
101 PageTurnPortraitView( const PageTurnPortraitView& );
104 PageTurnPortraitView& operator=(const PageTurnPortraitView& rhs);
108 } // namespace Internal
110 } // namespace Toolkit
113 #endif /* __DALI_TOOLKIT_INTERNAL_PAGE_TURN_PORTRAIT_VIEW_IMPL_H__ */