2 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include "navigation-control.h"
24 #include <dali-toolkit/internal/controls/navigation-frame/navigation-control-impl.h>
32 NavigationControl::NavigationControl()
36 NavigationControl::NavigationControl( const NavigationControl& handle )
41 NavigationControl& NavigationControl::operator=( const NavigationControl& handle)
45 Control::operator=( handle );
50 NavigationControl::~NavigationControl()
54 NavigationControl NavigationControl::New()
56 return Internal::NavigationControl::New();
59 NavigationControl NavigationControl::DownCast( BaseHandle handle )
61 return Control::DownCast<NavigationControl, Internal::NavigationControl>(handle);
64 NavigationControl::NavigationControl( Internal::NavigationControl& implementation )
65 : Control( implementation )
69 NavigationControl::NavigationControl( Dali::Internal::CustomActor* internal )
72 VerifyCustomActorPointer<Internal::NavigationControl>(internal);
76 void NavigationControl::PushItem( Page item )
78 GetImpl( *this ).PushItem( item );
81 Page NavigationControl::PopItem()
83 return GetImpl( *this ).PopItem();
86 size_t NavigationControl::GetItemCount() const
88 return GetImpl( *this ).GetItemCount();
91 Page NavigationControl::GetItem(std::size_t index) const
93 return GetImpl( *this ).GetItem( index );
96 Page NavigationControl::GetCurrentItem() const
98 return GetImpl(*this ).GetCurrentItem();
101 void NavigationControl::SetBackground( Actor background)
103 GetImpl( *this ).SetBackground( background );
106 void NavigationControl::CreateNavigationToolBar( NaviToolBarStyle toolBarStylePortrait, NaviToolBarStyle toolBarStyleLandscape )
108 GetImpl( *this ).CreateNavigationToolBar( toolBarStylePortrait, toolBarStyleLandscape );
111 void NavigationControl::CreateNavigationTitleBar( NaviTitleBarStyle titleBarStylePortrait, NaviTitleBarStyle titleBarStyleLandscape )
113 GetImpl( *this ).CreateNavigationTitleBar( titleBarStylePortrait, titleBarStyleLandscape );
116 void NavigationControl::OrientationChanged( int angle )
118 GetImpl( *this ).OrientationChanged( angle );
121 void NavigationControl::SetOrientationRotateAnimation( float duration, AlphaFunction alphaFunc)
123 GetImpl( *this ).SetOrientationRotateAnimation( duration, alphaFunc );
126 NavigationControl::ItemPushedSignalType& NavigationControl::ItemPushedSignal()
128 return GetImpl( *this ).ItemPushedSignal();
131 NavigationControl::ItemPoppedSignalType& NavigationControl::ItemPoppedSignal()
133 return GetImpl( *this ).ItemPoppedSignal();
136 } // namespace Toolkit