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 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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
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>
35 * Implementation class of the PageTurnView in portrait mode
37 class PageTurnPortraitView : public PageTurnView
42 * Create a new PageTurnPortraitView
43 * @return A handle to the newly allocated PageTurnPortraitView
45 static Toolkit::PageTurnPortraitView New( PageFactory& pageFactory, const Vector2& pageSize );
51 * It initializes the PageTurnPortraitView members
53 PageTurnPortraitView( PageFactory& pageFactory, const Vector2& pageSize );
56 * A reference counted object may only be deleted by calling Unreference()
58 virtual ~PageTurnPortraitView();
60 protected: // From PageTurnView
63 * @copydoc PageTurnView::OnPageTurnViewInitialize
65 virtual void OnPageTurnViewInitialize();
68 * @copydoc PageTurnView::SetPanPosition
70 virtual Vector2 SetPanPosition( const Vector2& gesturePosition );
73 * @copydoc PageTurnView::SetPanActor
75 virtual void SetPanActor( const Vector2& panPosition );
78 * @copydoc PageTurnView::SetSpineEffect
80 virtual void SetSpineEffect(ImageActor actor, bool isLeftSide);
83 * @copydoc PageTurnView::OnPossibleOutwardsFlick
85 virtual void OnPossibleOutwardsFlick( const Vector2& panPosition, float gestureSpeed );
87 virtual void OnTurnedOver( ImageActor actor, bool isLeftSide );
92 * @copydoc PageTurnView::TurnedOver
94 void TurnedOverBackwards( Animation& animation );
99 PageTurnPortraitView( const PageTurnPortraitView& );
102 PageTurnPortraitView& operator=(const PageTurnPortraitView& rhs);
106 } // namespace Internal
108 } // namespace Toolkit
111 #endif /* __DALI_TOOLKIT_INTERNAL_PAGE_TURN_PORTRAIT_VIEW_IMPL_H__ */