1 /** Copyright (c) 2017 Samsung Electronics Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
17 #ifndef CSHARP_WIDGET_VIEW_MANAGER
18 #define CSHARP_WIDGET_VIEW_MANAGER
22 #include <widget_viewer_dali/public_api/widget_view_manager/widget_view_manager.h>
23 #include <widget_viewer_dali/public_api/widget_view/widget_view.h>
29 SWIGEXPORT Dali::BaseHandle * SWIGSTDCALL CSharp_Dali_WidgetViewManager_SWIGUpcast(Dali::WidgetView::WidgetViewManager *jarg1) {
30 return (Dali::BaseHandle *)jarg1;
34 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetViewManager_New(void * jarg1, char * jarg2) {
36 Dali::Application arg1 ;
37 std::string *arg2 = 0 ;
38 Dali::Application *argp1 ;
39 Dali::WidgetView::WidgetViewManager result;
41 argp1 = (Dali::Application *)jarg1;
43 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Application", 0);
48 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
51 std::string arg2_str(jarg2);
55 result = Dali::WidgetView::WidgetViewManager::New(arg1,(std::string const &)*arg2);
56 } catch (std::out_of_range& e) {
58 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
60 } catch (std::exception& e) {
62 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
64 } catch (Dali::DaliException e) {
66 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
70 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
75 jresult = new Dali::WidgetView::WidgetViewManager((const Dali::WidgetView::WidgetViewManager &)result);
77 //argout typemap for const std::string&
83 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetViewManager_DownCast(void * jarg1) {
85 Dali::BaseHandle arg1 ;
86 Dali::BaseHandle *argp1 ;
87 Dali::WidgetView::WidgetViewManager result;
89 argp1 = (Dali::BaseHandle *)jarg1;
91 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0);
97 result = Dali::WidgetView::WidgetViewManager::DownCast(arg1);
98 } catch (std::out_of_range& e) {
100 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
102 } catch (std::exception& e) {
104 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
106 } catch (Dali::DaliException e) {
108 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
112 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
117 jresult = new Dali::WidgetView::WidgetViewManager((const Dali::WidgetView::WidgetViewManager &)result);
122 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WidgetViewManager__SWIG_0() {
124 Dali::WidgetView::WidgetViewManager *result = 0 ;
128 result = (Dali::WidgetView::WidgetViewManager *)new Dali::WidgetView::WidgetViewManager();
129 } catch (std::out_of_range& e) {
131 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
133 } catch (std::exception& e) {
135 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
137 } catch (Dali::DaliException e) {
139 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
143 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
148 jresult = (void *)result;
153 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WidgetViewManager__SWIG_1(void * jarg1) {
155 Dali::WidgetView::WidgetViewManager *arg1 = 0 ;
156 Dali::WidgetView::WidgetViewManager *result = 0 ;
158 arg1 = (Dali::WidgetView::WidgetViewManager *)jarg1;
160 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::WidgetView::WidgetViewManager const & type is null", 0);
165 result = (Dali::WidgetView::WidgetViewManager *)new Dali::WidgetView::WidgetViewManager((Dali::WidgetView::WidgetViewManager const &)*arg1);
166 } catch (std::out_of_range& e) {
168 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
170 } catch (std::exception& e) {
172 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
174 } catch (Dali::DaliException e) {
176 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
180 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
185 jresult = (void *)result;
190 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetViewManager_Assign(void * jarg1, void * jarg2) {
192 Dali::WidgetView::WidgetViewManager *arg1 = (Dali::WidgetView::WidgetViewManager *) 0 ;
193 Dali::WidgetView::WidgetViewManager *arg2 = 0 ;
194 Dali::WidgetView::WidgetViewManager *result = 0 ;
196 arg1 = (Dali::WidgetView::WidgetViewManager *)jarg1;
197 arg2 = (Dali::WidgetView::WidgetViewManager *)jarg2;
199 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::WidgetView::WidgetViewManager const & type is null", 0);
204 result = (Dali::WidgetView::WidgetViewManager *) &(arg1)->operator =((Dali::WidgetView::WidgetViewManager const &)*arg2);
205 } catch (std::out_of_range& e) {
207 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
209 } catch (std::exception& e) {
211 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
213 } catch (Dali::DaliException e) {
215 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
219 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
224 jresult = (void *)result;
229 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WidgetViewManager(void * jarg1) {
230 Dali::WidgetView::WidgetViewManager *arg1 = (Dali::WidgetView::WidgetViewManager *) 0 ;
232 arg1 = (Dali::WidgetView::WidgetViewManager *)jarg1;
236 } catch (std::out_of_range& e) {
238 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
240 } catch (std::exception& e) {
242 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
244 } catch (Dali::DaliException e) {
246 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
250 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
257 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetViewManager_AddWidget(void * jarg1, char * jarg2, char * jarg3, int jarg4, int jarg5, float jarg6) {
259 Dali::WidgetView::WidgetViewManager *arg1 = (Dali::WidgetView::WidgetViewManager *) 0 ;
260 std::string *arg2 = 0 ;
261 std::string *arg3 = 0 ;
265 Dali::WidgetView::WidgetView result;
267 arg1 = (Dali::WidgetView::WidgetViewManager *)jarg1;
269 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
272 std::string arg2_str(jarg2);
275 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
278 std::string arg3_str(jarg3);
285 result = (arg1)->AddWidget((std::string const &)*arg2,(std::string const &)*arg3,arg4,arg5,arg6);
286 } catch (std::out_of_range& e) {
288 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
290 } catch (std::exception& e) {
292 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
294 } catch (Dali::DaliException e) {
296 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
300 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
305 jresult = new Dali::WidgetView::WidgetView((const Dali::WidgetView::WidgetView &)result);