[dali_1.3.29] Merge branch 'devel/master'
[platform/core/uifw/dali-csharp-binder.git] / dali-csharp-binder / src / layout-item-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-item-impl.h>
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutParent_GetParent(void * jarg1) {
26   void * jresult ;
27   Dali::Toolkit::Internal::LayoutParent *arg1 = (Dali::Toolkit::Internal::LayoutParent *) 0 ;
28   Dali::Toolkit::Internal::LayoutParent *result = 0 ;
29
30   arg1 = (Dali::Toolkit::Internal::LayoutParent *)jarg1;
31   {
32     try {
33       result = (Dali::Toolkit::Internal::LayoutParent *)(arg1)->GetParent();
34     } catch (std::out_of_range& e) {
35       {
36         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
37       };
38     } catch (std::exception& e) {
39       {
40         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
41       };
42     } catch (...) {
43       {
44         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
45       };
46     }
47   }
48   jresult = (void *)result;
49   return jresult;
50 }
51
52 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_LayoutItemWrapper_ChildProperty_WIDTH_SPECIFICATION_get() {
53   int jresult ;
54   int result;
55
56   result = (int)Dali::Toolkit::LayoutItem::ChildProperty::WIDTH_SPECIFICATION;
57   jresult = (int)result;
58   return jresult;
59 }
60
61
62 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_LayoutItemWrapper_ChildProperty_HEIGHT_SPECIFICATION_get() {
63   int jresult ;
64   int result;
65
66   result = (int)Dali::Toolkit::LayoutItem::ChildProperty::HEIGHT_SPECIFICATION;
67   jresult = (int)result;
68   return jresult;
69 }
70
71 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LayoutItemWrapper_ChildProperty() {
72   void * jresult ;
73   Dali::Toolkit::LayoutItem::ChildProperty *result = 0 ;
74
75   {
76     try {
77       result = (Dali::Toolkit::LayoutItem::ChildProperty *)new Dali::Toolkit::LayoutItem::ChildProperty();
78     } catch (std::out_of_range& e) {
79       {
80         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
81       };
82     } catch (std::exception& e) {
83       {
84         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
85       };
86     } catch (...) {
87       {
88         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
89       };
90     }
91   }
92   jresult = (void *)result;
93   return jresult;
94 }
95
96
97 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_LayoutItemWrapper_ChildProperty(void * jarg1) {
98   Dali::Toolkit::LayoutItem::ChildProperty *arg1 = (Dali::Toolkit::LayoutItem::ChildProperty *) 0 ;
99
100   arg1 = (Dali::Toolkit::LayoutItem::ChildProperty *)jarg1;
101   {
102     try {
103       delete arg1;
104     } catch (std::out_of_range& e) {
105       {
106         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
107       };
108     } catch (std::exception& e) {
109       {
110         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
111       };
112     } catch (...) {
113       {
114         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
115       };
116     }
117   }
118 }
119
120
121 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LayoutItemWrapper__SWIG_0() {
122   void * jresult ;
123   Dali::Toolkit::LayoutItem *result = 0 ;
124
125   {
126     try {
127       result = (Dali::Toolkit::LayoutItem *)new Dali::Toolkit::LayoutItem();
128     } catch (std::out_of_range& e) {
129       {
130         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
131       };
132     } catch (std::exception& e) {
133       {
134         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
135       };
136     } catch (...) {
137       {
138         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
139       };
140     }
141   }
142   jresult = (void *)result;
143   return jresult;
144 }
145
146
147 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_LayoutItemWrapper(void * jarg1) {
148   Dali::Toolkit::LayoutItem *arg1 = (Dali::Toolkit::LayoutItem *) 0 ;
149
150   arg1 = (Dali::Toolkit::LayoutItem *)jarg1;
151   {
152     try {
153       delete arg1;
154     } catch (std::out_of_range& e) {
155       {
156         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
157       };
158     } catch (std::exception& e) {
159       {
160         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
161       };
162     } catch (...) {
163       {
164         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
165       };
166     }
167   }
168 }
169
170
171 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutItemWrapper_New(void * jarg1) {
172   void * jresult ;
173   Dali::Handle *arg1 = 0 ;
174   Dali::Toolkit::LayoutItem result;
175
176   arg1 = (Dali::Handle *)jarg1;
177   if (!arg1) {
178     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Handle & type is null", 0);
179     return 0;
180   }
181   {
182     try {
183       result = Dali::Toolkit::LayoutItem::New(*arg1);
184     } catch (std::out_of_range& e) {
185       {
186         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
187       };
188     } catch (std::exception& e) {
189       {
190         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
191       };
192     } catch (...) {
193       {
194         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
195       };
196     }
197   }
198   jresult = new Dali::Toolkit::LayoutItem((const Dali::Toolkit::LayoutItem &)result);
199   return jresult;
200 }
201
202
203 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LayoutItemWrapper__SWIG_1(void * jarg1) {
204   void * jresult ;
205   Dali::Toolkit::LayoutItem *arg1 = 0 ;
206   Dali::Toolkit::LayoutItem *result = 0 ;
207
208   arg1 = (Dali::Toolkit::LayoutItem *)jarg1;
209   if (!arg1) {
210     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::LayoutItem const & type is null", 0);
211     return 0;
212   }
213   {
214     try {
215       result = (Dali::Toolkit::LayoutItem *)new Dali::Toolkit::LayoutItem((Dali::Toolkit::LayoutItem const &)*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 = (void *)result;
231   return jresult;
232 }
233
234
235 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutItemWrapper_Assign(void * jarg1, void * jarg2) {
236   void * jresult ;
237   Dali::Toolkit::LayoutItem *arg1 = (Dali::Toolkit::LayoutItem *) 0 ;
238   Dali::Toolkit::LayoutItem *arg2 = 0 ;
239   Dali::Toolkit::LayoutItem *result = 0 ;
240
241   arg1 = (Dali::Toolkit::LayoutItem *)jarg1;
242   arg2 = (Dali::Toolkit::LayoutItem *)jarg2;
243   if (!arg2) {
244     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::LayoutItem const & type is null", 0);
245     return 0;
246   }
247   {
248     try {
249       result = (Dali::Toolkit::LayoutItem *) &(arg1)->operator =((Dali::Toolkit::LayoutItem const &)*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 = (void *)result;
265   return jresult;
266 }
267
268 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutItemWrapper_GetOwner(void * jarg1) {
269   void * jresult ;
270   Dali::Toolkit::LayoutItem *arg1 = (Dali::Toolkit::LayoutItem *) 0 ;
271   Dali::Handle result;
272
273   arg1 = (Dali::Toolkit::LayoutItem *)jarg1;
274   {
275     try {
276       result = ((Dali::Toolkit::LayoutItem const *)arg1)->GetOwner();
277     } catch (std::out_of_range& e) {
278       {
279         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
280       };
281     } catch (std::exception& e) {
282       {
283         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
284       };
285     } catch (...) {
286       {
287         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
288       };
289     }
290   }
291   jresult = new Dali::Handle((const Dali::Handle &)result);
292   return jresult;
293 }
294
295 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutItemWrapper_SetAnimateLayout(void * jarg1, unsigned int jarg2) {
296   Dali::Toolkit::LayoutItem *arg1 = (Dali::Toolkit::LayoutItem *) 0 ;
297   bool arg2 ;
298
299   arg1 = (Dali::Toolkit::LayoutItem *)jarg1;
300   arg2 = jarg2 ? true : false;
301   {
302     try {
303       (arg1)->SetAnimateLayout(arg2);
304     } catch (std::out_of_range& e) {
305       {
306         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
307       };
308     } catch (std::exception& e) {
309       {
310         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
311       };
312     } catch (...) {
313       {
314         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
315       };
316     }
317   }
318 }
319
320
321 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_LayoutItemWrapper_IsLayoutAnimated(void * jarg1) {
322   unsigned int jresult ;
323   Dali::Toolkit::LayoutItem *arg1 = (Dali::Toolkit::LayoutItem *) 0 ;
324   bool result;
325
326   arg1 = (Dali::Toolkit::LayoutItem *)jarg1;
327   {
328     try {
329       result = (bool)((Dali::Toolkit::LayoutItem const *)arg1)->IsLayoutAnimated();
330     } catch (std::out_of_range& e) {
331       {
332         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
333       };
334     } catch (std::exception& e) {
335       {
336         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
337       };
338     } catch (...) {
339       {
340         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
341       };
342     }
343   }
344   jresult = result;
345   return jresult;
346 }
347
348
349 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LayoutItemWrapper__SWIG_2(void * jarg1) {
350   void * jresult ;
351   Dali::Toolkit::Internal::LayoutItem *arg1 = (Dali::Toolkit::Internal::LayoutItem *) 0 ;
352   Dali::Toolkit::LayoutItem *result = 0 ;
353
354   arg1 = (Dali::Toolkit::Internal::LayoutItem *)jarg1;
355   {
356     try {
357       result = (Dali::Toolkit::LayoutItem *)new Dali::Toolkit::LayoutItem(arg1);
358     } catch (std::out_of_range& e) {
359       {
360         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
361       };
362     } catch (std::exception& e) {
363       {
364         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
365       };
366     } catch (...) {
367       {
368         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
369       };
370     }
371   }
372   jresult = (void *)result;
373   return jresult;
374 }
375
376 SWIGEXPORT Dali::BaseHandle * SWIGSTDCALL CSharp_Dali_LayoutItemWrapper_SWIGUpcast(Dali::Toolkit::LayoutItem *jarg1) {
377     return (Dali::BaseHandle *)jarg1;
378 }
379
380 #ifdef __cplusplus
381 }
382 #endif
383