3 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
5 * Licensed under the Flora License, Version 1.1 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://floralicense.org/license/
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * 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, float 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 bool WidgetView::CancelTouchEvent()
74 return Dali::WidgetView::GetImplementation( *this ).CancelTouchEvent();
77 void WidgetView::ActivateFaultedWidget()
79 return Dali::WidgetView::GetImplementation( *this ).ActivateFaultedWidget();
82 WidgetView::WidgetViewSignalType& WidgetView::WidgetAddedSignal()
84 return Dali::WidgetView::GetImplementation(*this).WidgetAddedSignal();
87 WidgetView::WidgetViewSignalType& WidgetView::WidgetDeletedSignal()
89 return Dali::WidgetView::GetImplementation(*this).WidgetDeletedSignal();
92 WidgetView::WidgetViewSignalType& WidgetView::WidgetCreationAbortedSignal()
94 return Dali::WidgetView::GetImplementation(*this).WidgetCreationAbortedSignal();
97 WidgetView::WidgetViewSignalType& WidgetView::WidgetContentUpdatedSignal()
99 return Dali::WidgetView::GetImplementation(*this).WidgetContentUpdatedSignal();
102 WidgetView::WidgetViewSignalType& WidgetView::WidgetUpdatePeriodChangedSignal()
104 return Dali::WidgetView::GetImplementation(*this).WidgetUpdatePeriodChangedSignal();
107 WidgetView::WidgetViewSignalType& WidgetView::WidgetFaultedSignal()
109 return Dali::WidgetView::GetImplementation(*this).WidgetFaultedSignal();
112 WidgetView::WidgetView( Internal::WidgetView& implementation )
113 : Control( implementation )
117 WidgetView::WidgetView( Dali::Internal::CustomActor* internal )
118 : Control( internal )
120 VerifyCustomActorPointer<Internal::WidgetView>( internal );
123 } // namespace WidgetView