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.
24 #include <dali-toolkit/internal/controls/navigation-frame/page-impl.h>
32 const char* const Page::PROPERTY_TITLE = "title";
33 const char* const Page::PROPERTY_SUB_TITLE = "sub-title";
39 Page::Page( const Page& handle )
44 Page& Page::operator=( const Page& handle )
48 CustomActor::operator=( handle );
55 return Internal::Page::New();
58 Page Page::DownCast( BaseHandle handle )
60 return Control::DownCast<Page, Internal::Page>(handle);
63 Page::Page(Internal::Page& impl)
68 Page::Page( Dali::Internal::CustomActor* internal )
71 VerifyCustomActorPointer<Internal::Page>(internal);
74 void Page::SetTitle(const std::string& title)
76 GetImpl( *this ).SetTitle(title);
79 const std::string& Page::GetTitle() const
81 return GetImpl( *this ).GetTitle();
84 void Page::SetSubTitle(const std::string& subtitle)
86 GetImpl( *this ).SetSubTitle(subtitle);
89 const std::string& Page::GetSubTitle() const
91 return GetImpl( *this ).GetSubTitle();
94 void Page::SetTitleIcon( Actor titleIcon)
96 GetImpl( *this ).SetTitleIcon(titleIcon);
99 Actor Page::GetTitleIcon() const
101 return GetImpl( *this ).GetTitleIcon();
104 bool Page::AddControlToToolBar(Actor control, Alignment::Type alignment)
106 return GetImpl( *this ).AddControlToToolBar(control, alignment);
109 const Page::ControlOnBarContainer Page::GetControlsOnToolBar() const
111 return GetImpl( *this ).GetControlsOnToolBar();
114 bool Page::AddControlToTitleBar(Actor control)
116 return GetImpl( *this ).AddControlToTitleBar(control);
119 const ActorContainer Page::GetControlsOnTitleBar() const
121 return GetImpl( *this ).GetControlsOnTitleBar();
124 void Page::SetPopupMenu( Toolkit::Popup popupMenu )
126 GetImpl( *this ).SetPopupMenu( popupMenu );
129 Toolkit::Popup Page::GetPopupMenu() const
131 return GetImpl( *this ).GetPopupMenu();
134 } // namespace Toolkit