Merge branch 'temp' of /home/taeyoon0lee/Workspace/platform/widget-viewer
[platform/core/uifw/widget-viewer-dali.git] / public_api / widget_view / widget_view.cpp
1 /*
2  * Samsung API
3  * Copyright (c) 2016 Samsung Electronics Co., Ltd.
4  *
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
8  *
9  * http://floralicense.org/license/
10  *
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.
16  */
17
18 // CLASS HEADER
19 #include <public_api/widget_view/widget_view.h>
20
21 // INTERNAL INCLUDES
22 #include <internal/widget_view/widget_view_impl.h>
23
24 namespace Dali
25 {
26
27 namespace WidgetView
28 {
29
30 WidgetView WidgetView::New( const std::string& widgetId, const std::string& contentInfo, int width, int height, float updatePeriod )
31 {
32   return Internal::WidgetView::New( widgetId, contentInfo, width, height, updatePeriod );
33 }
34
35 WidgetView WidgetView::DownCast( BaseHandle handle )
36 {
37   return Toolkit::Control::DownCast<WidgetView, Internal::WidgetView>( handle );
38 }
39
40 WidgetView::WidgetView()
41 {
42 }
43
44 WidgetView::WidgetView( const WidgetView& handle )
45 : Toolkit::Control( handle )
46 {
47 }
48
49 WidgetView& WidgetView::operator=( const WidgetView& handle )
50 {
51   if( &handle != this )
52   {
53     Control::operator=( handle );
54   }
55   return *this;
56 }
57
58 WidgetView::~WidgetView()
59 {
60 }
61
62 bool WidgetView::PauseWidget()
63 {
64   return Dali::WidgetView::GetImplementation( *this ).PauseWidget();
65 }
66
67 bool WidgetView::ResumeWidget()
68 {
69   return Dali::WidgetView::GetImplementation( *this ).ResumeWidget();
70 }
71
72 bool WidgetView::CancelTouchEvent()
73 {
74   return Dali::WidgetView::GetImplementation( *this ).CancelTouchEvent();
75 }
76
77 void WidgetView::ActivateFaultedWidget()
78 {
79   return Dali::WidgetView::GetImplementation( *this ).ActivateFaultedWidget();
80 }
81
82 WidgetView::WidgetViewSignalType& WidgetView::WidgetAddedSignal()
83 {
84   return Dali::WidgetView::GetImplementation(*this).WidgetAddedSignal();
85 }
86
87 WidgetView::WidgetViewSignalType& WidgetView::WidgetDeletedSignal()
88 {
89   return Dali::WidgetView::GetImplementation(*this).WidgetDeletedSignal();
90 }
91
92 WidgetView::WidgetViewSignalType& WidgetView::WidgetCreationAbortedSignal()
93 {
94   return Dali::WidgetView::GetImplementation(*this).WidgetCreationAbortedSignal();
95 }
96
97 WidgetView::WidgetViewSignalType& WidgetView::WidgetContentUpdatedSignal()
98 {
99   return Dali::WidgetView::GetImplementation(*this).WidgetContentUpdatedSignal();
100 }
101
102 WidgetView::WidgetViewSignalType& WidgetView::WidgetUpdatePeriodChangedSignal()
103 {
104   return Dali::WidgetView::GetImplementation(*this).WidgetUpdatePeriodChangedSignal();
105 }
106
107 WidgetView::WidgetViewSignalType& WidgetView::WidgetFaultedSignal()
108 {
109   return Dali::WidgetView::GetImplementation(*this).WidgetFaultedSignal();
110 }
111
112 WidgetView::WidgetView( Internal::WidgetView& implementation )
113 : Control( implementation )
114 {
115 }
116
117 WidgetView::WidgetView( Dali::Internal::CustomActor* internal )
118 : Control( internal )
119 {
120   VerifyCustomActorPointer<Internal::WidgetView>( internal );
121 }
122
123 } // namespace WidgetView
124
125 } // namespace Dali