2 * Copyright (c) 2017 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 "widget-data.h"
22 #include <dali/integration-api/debug.h>
25 #include <widget-data-impl.h>
30 WidgetData WidgetData::New( const char* instanceId, bundle* args, char* content )
32 return Internal::Adaptor::WidgetData::New( instanceId, args, content );
35 WidgetData::~WidgetData()
39 WidgetData::WidgetData()
43 WidgetData::WidgetData(const WidgetData& widgetData)
44 : BaseHandle(widgetData)
48 WidgetData& WidgetData::operator=(const WidgetData& widgetData)
50 if( *this != widgetData )
52 BaseHandle::operator=( widgetData );
57 const char* WidgetData::GetInstanceId()
59 return Internal::Adaptor::GetImplementation(*this).GetInstanceId();
62 bundle* WidgetData::GetArgs()
64 return Internal::Adaptor::GetImplementation(*this).GetArgs();
67 char* WidgetData::GetContent()
69 return Internal::Adaptor::GetImplementation(*this).GetContent();
72 Window WidgetData::GetWindow()
74 return Internal::Adaptor::GetImplementation(*this).GetWindow();
77 void WidgetData::SetArgs( bundle* args )
79 Internal::Adaptor::GetImplementation(*this).SetArgs(args);
82 void WidgetData::SetContent( char* content )
84 Internal::Adaptor::GetImplementation(*this).SetContent(content);
87 void WidgetData::SetWindow( Window window )
89 Internal::Adaptor::GetImplementation(*this).SetWindow(window);
92 WidgetData::WidgetData(Internal::Adaptor::WidgetData* widgetData)
93 : BaseHandle(widgetData)