DALi Version 1.4.16
[platform/core/uifw/dali-csharp-binder.git] / dali-csharp-binder / src / layout-group-wrapper.cpp
1 /*
2  * Copyright (c) 2018 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17
18 #include "common.h"
19 #include <dali-toolkit/devel-api/layouting/layout-group.h>
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_LayoutGroupWrapper_UNKNOWN_ID_get() {
26   unsigned int jresult ;
27   unsigned int result;
28
29   result = (unsigned int)Dali::Toolkit::LayoutGroup::UNKNOWN_ID;
30   jresult = result;
31   return jresult;
32 }
33
34
35 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LayoutGroupWrapper_ChildProperty() {
36   void * jresult ;
37   Dali::Toolkit::LayoutGroup::ChildProperty *result = 0 ;
38
39   {
40     try {
41       result = (Dali::Toolkit::LayoutGroup::ChildProperty *)new Dali::Toolkit::LayoutGroup::ChildProperty();
42     } catch (std::out_of_range& e) {
43       {
44         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
45       };
46     } catch (std::exception& e) {
47       {
48         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
49       };
50     } catch (...) {
51       {
52         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
53       };
54     }
55   }
56   jresult = (void *)result;
57   return jresult;
58 }
59
60
61 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_LayoutGroupWrapper_ChildProperty(void * jarg1) {
62   Dali::Toolkit::LayoutGroup::ChildProperty *arg1 = (Dali::Toolkit::LayoutGroup::ChildProperty *) 0 ;
63
64   arg1 = (Dali::Toolkit::LayoutGroup::ChildProperty *)jarg1;
65   {
66     try {
67       delete arg1;
68     } catch (std::out_of_range& e) {
69       {
70         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
71       };
72     } catch (std::exception& e) {
73       {
74         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
75       };
76     } catch (...) {
77       {
78         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
79       };
80     }
81   }
82 }
83
84
85 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LayoutGroupWrapper__SWIG_0() {
86   void * jresult ;
87   Dali::Toolkit::LayoutGroup *result = 0 ;
88
89   {
90     try {
91       result = (Dali::Toolkit::LayoutGroup *)new Dali::Toolkit::LayoutGroup();
92     } catch (std::out_of_range& e) {
93       {
94         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
95       };
96     } catch (std::exception& e) {
97       {
98         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
99       };
100     } catch (...) {
101       {
102         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
103       };
104     }
105   }
106   jresult = (void *)result;
107   return jresult;
108 }
109
110
111 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_LayoutGroupWrapper(void * jarg1) {
112   Dali::Toolkit::LayoutGroup *arg1 = (Dali::Toolkit::LayoutGroup *) 0 ;
113
114   arg1 = (Dali::Toolkit::LayoutGroup *)jarg1;
115   {
116     try {
117       delete arg1;
118     } catch (std::out_of_range& e) {
119       {
120         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
121       };
122     } catch (std::exception& e) {
123       {
124         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
125       };
126     } catch (...) {
127       {
128         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
129       };
130     }
131   }
132 }
133
134
135 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LayoutGroupWrapper__SWIG_1(void * jarg1) {
136   void * jresult ;
137   Dali::Toolkit::LayoutGroup *arg1 = 0 ;
138   Dali::Toolkit::LayoutGroup *result = 0 ;
139
140   arg1 = (Dali::Toolkit::LayoutGroup *)jarg1;
141   if (!arg1) {
142     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::LayoutGroup const & type is null", 0);
143     return 0;
144   }
145   {
146     try {
147       result = (Dali::Toolkit::LayoutGroup *)new Dali::Toolkit::LayoutGroup((Dali::Toolkit::LayoutGroup const &)*arg1);
148     } catch (std::out_of_range& e) {
149       {
150         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
151       };
152     } catch (std::exception& e) {
153       {
154         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
155       };
156     } catch (...) {
157       {
158         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
159       };
160     }
161   }
162   jresult = (void *)result;
163   return jresult;
164 }
165
166
167 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutGroupWrapper_Assign(void * jarg1, void * jarg2) {
168   void * jresult ;
169   Dali::Toolkit::LayoutGroup *arg1 = (Dali::Toolkit::LayoutGroup *) 0 ;
170   Dali::Toolkit::LayoutGroup *arg2 = 0 ;
171   Dali::Toolkit::LayoutGroup *result = 0 ;
172
173   arg1 = (Dali::Toolkit::LayoutGroup *)jarg1;
174   arg2 = (Dali::Toolkit::LayoutGroup *)jarg2;
175   if (!arg2) {
176     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::LayoutGroup const & type is null", 0);
177     return 0;
178   }
179   {
180     try {
181       result = (Dali::Toolkit::LayoutGroup *) &(arg1)->operator =((Dali::Toolkit::LayoutGroup const &)*arg2);
182     } catch (std::out_of_range& e) {
183       {
184         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
185       };
186     } catch (std::exception& e) {
187       {
188         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
189       };
190     } catch (...) {
191       {
192         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
193       };
194     }
195   }
196   jresult = (void *)result;
197   return jresult;
198 }
199
200
201 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutGroupWrapper_DownCast(void * jarg1) {
202   void * jresult ;
203   Dali::BaseHandle arg1 ;
204   Dali::BaseHandle *argp1 ;
205   Dali::Toolkit::LayoutGroup result;
206
207   argp1 = (Dali::BaseHandle *)jarg1;
208   if (!argp1) {
209     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0);
210     return 0;
211   }
212   arg1 = *argp1;
213   {
214     try {
215       result = Dali::Toolkit::LayoutGroup::DownCast(arg1);
216     } catch (std::out_of_range& e) {
217       {
218         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
219       };
220     } catch (std::exception& e) {
221       {
222         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
223       };
224     } catch (...) {
225       {
226         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
227       };
228     }
229   }
230   jresult = new Dali::Toolkit::LayoutGroup((const Dali::Toolkit::LayoutGroup &)result);
231   return jresult;
232 }
233
234
235 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_LayoutGroupWrapper_Add(void * jarg1, void * jarg2) {
236   unsigned int jresult ;
237   Dali::Toolkit::LayoutGroup *arg1 = (Dali::Toolkit::LayoutGroup *) 0 ;
238   Dali::Toolkit::LayoutItem *arg2 = 0 ;
239   Dali::Toolkit::LayoutGroup::LayoutId result;
240
241   arg1 = (Dali::Toolkit::LayoutGroup *)jarg1;
242   arg2 = (Dali::Toolkit::LayoutItem *)jarg2;
243   if (!arg2) {
244     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::LayoutItem & type is null", 0);
245     return 0;
246   }
247   {
248     try {
249       result = (Dali::Toolkit::LayoutGroup::LayoutId)(arg1)->Add(*arg2);
250     } catch (std::out_of_range& e) {
251       {
252         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
253       };
254     } catch (std::exception& e) {
255       {
256         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
257       };
258     } catch (...) {
259       {
260         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
261       };
262     }
263   }
264   jresult = result;
265   return jresult;
266 }
267
268
269 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapper_Remove__SWIG_0(void * jarg1, unsigned int jarg2) {
270   Dali::Toolkit::LayoutGroup *arg1 = (Dali::Toolkit::LayoutGroup *) 0 ;
271   Dali::Toolkit::LayoutGroup::LayoutId arg2 ;
272
273   arg1 = (Dali::Toolkit::LayoutGroup *)jarg1;
274   arg2 = (Dali::Toolkit::LayoutGroup::LayoutId)jarg2;
275   {
276     try {
277       (arg1)->Remove(arg2);
278     } catch (std::out_of_range& e) {
279       {
280         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
281       };
282     } catch (std::exception& e) {
283       {
284         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
285       };
286     } catch (...) {
287       {
288         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
289       };
290     }
291   }
292 }
293
294
295 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapper_Remove__SWIG_1(void * jarg1, void * jarg2) {
296   Dali::Toolkit::LayoutGroup *arg1 = (Dali::Toolkit::LayoutGroup *) 0 ;
297   Dali::Toolkit::LayoutItem *arg2 = 0 ;
298
299   arg1 = (Dali::Toolkit::LayoutGroup *)jarg1;
300   arg2 = (Dali::Toolkit::LayoutItem *)jarg2;
301   if (!arg2) {
302     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::LayoutItem & type is null", 0);
303     return ;
304   }
305   {
306     try {
307       (arg1)->Remove(*arg2);
308     } catch (std::out_of_range& e) {
309       {
310         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
311       };
312     } catch (std::exception& e) {
313       {
314         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
315       };
316     } catch (...) {
317       {
318         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
319       };
320     }
321   }
322 }
323
324
325 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutGroupWrapper_GetChildAt(void * jarg1, unsigned int jarg2) {
326   void * jresult ;
327   Dali::Toolkit::LayoutGroup *arg1 = (Dali::Toolkit::LayoutGroup *) 0 ;
328   unsigned int arg2 ;
329   Dali::Toolkit::LayoutItem result;
330
331   arg1 = (Dali::Toolkit::LayoutGroup *)jarg1;
332   arg2 = (unsigned int)jarg2;
333   {
334     try {
335       result = ((Dali::Toolkit::LayoutGroup const *)arg1)->GetChildAt(arg2);
336     } catch (std::out_of_range& e) {
337       {
338         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
339       };
340     } catch (std::exception& e) {
341       {
342         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
343       };
344     } catch (...) {
345       {
346         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
347       };
348     }
349   }
350   jresult = new Dali::Toolkit::LayoutItem((const Dali::Toolkit::LayoutItem &)result);
351   return jresult;
352 }
353
354
355 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_LayoutGroupWrapper_GetChildCount(void * jarg1) {
356   unsigned int jresult ;
357   Dali::Toolkit::LayoutGroup *arg1 = (Dali::Toolkit::LayoutGroup *) 0 ;
358   unsigned int result;
359
360   arg1 = (Dali::Toolkit::LayoutGroup *)jarg1;
361   {
362     try {
363       result = (unsigned int)((Dali::Toolkit::LayoutGroup const *)arg1)->GetChildCount();
364     } catch (std::out_of_range& e) {
365       {
366         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
367       };
368     } catch (std::exception& e) {
369       {
370         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
371       };
372     } catch (...) {
373       {
374         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
375       };
376     }
377   }
378   jresult = result;
379   return jresult;
380 }
381
382
383 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutGroupWrapper_GetChild(void * jarg1, unsigned int jarg2) {
384   void * jresult ;
385   Dali::Toolkit::LayoutGroup *arg1 = (Dali::Toolkit::LayoutGroup *) 0 ;
386   Dali::Toolkit::LayoutGroup::LayoutId arg2 ;
387   Dali::Toolkit::LayoutItem result;
388
389   arg1 = (Dali::Toolkit::LayoutGroup *)jarg1;
390   arg2 = (Dali::Toolkit::LayoutGroup::LayoutId)jarg2;
391   {
392     try {
393       result = ((Dali::Toolkit::LayoutGroup const *)arg1)->GetChild(arg2);
394     } catch (std::out_of_range& e) {
395       {
396         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
397       };
398     } catch (std::exception& e) {
399       {
400         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
401       };
402     } catch (...) {
403       {
404         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
405       };
406     }
407   }
408   jresult = new Dali::Toolkit::LayoutItem((const Dali::Toolkit::LayoutItem &)result);
409   return jresult;
410 }
411
412
413 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LayoutGroupWrapper__SWIG_2(void * jarg1) {
414   void * jresult ;
415   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
416   Dali::Toolkit::LayoutGroup *result = 0 ;
417
418   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
419   {
420     try {
421       result = (Dali::Toolkit::LayoutGroup *)new Dali::Toolkit::LayoutGroup(arg1);
422     } catch (std::out_of_range& e) {
423       {
424         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
425       };
426     } catch (std::exception& e) {
427       {
428         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
429       };
430     } catch (...) {
431       {
432         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
433       };
434     }
435   }
436   jresult = (void *)result;
437   return jresult;
438 }
439
440 SWIGEXPORT Dali::Toolkit::LayoutItem * SWIGSTDCALL CSharp_Dali_LayoutGroupWrapper_SWIGUpcast(Dali::Toolkit::LayoutGroup *jarg1) {
441     return (Dali::Toolkit::LayoutItem *)jarg1;
442 }
443
444 #ifdef __cplusplus
445 }
446 #endif