2 * Copyright (c) 2018 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 <dali-toolkit/devel-api/layouting/layout-group.h>
25 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_LayoutGroupWrapper_UNKNOWN_ID_get() {
26 unsigned int jresult ;
29 result = (unsigned int)Dali::Toolkit::LayoutGroup::UNKNOWN_ID;
35 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LayoutGroupWrapper_ChildProperty() {
37 Dali::Toolkit::LayoutGroup::ChildProperty *result = 0 ;
41 result = (Dali::Toolkit::LayoutGroup::ChildProperty *)new Dali::Toolkit::LayoutGroup::ChildProperty();
42 } catch (std::out_of_range& e) {
44 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
46 } catch (std::exception& e) {
48 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
52 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
56 jresult = (void *)result;
61 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_LayoutGroupWrapper_ChildProperty(void * jarg1) {
62 Dali::Toolkit::LayoutGroup::ChildProperty *arg1 = (Dali::Toolkit::LayoutGroup::ChildProperty *) 0 ;
64 arg1 = (Dali::Toolkit::LayoutGroup::ChildProperty *)jarg1;
68 } catch (std::out_of_range& e) {
70 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
72 } catch (std::exception& e) {
74 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
78 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
85 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LayoutGroupWrapper__SWIG_0() {
87 Dali::Toolkit::LayoutGroup *result = 0 ;
91 result = (Dali::Toolkit::LayoutGroup *)new Dali::Toolkit::LayoutGroup();
92 } catch (std::out_of_range& e) {
94 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
96 } catch (std::exception& e) {
98 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
102 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
106 jresult = (void *)result;
111 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_LayoutGroupWrapper(void * jarg1) {
112 Dali::Toolkit::LayoutGroup *arg1 = (Dali::Toolkit::LayoutGroup *) 0 ;
114 arg1 = (Dali::Toolkit::LayoutGroup *)jarg1;
118 } catch (std::out_of_range& e) {
120 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
122 } catch (std::exception& e) {
124 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
128 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
135 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LayoutGroupWrapper__SWIG_1(void * jarg1) {
137 Dali::Toolkit::LayoutGroup *arg1 = 0 ;
138 Dali::Toolkit::LayoutGroup *result = 0 ;
140 arg1 = (Dali::Toolkit::LayoutGroup *)jarg1;
142 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::LayoutGroup const & type is null", 0);
147 result = (Dali::Toolkit::LayoutGroup *)new Dali::Toolkit::LayoutGroup((Dali::Toolkit::LayoutGroup const &)*arg1);
148 } catch (std::out_of_range& e) {
150 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
152 } catch (std::exception& e) {
154 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
158 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
162 jresult = (void *)result;
167 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutGroupWrapper_Assign(void * jarg1, void * jarg2) {
169 Dali::Toolkit::LayoutGroup *arg1 = (Dali::Toolkit::LayoutGroup *) 0 ;
170 Dali::Toolkit::LayoutGroup *arg2 = 0 ;
171 Dali::Toolkit::LayoutGroup *result = 0 ;
173 arg1 = (Dali::Toolkit::LayoutGroup *)jarg1;
174 arg2 = (Dali::Toolkit::LayoutGroup *)jarg2;
176 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::LayoutGroup const & type is null", 0);
181 result = (Dali::Toolkit::LayoutGroup *) &(arg1)->operator =((Dali::Toolkit::LayoutGroup const &)*arg2);
182 } catch (std::out_of_range& e) {
184 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
186 } catch (std::exception& e) {
188 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
192 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
196 jresult = (void *)result;
201 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutGroupWrapper_DownCast(void * jarg1) {
203 Dali::BaseHandle arg1 ;
204 Dali::BaseHandle *argp1 ;
205 Dali::Toolkit::LayoutGroup result;
207 argp1 = (Dali::BaseHandle *)jarg1;
209 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0);
215 result = Dali::Toolkit::LayoutGroup::DownCast(arg1);
216 } catch (std::out_of_range& e) {
218 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
220 } catch (std::exception& e) {
222 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
226 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
230 jresult = new Dali::Toolkit::LayoutGroup((const Dali::Toolkit::LayoutGroup &)result);
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;
241 arg1 = (Dali::Toolkit::LayoutGroup *)jarg1;
242 arg2 = (Dali::Toolkit::LayoutItem *)jarg2;
244 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::LayoutItem & type is null", 0);
249 result = (Dali::Toolkit::LayoutGroup::LayoutId)(arg1)->Add(*arg2);
250 } catch (std::out_of_range& e) {
252 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
254 } catch (std::exception& e) {
256 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
260 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
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 ;
273 arg1 = (Dali::Toolkit::LayoutGroup *)jarg1;
274 arg2 = (Dali::Toolkit::LayoutGroup::LayoutId)jarg2;
277 (arg1)->Remove(arg2);
278 } catch (std::out_of_range& e) {
280 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
282 } catch (std::exception& e) {
284 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
288 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
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 ;
299 arg1 = (Dali::Toolkit::LayoutGroup *)jarg1;
300 arg2 = (Dali::Toolkit::LayoutItem *)jarg2;
302 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::LayoutItem & type is null", 0);
307 (arg1)->Remove(*arg2);
308 } catch (std::out_of_range& e) {
310 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
312 } catch (std::exception& e) {
314 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
318 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
325 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutGroupWrapper_GetChildAt(void * jarg1, unsigned int jarg2) {
327 Dali::Toolkit::LayoutGroup *arg1 = (Dali::Toolkit::LayoutGroup *) 0 ;
329 Dali::Toolkit::LayoutItem result;
331 arg1 = (Dali::Toolkit::LayoutGroup *)jarg1;
332 arg2 = (unsigned int)jarg2;
335 result = ((Dali::Toolkit::LayoutGroup const *)arg1)->GetChildAt(arg2);
336 } catch (std::out_of_range& e) {
338 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
340 } catch (std::exception& e) {
342 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
346 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
350 jresult = new Dali::Toolkit::LayoutItem((const Dali::Toolkit::LayoutItem &)result);
355 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_LayoutGroupWrapper_GetChildCount(void * jarg1) {
356 unsigned int jresult ;
357 Dali::Toolkit::LayoutGroup *arg1 = (Dali::Toolkit::LayoutGroup *) 0 ;
360 arg1 = (Dali::Toolkit::LayoutGroup *)jarg1;
363 result = (unsigned int)((Dali::Toolkit::LayoutGroup const *)arg1)->GetChildCount();
364 } catch (std::out_of_range& e) {
366 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
368 } catch (std::exception& e) {
370 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
374 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
383 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutGroupWrapper_GetChild(void * jarg1, unsigned int jarg2) {
385 Dali::Toolkit::LayoutGroup *arg1 = (Dali::Toolkit::LayoutGroup *) 0 ;
386 Dali::Toolkit::LayoutGroup::LayoutId arg2 ;
387 Dali::Toolkit::LayoutItem result;
389 arg1 = (Dali::Toolkit::LayoutGroup *)jarg1;
390 arg2 = (Dali::Toolkit::LayoutGroup::LayoutId)jarg2;
393 result = ((Dali::Toolkit::LayoutGroup const *)arg1)->GetChild(arg2);
394 } catch (std::out_of_range& e) {
396 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
398 } catch (std::exception& e) {
400 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
404 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
408 jresult = new Dali::Toolkit::LayoutItem((const Dali::Toolkit::LayoutItem &)result);
413 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LayoutGroupWrapper__SWIG_2(void * jarg1) {
415 Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
416 Dali::Toolkit::LayoutGroup *result = 0 ;
418 arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
421 result = (Dali::Toolkit::LayoutGroup *)new Dali::Toolkit::LayoutGroup(arg1);
422 } catch (std::out_of_range& e) {
424 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
426 } catch (std::exception& e) {
428 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
432 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
436 jresult = (void *)result;
440 SWIGEXPORT Dali::Toolkit::LayoutItem * SWIGSTDCALL CSharp_Dali_LayoutGroupWrapper_SWIGUpcast(Dali::Toolkit::LayoutGroup *jarg1) {
441 return (Dali::Toolkit::LayoutItem *)jarg1;