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 period )
32 return Internal::WidgetView::New( widgetId, contentInfo, width, height, period );
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 const std::string& WidgetView::GetWidgetId() const
64 return Dali::WidgetView::GetImplementation( *this ).GetWidgetId();
67 const std::string& WidgetView::GetInstanceId() const
69 return Dali::WidgetView::GetImplementation( *this ).GetInstanceId();
72 const std::string& WidgetView::GetContentInfo()
74 return Dali::WidgetView::GetImplementation( *this ).GetContentInfo();
77 const std::string& WidgetView::GetTitle()
79 return Dali::WidgetView::GetImplementation( *this ).GetTitle();
82 double WidgetView::GetPeriod() const
84 return Dali::WidgetView::GetImplementation( *this ).GetPeriod();
87 bool WidgetView::CancelTouchEvent()
89 return Dali::WidgetView::GetImplementation( *this ).CancelTouchEvent();
92 void WidgetView::SetPreviewEnabled( bool enabled )
94 Dali::WidgetView::GetImplementation( *this ).SetPreviewEnabled( enabled );
97 bool WidgetView::GetPreviewEnabled() const
99 return Dali::WidgetView::GetImplementation( *this ).GetPreviewEnabled();
102 void WidgetView::SetStateTextEnabled( bool enabled )
104 Dali::WidgetView::GetImplementation( *this ).SetStateTextEnabled( enabled );
107 bool WidgetView::GetStateTextEnabled() const
109 return Dali::WidgetView::GetImplementation( *this ).GetStateTextEnabled();
112 void WidgetView::ActivateFaultedWidget()
114 return Dali::WidgetView::GetImplementation( *this ).ActivateFaultedWidget();
117 bool WidgetView::IsWidgetFaulted()
119 return Dali::WidgetView::GetImplementation( *this ).IsWidgetFaulted();
122 void WidgetView::SetPermanentDelete( bool permanentDelete )
124 return Dali::WidgetView::GetImplementation( *this ).SetPermanentDelete( permanentDelete );
127 WidgetView::WidgetViewSignalType& WidgetView::WidgetAddedSignal()
129 return Dali::WidgetView::GetImplementation(*this).WidgetAddedSignal();
132 WidgetView::WidgetViewSignalType& WidgetView::WidgetDeletedSignal()
134 return Dali::WidgetView::GetImplementation(*this).WidgetDeletedSignal();
137 WidgetView::WidgetView( Internal::WidgetView& implementation )
138 : Control( implementation )
142 WidgetView::WidgetView( Dali::Internal::CustomActor* internal )
143 : Control( internal )
145 VerifyCustomActorPointer<Internal::WidgetView>( internal );
148 } // namespace WidgetView