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 <widget_viewer_dali/public_api/widget_view_manager/widget_view_manager.h>
24 #include <widget_viewer_dali/internal/widget_view_manager/widget_view_manager_impl.h>
32 WidgetViewManager WidgetViewManager::New( Application application, const std::string& appId )
34 Internal::WidgetViewManagerPtr internal = Internal::WidgetViewManager::New( application, appId );
36 return WidgetViewManager( internal.Get() );
39 WidgetViewManager WidgetViewManager::DownCast( BaseHandle handle )
41 return WidgetViewManager( dynamic_cast< Internal::WidgetViewManager* >( handle.GetObjectPtr() ) );
44 WidgetViewManager::WidgetViewManager()
48 WidgetViewManager::WidgetViewManager( const WidgetViewManager& handle )
53 WidgetViewManager& WidgetViewManager::operator=( const WidgetViewManager& handle )
55 BaseHandle::operator=(handle);
59 WidgetViewManager::~WidgetViewManager()
63 WidgetViewManager::WidgetViewManager( Internal::WidgetViewManager* implementation )
64 : BaseHandle( implementation )
68 WidgetView WidgetViewManager::AddWidget( const std::string& widgetId, const std::string& contentInfo, int width, int height, float updatePeriod )
70 return GetImplementation(*this).AddWidget( widgetId, contentInfo, width, height, updatePeriod );
73 } // namespace WidgetView