2 * Copyright (c) 2014 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 const char* const NavigationControl::ACTION_PUSH = "push";
33 const char* const NavigationControl::ACTION_POP = "pop";
35 NavigationControl::NavigationControl()
39 NavigationControl::NavigationControl( const NavigationControl& handle )
44 NavigationControl& NavigationControl::operator=( const NavigationControl& handle)
48 Control::operator=( handle );
53 NavigationControl::~NavigationControl()
57 NavigationControl NavigationControl::New()
59 return Internal::NavigationControl::New();
62 NavigationControl NavigationControl::DownCast( BaseHandle handle )
64 return Control::DownCast<NavigationControl, Internal::NavigationControl>(handle);
67 NavigationControl::NavigationControl( Internal::NavigationControl& implementation )
68 : Control( implementation )
72 NavigationControl::NavigationControl( Dali::Internal::CustomActor* internal )
75 VerifyCustomActorPointer<Internal::NavigationControl>(internal);
79 void NavigationControl::PushItem( Page item )
81 GetImpl( *this ).PushItem( item );
84 Page NavigationControl::PopItem()
86 return GetImpl( *this ).PopItem();
89 size_t NavigationControl::GetItemCount() const
91 return GetImpl( *this ).GetItemCount();
94 Page NavigationControl::GetItem(std::size_t index) const
96 return GetImpl( *this ).GetItem( index );
99 Page NavigationControl::GetCurrentItem() const
101 return GetImpl(*this ).GetCurrentItem();
104 void NavigationControl::SetBackground( Actor background)
106 GetImpl( *this ).SetBackground( background );
109 void NavigationControl::CreateNavigationToolBar( NaviToolBarStyle toolBarStylePortrait, NaviToolBarStyle toolBarStyleLandscape )
111 GetImpl( *this ).CreateNavigationToolBar( toolBarStylePortrait, toolBarStyleLandscape );
114 void NavigationControl::CreateNavigationTitleBar( NaviTitleBarStyle titleBarStylePortrait, NaviTitleBarStyle titleBarStyleLandscape )
116 GetImpl( *this ).CreateNavigationTitleBar( titleBarStylePortrait, titleBarStyleLandscape );
119 void NavigationControl::OrientationChanged( int angle )
121 GetImpl( *this ).OrientationChanged( angle );
124 void NavigationControl::SetOrientationRotateAnimation( float duration, AlphaFunction alphaFunc)
126 GetImpl( *this ).SetOrientationRotateAnimation( duration, alphaFunc );
129 NavigationControl::ItemPushedSignalType& NavigationControl::ItemPushedSignal()
131 return GetImpl( *this ).ItemPushedSignal();
134 NavigationControl::ItemPoppedSignalType& NavigationControl::ItemPoppedSignal()
136 return GetImpl( *this ).ItemPoppedSignal();
139 } // namespace Toolkit