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.
24 #include <dali-toolkit/internal/controls/navigation-frame/page-impl.h>
36 Page::Page( const Page& handle )
41 Page& Page::operator=( const Page& handle )
45 CustomActor::operator=( handle );
52 return Internal::Page::New();
55 Page Page::DownCast( BaseHandle handle )
57 return Control::DownCast<Page, Internal::Page>(handle);
60 Page::Page(Internal::Page& impl)
65 Page::Page( Dali::Internal::CustomActor* internal )
68 VerifyCustomActorPointer<Internal::Page>(internal);
71 void Page::SetTitle(const std::string& title)
73 GetImpl( *this ).SetTitle(title);
76 const std::string& Page::GetTitle() const
78 return GetImpl( *this ).GetTitle();
81 void Page::SetSubTitle(const std::string& subtitle)
83 GetImpl( *this ).SetSubTitle(subtitle);
86 const std::string& Page::GetSubTitle() const
88 return GetImpl( *this ).GetSubTitle();
91 void Page::SetTitleIcon( Actor titleIcon)
93 GetImpl( *this ).SetTitleIcon(titleIcon);
96 Actor Page::GetTitleIcon() const
98 return GetImpl( *this ).GetTitleIcon();
101 bool Page::AddControlToToolBar(Actor control, Alignment::Type alignment)
103 return GetImpl( *this ).AddControlToToolBar(control, alignment);
106 const Page::ControlOnBarContainer Page::GetControlsOnToolBar() const
108 return GetImpl( *this ).GetControlsOnToolBar();
111 bool Page::AddControlToTitleBar(Actor control)
113 return GetImpl( *this ).AddControlToTitleBar(control);
116 const ActorContainer Page::GetControlsOnTitleBar() const
118 return GetImpl( *this ).GetControlsOnTitleBar();
121 void Page::SetPopupMenu( Toolkit::Popup popupMenu )
123 GetImpl( *this ).SetPopupMenu( popupMenu );
126 Toolkit::Popup Page::GetPopupMenu() const
128 return GetImpl( *this ).GetPopupMenu();
131 } // namespace Toolkit