2 * Copyright (c) 2016 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 <public_api/widget_view/widget_view.h>
22 #include <internal/widget_view/widget_view_impl.h>
30 WidgetView WidgetView::New( const std::string& widgetId, const std::string& contentInfo, int width, int height, double updatePeriod )
32 return Internal::WidgetView::New( widgetId, contentInfo, width, height, updatePeriod );
35 WidgetView WidgetView::DownCast( BaseHandle handle )
37 return Toolkit::Control::DownCast<WidgetView, Internal::WidgetView>( handle );
40 WidgetView::WidgetView()
44 WidgetView::WidgetView( const WidgetView& handle )
45 : Toolkit::Control( handle )
49 WidgetView& WidgetView::operator=( const WidgetView& handle )
53 Control::operator=( handle );
58 WidgetView::~WidgetView()
62 bool WidgetView::PauseWidget()
64 return Dali::WidgetView::GetImplementation( *this ).PauseWidget();
67 bool WidgetView::ResumeWidget()
69 return Dali::WidgetView::GetImplementation( *this ).ResumeWidget();
72 const std::string& WidgetView::GetWidgetId() const
74 return Dali::WidgetView::GetImplementation( *this ).GetWidgetId();
77 const std::string& WidgetView::GetInstanceId() const
79 return Dali::WidgetView::GetImplementation( *this ).GetInstanceId();
82 const std::string& WidgetView::GetContentInfo()
84 return Dali::WidgetView::GetImplementation( *this ).GetContentInfo();
87 const std::string& WidgetView::GetTitle()
89 return Dali::WidgetView::GetImplementation( *this ).GetTitle();
92 double WidgetView::GetUpdatePeriod() const
94 return Dali::WidgetView::GetImplementation( *this ).GetUpdatePeriod();
97 void WidgetView::Show()
99 Dali::WidgetView::GetImplementation( *this ).Show();
102 void WidgetView::Hide()
104 Dali::WidgetView::GetImplementation( *this ).Hide();
107 bool WidgetView::CancelTouchEvent()
109 return Dali::WidgetView::GetImplementation( *this ).CancelTouchEvent();
112 void WidgetView::SetPreviewEnabled( bool enabled )
114 Dali::WidgetView::GetImplementation( *this ).SetPreviewEnabled( enabled );
117 bool WidgetView::GetPreviewEnabled() const
119 return Dali::WidgetView::GetImplementation( *this ).GetPreviewEnabled();
122 void WidgetView::SetStateTextEnabled( bool enabled )
124 Dali::WidgetView::GetImplementation( *this ).SetStateTextEnabled( enabled );
127 bool WidgetView::GetStateTextEnabled() const
129 return Dali::WidgetView::GetImplementation( *this ).GetStateTextEnabled();
132 void WidgetView::ActivateFaultedWidget()
134 return Dali::WidgetView::GetImplementation( *this ).ActivateFaultedWidget();
137 bool WidgetView::IsWidgetFaulted()
139 return Dali::WidgetView::GetImplementation( *this ).IsWidgetFaulted();
142 void WidgetView::SetPermanentDelete( bool permanentDelete )
144 return Dali::WidgetView::GetImplementation( *this ).SetPermanentDelete( permanentDelete );
147 WidgetView::WidgetViewSignalType& WidgetView::WidgetAddedSignal()
149 return Dali::WidgetView::GetImplementation(*this).WidgetAddedSignal();
152 WidgetView::WidgetViewSignalType& WidgetView::WidgetDeletedSignal()
154 return Dali::WidgetView::GetImplementation(*this).WidgetDeletedSignal();
157 WidgetView::WidgetViewSignalType& WidgetView::WidgetCreationAbortedSignal()
159 return Dali::WidgetView::GetImplementation(*this).WidgetCreationAbortedSignal();
162 WidgetView::WidgetViewSignalType& WidgetView::WidgetResizedSignal()
164 return Dali::WidgetView::GetImplementation(*this).WidgetResizedSignal();
167 WidgetView::WidgetViewSignalType& WidgetView::WidgetContentUpdatedSignal()
169 return Dali::WidgetView::GetImplementation(*this).WidgetContentUpdatedSignal();
172 WidgetView::WidgetViewSignalType& WidgetView::WidgetExtraInfoUpdatedSignal()
174 return Dali::WidgetView::GetImplementation(*this).WidgetExtraInfoUpdatedSignal();
177 WidgetView::WidgetViewSignalType& WidgetView::WidgetUpdatePeriodChangedSignal()
179 return Dali::WidgetView::GetImplementation(*this).WidgetUpdatePeriodChangedSignal();
182 WidgetView::WidgetViewSignalType& WidgetView::WidgetFaultedSignal()
184 return Dali::WidgetView::GetImplementation(*this).WidgetFaultedSignal();
187 WidgetView::WidgetView( Internal::WidgetView& implementation )
188 : Control( implementation )
192 WidgetView::WidgetView( Dali::Internal::CustomActor* internal )
193 : Control( internal )
195 VerifyCustomActorPointer<Internal::WidgetView>( internal );
198 } // namespace WidgetView