[dali_1.3.29] Merge branch 'devel/master'
[platform/core/uifw/dali-csharp-binder.git] / dali-csharp-binder / src / layout-group-wrapper-impl.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 // CLASS HEADER
19 #include "layout-group-wrapper-impl.h"
20
21 // INTERNAL INCLUDES
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 extern SWIG_CSharpStringHelperCallback SWIG_csharp_string_callback;
28
29 using namespace Dali::Toolkit;
30
31 SwigDirector_LayoutGroupWrapperImpl::SwigDirector_LayoutGroupWrapperImpl() : Dali::Toolkit::Internal::LayoutGroup()
32 {
33   swig_init_callbacks();
34 }
35
36 SwigDirector_LayoutGroupWrapperImpl::~SwigDirector_LayoutGroupWrapperImpl()
37 {
38
39 }
40
41 Dali::Toolkit::Internal::LayoutParent *SwigDirector_LayoutGroupWrapperImpl::GetParent()
42 {
43   Dali::Toolkit::Internal::LayoutParent *c_result = 0 ;
44   void * jresult = 0 ;
45
46   if (!swig_callbackGetParent)
47   {
48     return Dali::Toolkit::Internal::LayoutItem::GetParent();
49   }
50   else
51   {
52     jresult = (void *) swig_callbackGetParent();
53     c_result = (Dali::Toolkit::Internal::LayoutParent *)jresult;
54   }
55   return c_result;
56 }
57
58 void SwigDirector_LayoutGroupWrapperImpl::OnMeasure(Dali::Toolkit::MeasureSpec widthMeasureSpec, Dali::Toolkit::MeasureSpec heightMeasureSpec)
59 {
60   void * jwidthMeasureSpec  ;
61   void * jheightMeasureSpec  ;
62
63   if (!swig_callbackOnMeasure)
64   {
65     Dali::Toolkit::Internal::LayoutItem::OnMeasure(widthMeasureSpec,heightMeasureSpec);
66     return;
67   }
68   else
69   {
70     jwidthMeasureSpec = (void *)new Dali::Toolkit::MeasureSpec((const Dali::Toolkit::MeasureSpec &)widthMeasureSpec);
71     jheightMeasureSpec = (void *)new Dali::Toolkit::MeasureSpec((const Dali::Toolkit::MeasureSpec &)heightMeasureSpec);
72     swig_callbackOnMeasure(jwidthMeasureSpec, jheightMeasureSpec);
73   }
74 }
75
76 void SwigDirector_LayoutGroupWrapperImpl::OnLayout(bool changed, Dali::Toolkit::LayoutLength left, Dali::Toolkit::LayoutLength top, Dali::Toolkit::LayoutLength right, Dali::Toolkit::LayoutLength bottom)
77 {
78   unsigned int jchanged  ;
79   void * jleft  ;
80   void * jtop  ;
81   void * jright  ;
82   void * jbottom  ;
83
84   if (!swig_callbackOnLayout)
85   {
86     Dali::Toolkit::Internal::LayoutItem::OnLayout(changed,left,top,right,bottom);
87     return;
88   }
89   else
90   {
91     jchanged = changed;
92     jleft = (void *)new Dali::Toolkit::LayoutLength((const Dali::Toolkit::LayoutLength &)left);
93     jtop = (void *)new Dali::Toolkit::LayoutLength((const Dali::Toolkit::LayoutLength &)top);
94     jright = (void *)new Dali::Toolkit::LayoutLength((const Dali::Toolkit::LayoutLength &)right);
95     jbottom = (void *)new Dali::Toolkit::LayoutLength((const Dali::Toolkit::LayoutLength &)bottom);
96     swig_callbackOnLayout(jchanged, jleft, jtop, jright, jbottom);
97   }
98 }
99
100 void SwigDirector_LayoutGroupWrapperImpl::OnSizeChanged(LayoutSize newSize, LayoutSize oldSize)
101 {
102   void * jnewSize  ;
103   void * joldSize  ;
104
105   if (!swig_callbackOnSizeChanged)
106   {
107     Dali::Toolkit::Internal::LayoutItem::OnSizeChanged(newSize,oldSize);
108     return;
109   }
110   else
111   {
112     jnewSize = (void *)new LayoutSize((const LayoutSize &)newSize);
113     joldSize = (void *)new LayoutSize((const LayoutSize &)oldSize);
114     swig_callbackOnSizeChanged(jnewSize, joldSize);
115   }
116 }
117
118 void SwigDirector_LayoutGroupWrapperImpl::OnChildAdd(Dali::Toolkit::Internal::LayoutItem &child)
119 {
120   void * jchild = 0 ;
121
122   if (!swig_callbackOnChildAdd)
123   {
124     Dali::Toolkit::Internal::LayoutGroup::OnChildAdd(child);
125     return;
126   }
127   else
128   {
129     jchild = (Dali::Toolkit::Internal::LayoutItem *) &child;
130     swig_callbackOnChildAdd(jchild);
131   }
132 }
133
134 void SwigDirector_LayoutGroupWrapperImpl::OnChildRemove(Dali::Toolkit::Internal::LayoutItem &child)
135 {
136   void * jchild = 0 ;
137
138   if (!swig_callbackOnChildRemove)
139   {
140     Dali::Toolkit::Internal::LayoutGroup::OnChildRemove(child);
141     return;
142   }
143   else
144   {
145     jchild = (Dali::Toolkit::Internal::LayoutItem *) &child;
146     swig_callbackOnChildRemove(jchild);
147   }
148 }
149
150 void SwigDirector_LayoutGroupWrapperImpl::DoInitialize()
151 {
152   if (!swig_callbackDoInitialize)
153   {
154     Dali::Toolkit::Internal::LayoutGroup::DoInitialize();
155     return;
156   }
157   else
158   {
159     swig_callbackDoInitialize();
160   }
161 }
162
163 void SwigDirector_LayoutGroupWrapperImpl::DoRegisterChildProperties(std::string const &containerType)
164 {
165   char * jcontainerType = 0 ;
166
167   if (!swig_callbackDoRegisterChildProperties)
168   {
169     Dali::Toolkit::Internal::LayoutGroup::DoRegisterChildProperties(containerType);
170     return;
171   }
172   else
173   {
174     jcontainerType = SWIG_csharp_string_callback((&containerType)->c_str());
175     swig_callbackDoRegisterChildProperties(jcontainerType);
176   }
177 }
178
179 void SwigDirector_LayoutGroupWrapperImpl::GenerateDefaultChildPropertyValues(Dali::Handle child)
180 {
181   void * jchild  ;
182
183   if (!swig_callbackGenerateDefaultChildPropertyValues)
184   {
185     Dali::Toolkit::Internal::LayoutGroup::GenerateDefaultChildPropertyValues(child);
186     return;
187   }
188   else
189   {
190     jchild = (void *)new Dali::Handle((const Dali::Handle &)child);
191     swig_callbackGenerateDefaultChildPropertyValues(jchild);
192   }
193 }
194
195 void SwigDirector_LayoutGroupWrapperImpl::MeasureChildren(Dali::Toolkit::MeasureSpec widthMeasureSpec, Dali::Toolkit::MeasureSpec heightMeasureSpec)
196 {
197   void * jwidthMeasureSpec  ;
198   void * jheightMeasureSpec  ;
199
200   if (!swig_callbackMeasureChildren)
201   {
202     Dali::Toolkit::Internal::LayoutGroup::MeasureChildren(widthMeasureSpec,heightMeasureSpec);
203     return;
204   }
205   else
206   {
207     jwidthMeasureSpec = (void *)new Dali::Toolkit::MeasureSpec((const Dali::Toolkit::MeasureSpec &)widthMeasureSpec);
208     jheightMeasureSpec = (void *)new Dali::Toolkit::MeasureSpec((const Dali::Toolkit::MeasureSpec &)heightMeasureSpec);
209     swig_callbackMeasureChildren(jwidthMeasureSpec, jheightMeasureSpec);
210   }
211 }
212
213 void SwigDirector_LayoutGroupWrapperImpl::MeasureChild(Dali::Toolkit::Internal::LayoutItemPtr child, Dali::Toolkit::MeasureSpec parentWidthMeasureSpec, Dali::Toolkit::MeasureSpec parentHeightMeasureSpec)
214 {
215   void * jchild  ;
216   void * jparentWidthMeasureSpec  ;
217   void * jparentHeightMeasureSpec  ;
218
219   if (!swig_callbackMeasureChild)
220   {
221     Dali::Toolkit::Internal::LayoutGroup::MeasureChild(child,parentWidthMeasureSpec,parentHeightMeasureSpec);
222     return;
223   }
224   else
225   {
226     jchild = (void *)new Dali::Toolkit::Internal::LayoutItemPtr((const Dali::Toolkit::Internal::LayoutItemPtr &)child);
227     jparentWidthMeasureSpec = (void *)new Dali::Toolkit::MeasureSpec((const Dali::Toolkit::MeasureSpec &)parentWidthMeasureSpec);
228     jparentHeightMeasureSpec = (void *)new Dali::Toolkit::MeasureSpec((const Dali::Toolkit::MeasureSpec &)parentHeightMeasureSpec);
229     swig_callbackMeasureChild(jchild, jparentWidthMeasureSpec, jparentHeightMeasureSpec);
230   }
231 }
232
233 void SwigDirector_LayoutGroupWrapperImpl::MeasureChildWithMargins(Dali::Toolkit::Internal::LayoutItemPtr child, Dali::Toolkit::MeasureSpec parentWidthMeasureSpec, Dali::Toolkit::LayoutLength widthUsed, Dali::Toolkit::MeasureSpec parentHeightMeasureSpec, Dali::Toolkit::LayoutLength heightUsed)
234 {
235   void * jchild  ;
236   void * jparentWidthMeasureSpec  ;
237   void * jwidthUsed  ;
238   void * jparentHeightMeasureSpec  ;
239   void * jheightUsed  ;
240
241   if (!swig_callbackMeasureChildWithMargins)
242   {
243     Dali::Toolkit::Internal::LayoutGroup::MeasureChildWithMargins(child,parentWidthMeasureSpec,widthUsed,parentHeightMeasureSpec,heightUsed);
244     return;
245   }
246   else
247   {
248     jchild = (void *)new Dali::Toolkit::Internal::LayoutItemPtr((const Dali::Toolkit::Internal::LayoutItemPtr &)child);
249     jparentWidthMeasureSpec = (void *)new Dali::Toolkit::MeasureSpec((const Dali::Toolkit::MeasureSpec &)parentWidthMeasureSpec);
250     jwidthUsed = (void *)new Dali::Toolkit::LayoutLength((const Dali::Toolkit::LayoutLength &)widthUsed);
251     jparentHeightMeasureSpec = (void *)new Dali::Toolkit::MeasureSpec((const Dali::Toolkit::MeasureSpec &)parentHeightMeasureSpec);
252     jheightUsed = (void *)new Dali::Toolkit::LayoutLength((const Dali::Toolkit::LayoutLength &)heightUsed);
253     swig_callbackMeasureChildWithMargins(jchild, jparentWidthMeasureSpec, jwidthUsed, jparentHeightMeasureSpec, jheightUsed);
254   }
255 }
256
257 void SwigDirector_LayoutGroupWrapperImpl::swig_connect_director(SWIG_Callback0_t callbackGetParent, SWIG_Callback3_t callbackOnMeasure, SWIG_Callback4_t callbackOnLayout, SWIG_Callback5_t callbackOnSizeChanged, SWIG_Callback6_t callbackOnInitialize, SWIG_Callback7_t callbackOnChildAdd, SWIG_Callback8_t callbackOnChildRemove, SWIG_Callback9_t callbackDoInitialize, SWIG_Callback10_t callbackDoRegisterChildProperties, SWIG_Callback11_t callbackGenerateDefaultChildPropertyValues, SWIG_Callback12_t callbackMeasureChildren, SWIG_Callback13_t callbackMeasureChild, SWIG_Callback14_t callbackMeasureChildWithMargins)
258 {
259   swig_callbackGetParent = callbackGetParent;
260   swig_callbackOnMeasure = callbackOnMeasure;
261   swig_callbackOnLayout = callbackOnLayout;
262   swig_callbackOnSizeChanged = callbackOnSizeChanged;
263   swig_callbackOnInitialize = callbackOnInitialize;
264   swig_callbackOnChildAdd = callbackOnChildAdd;
265   swig_callbackOnChildRemove = callbackOnChildRemove;
266   swig_callbackDoInitialize = callbackDoInitialize;
267   swig_callbackDoRegisterChildProperties = callbackDoRegisterChildProperties;
268   swig_callbackGenerateDefaultChildPropertyValues = callbackGenerateDefaultChildPropertyValues;
269   swig_callbackMeasureChildren = callbackMeasureChildren;
270   swig_callbackMeasureChild = callbackMeasureChild;
271   swig_callbackMeasureChildWithMargins = callbackMeasureChildWithMargins;
272 }
273
274 void SwigDirector_LayoutGroupWrapperImpl::swig_init_callbacks()
275 {
276   swig_callbackGetParent = 0;
277   swig_callbackOnMeasure = 0;
278   swig_callbackOnLayout = 0;
279   swig_callbackOnSizeChanged = 0;
280   swig_callbackOnInitialize = 0;
281   swig_callbackOnChildAdd = 0;
282   swig_callbackOnChildRemove = 0;
283   swig_callbackDoInitialize = 0;
284   swig_callbackDoRegisterChildProperties = 0;
285   swig_callbackGenerateDefaultChildPropertyValues = 0;
286   swig_callbackMeasureChildren = 0;
287   swig_callbackMeasureChild = 0;
288   swig_callbackMeasureChildWithMargins = 0;
289 }
290
291
292 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_Add(void * jarg1, void * jarg2) {
293   unsigned int jresult ;
294   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
295   Dali::Toolkit::Internal::LayoutItem *arg2 = 0 ;
296   Dali::Toolkit::LayoutGroup::LayoutId result;
297
298   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
299   arg2 = (Dali::Toolkit::Internal::LayoutItem *)jarg2;
300   if (!arg2) {
301     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Internal::LayoutItem & type is null", 0);
302     return 0;
303   }
304   {
305     try {
306       result = (Dali::Toolkit::LayoutGroup::LayoutId)(arg1)->Add(*arg2);
307     } catch (std::out_of_range& e) {
308       {
309         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
310       };
311     } catch (std::exception& e) {
312       {
313         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
314       };
315     } catch (...) {
316       {
317         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
318       };
319     }
320   }
321   jresult = result;
322   return jresult;
323 }
324
325
326 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_Remove__SWIG_0(void * jarg1, unsigned int jarg2) {
327   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
328   Dali::Toolkit::LayoutGroup::LayoutId arg2 ;
329
330   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
331   arg2 = (Dali::Toolkit::LayoutGroup::LayoutId)jarg2;
332   {
333     try {
334       (arg1)->Remove(arg2);
335     } catch (std::out_of_range& e) {
336       {
337         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
338       };
339     } catch (std::exception& e) {
340       {
341         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
342       };
343     } catch (...) {
344       {
345         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
346       };
347     }
348   }
349 }
350
351
352 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_Remove__SWIG_1(void * jarg1, void * jarg2) {
353   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
354   Dali::Toolkit::Internal::LayoutItem *arg2 = 0 ;
355
356   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
357   arg2 = (Dali::Toolkit::Internal::LayoutItem *)jarg2;
358   if (!arg2) {
359     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Internal::LayoutItem & type is null", 0);
360     return ;
361   }
362   {
363     try {
364       (arg1)->Remove(*arg2);
365     } catch (std::out_of_range& e) {
366       {
367         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
368       };
369     } catch (std::exception& e) {
370       {
371         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
372       };
373     } catch (...) {
374       {
375         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
376       };
377     }
378   }
379 }
380
381
382 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_RemoveAll(void * jarg1) {
383   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
384
385   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
386   {
387     try {
388       (arg1)->RemoveAll();
389     } catch (std::out_of_range& e) {
390       {
391         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
392       };
393     } catch (std::exception& e) {
394       {
395         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
396       };
397     } catch (...) {
398       {
399         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
400       };
401     }
402   }
403 }
404
405
406 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_GetChildCount(void * jarg1) {
407   unsigned int jresult ;
408   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
409   unsigned int result;
410
411   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
412   {
413     try {
414       result = (unsigned int)((Dali::Toolkit::Internal::LayoutGroup const *)arg1)->GetChildCount();
415     } catch (std::out_of_range& e) {
416       {
417         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
418       };
419     } catch (std::exception& e) {
420       {
421         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
422       };
423     } catch (...) {
424       {
425         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
426       };
427     }
428   }
429   jresult = result;
430   return jresult;
431 }
432
433
434 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_GetChildAt(void * jarg1, unsigned int jarg2) {
435   void * jresult ;
436   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
437   unsigned int arg2 ;
438   Dali::Toolkit::Internal::LayoutItemPtr result;
439
440   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
441   arg2 = (unsigned int)jarg2;
442   {
443     try {
444       result = ((Dali::Toolkit::Internal::LayoutGroup const *)arg1)->GetChildAt(arg2);
445     } catch (std::out_of_range& e) {
446       {
447         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
448       };
449     } catch (std::exception& e) {
450       {
451         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
452       };
453     } catch (...) {
454       {
455         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
456       };
457     }
458   }
459   jresult = new Dali::Toolkit::Internal::LayoutItemPtr((const Dali::Toolkit::Internal::LayoutItemPtr &)result);
460   return jresult;
461 }
462
463
464 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_GetChildId(void * jarg1, void * jarg2) {
465   unsigned int jresult ;
466   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
467   Dali::Toolkit::Internal::LayoutItem *arg2 = 0 ;
468   Dali::Toolkit::LayoutGroup::LayoutId result;
469
470   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
471   arg2 = (Dali::Toolkit::Internal::LayoutItem *)jarg2;
472   if (!arg2) {
473     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Internal::LayoutItem & type is null", 0);
474     return 0;
475   }
476   {
477     try {
478       result = (Dali::Toolkit::LayoutGroup::LayoutId)((Dali::Toolkit::Internal::LayoutGroup const *)arg1)->GetChildId(*arg2);
479     } catch (std::out_of_range& e) {
480       {
481         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
482       };
483     } catch (std::exception& e) {
484       {
485         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
486       };
487     } catch (...) {
488       {
489         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
490       };
491     }
492   }
493   jresult = result;
494   return jresult;
495 }
496
497
498 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_GetChild(void * jarg1, unsigned int jarg2) {
499   void * jresult ;
500   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
501   Dali::Toolkit::LayoutGroup::LayoutId arg2 ;
502   Dali::Toolkit::Internal::LayoutItemPtr result;
503
504   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
505   arg2 = (Dali::Toolkit::LayoutGroup::LayoutId)jarg2;
506   {
507     try {
508       result = ((Dali::Toolkit::Internal::LayoutGroup const *)arg1)->GetChild(arg2);
509     } catch (std::out_of_range& e) {
510       {
511         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
512       };
513     } catch (std::exception& e) {
514       {
515         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
516       };
517     } catch (...) {
518       {
519         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
520       };
521     }
522   }
523   jresult = new Dali::Toolkit::Internal::LayoutItemPtr((const Dali::Toolkit::Internal::LayoutItemPtr &)result);
524   return jresult;
525 }
526
527
528 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_OnChildAdd(void * jarg1, void * jarg2) {
529   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
530   Dali::Toolkit::Internal::LayoutItem *arg2 = 0 ;
531
532   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
533   arg2 = (Dali::Toolkit::Internal::LayoutItem *)jarg2;
534   if (!arg2) {
535     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Internal::LayoutItem & type is null", 0);
536     return ;
537   }
538   {
539     try {
540       (arg1)->OnChildAdd(*arg2);
541     } catch (std::out_of_range& e) {
542       {
543         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
544       };
545     } catch (std::exception& e) {
546       {
547         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
548       };
549     } catch (...) {
550       {
551         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
552       };
553     }
554   }
555 }
556
557
558 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_OnChildAddSwigExplicitLayoutGroupWrapperImpl(void * jarg1, void * jarg2) {
559   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
560   Dali::Toolkit::Internal::LayoutItem *arg2 = 0 ;
561
562   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
563   arg2 = (Dali::Toolkit::Internal::LayoutItem *)jarg2;
564   if (!arg2) {
565     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Internal::LayoutItem & type is null", 0);
566     return ;
567   }
568   {
569     try {
570       (arg1)->Dali::Toolkit::Internal::LayoutGroup::OnChildAdd(*arg2);
571     } catch (std::out_of_range& e) {
572       {
573         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
574       };
575     } catch (std::exception& e) {
576       {
577         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
578       };
579     } catch (...) {
580       {
581         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
582       };
583     }
584   }
585 }
586
587
588 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_OnChildRemove(void * jarg1, void * jarg2) {
589   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
590   Dali::Toolkit::Internal::LayoutItem *arg2 = 0 ;
591
592   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
593   arg2 = (Dali::Toolkit::Internal::LayoutItem *)jarg2;
594   if (!arg2) {
595     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Internal::LayoutItem & type is null", 0);
596     return ;
597   }
598   {
599     try {
600       (arg1)->OnChildRemove(*arg2);
601     } catch (std::out_of_range& e) {
602       {
603         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
604       };
605     } catch (std::exception& e) {
606       {
607         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
608       };
609     } catch (...) {
610       {
611         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
612       };
613     }
614   }
615 }
616
617
618 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_OnChildRemoveSwigExplicitLayoutGroupWrapperImpl(void * jarg1, void * jarg2) {
619   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
620   Dali::Toolkit::Internal::LayoutItem *arg2 = 0 ;
621
622   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
623   arg2 = (Dali::Toolkit::Internal::LayoutItem *)jarg2;
624   if (!arg2) {
625     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Internal::LayoutItem & type is null", 0);
626     return ;
627   }
628   {
629     try {
630       (arg1)->Dali::Toolkit::Internal::LayoutGroup::OnChildRemove(*arg2);
631     } catch (std::out_of_range& e) {
632       {
633         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
634       };
635     } catch (std::exception& e) {
636       {
637         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
638       };
639     } catch (...) {
640       {
641         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
642       };
643     }
644   }
645 }
646
647
648 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_GetChildMeasureSpec(void * jarg1, void * jarg2, void * jarg3) {
649   void * jresult ;
650   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg1 ;
651   SwigValueWrapper< Dali::Toolkit::LayoutLength > arg2 ;
652   SwigValueWrapper< Dali::Toolkit::LayoutLength > arg3 ;
653   Dali::Toolkit::MeasureSpec *argp1 ;
654   Dali::Toolkit::LayoutLength *argp2 ;
655   Dali::Toolkit::LayoutLength *argp3 ;
656   SwigValueWrapper< Dali::Toolkit::MeasureSpec > result;
657
658   argp1 = (Dali::Toolkit::MeasureSpec *)jarg1;
659   if (!argp1) {
660     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
661     return 0;
662   }
663   arg1 = *argp1;
664   argp2 = (Dali::Toolkit::LayoutLength *)jarg2;
665   if (!argp2) {
666     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutLength", 0);
667     return 0;
668   }
669   arg2 = *argp2;
670   argp3 = (Dali::Toolkit::LayoutLength *)jarg3;
671   if (!argp3) {
672     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutLength", 0);
673     return 0;
674   }
675   arg3 = *argp3;
676   {
677     try {
678       result = Dali::Toolkit::Internal::LayoutGroup::GetChildMeasureSpec(arg1,arg2,arg3);
679     } catch (std::out_of_range& e) {
680       {
681         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
682       };
683     } catch (std::exception& e) {
684       {
685         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
686       };
687     } catch (...) {
688       {
689         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
690       };
691     }
692   }
693   jresult = new Dali::Toolkit::MeasureSpec((const Dali::Toolkit::MeasureSpec &)result);
694   return jresult;
695 }
696
697
698 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_DoInitialize(void * jarg1) {
699   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
700   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
701
702   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
703   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
704   {
705     try {
706       (darg)->DoInitialize();
707     } catch (std::out_of_range& e) {
708       {
709         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
710       };
711     } catch (std::exception& e) {
712       {
713         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
714       };
715     } catch (...) {
716       {
717         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
718       };
719     }
720   }
721 }
722
723
724 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_DoInitializeSwigExplicitLayoutGroupWrapperImpl(void * jarg1) {
725   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
726   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
727
728   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
729   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
730   {
731     try {
732       (darg)->DoInitializeSwigPublic();
733     } catch (std::out_of_range& e) {
734       {
735         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
736       };
737     } catch (std::exception& e) {
738       {
739         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
740       };
741     } catch (...) {
742       {
743         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
744       };
745     }
746   }
747 }
748
749
750 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_DoRegisterChildProperties(void * jarg1, char * jarg2) {
751   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
752   std::string *arg2 = 0 ;
753   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
754
755   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
756   if (!jarg2) {
757     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
758     return ;
759   }
760   std::string arg2_str(jarg2);
761   arg2 = &arg2_str;
762   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
763   {
764     try {
765       (darg)->DoRegisterChildProperties((std::string const &)*arg2);
766     } catch (std::out_of_range& e) {
767       {
768         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
769       };
770     } catch (std::exception& e) {
771       {
772         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
773       };
774     } catch (...) {
775       {
776         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
777       };
778     }
779   }
780
781   //argout typemap for const std::string&
782
783 }
784
785
786 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_DoRegisterChildPropertiesSwigExplicitLayoutGroupWrapperImpl(void * jarg1, char * jarg2) {
787   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
788   std::string *arg2 = 0 ;
789   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
790
791   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
792   if (!jarg2) {
793     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
794     return ;
795   }
796   std::string arg2_str(jarg2);
797   arg2 = &arg2_str;
798   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
799   {
800     try {
801       (darg)->DoRegisterChildPropertiesSwigPublic((std::string const &)*arg2);
802     } catch (std::out_of_range& e) {
803       {
804         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
805       };
806     } catch (std::exception& e) {
807       {
808         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
809       };
810     } catch (...) {
811       {
812         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
813       };
814     }
815   }
816
817   //argout typemap for const std::string&
818
819 }
820
821
822 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_GenerateDefaultChildPropertyValues(void * jarg1, void * jarg2) {
823   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
824   Dali::Handle arg2 ;
825   Dali::Handle *argp2 ;
826   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
827
828   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
829   argp2 = (Dali::Handle *)jarg2;
830   if (!argp2) {
831     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Handle", 0);
832     return ;
833   }
834   arg2 = *argp2;
835   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
836   {
837     try {
838       (darg)->GenerateDefaultChildPropertyValues(arg2);
839     } catch (std::out_of_range& e) {
840       {
841         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
842       };
843     } catch (std::exception& e) {
844       {
845         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
846       };
847     } catch (...) {
848       {
849         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
850       };
851     }
852   }
853 }
854
855
856 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_GenerateDefaultChildPropertyValuesSwigExplicitLayoutGroupWrapperImpl(void * jarg1, void * jarg2) {
857   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
858   Dali::Handle arg2 ;
859   Dali::Handle *argp2 ;
860   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
861
862   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
863   argp2 = (Dali::Handle *)jarg2;
864   if (!argp2) {
865     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Handle", 0);
866     return ;
867   }
868   arg2 = *argp2;
869   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
870   {
871     try {
872       (darg)->GenerateDefaultChildPropertyValuesSwigPublic(arg2);
873     } catch (std::out_of_range& e) {
874       {
875         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
876       };
877     } catch (std::exception& e) {
878       {
879         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
880       };
881     } catch (...) {
882       {
883         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
884       };
885     }
886   }
887 }
888
889
890 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_MeasureChildren(void * jarg1, void * jarg2, void * jarg3) {
891   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
892   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg2 ;
893   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg3 ;
894   Dali::Toolkit::MeasureSpec *argp2 ;
895   Dali::Toolkit::MeasureSpec *argp3 ;
896   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
897
898   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
899   argp2 = (Dali::Toolkit::MeasureSpec *)jarg2;
900   if (!argp2) {
901     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
902     return ;
903   }
904   arg2 = *argp2;
905   argp3 = (Dali::Toolkit::MeasureSpec *)jarg3;
906   if (!argp3) {
907     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
908     return ;
909   }
910   arg3 = *argp3;
911   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
912   {
913     try {
914       (darg)->MeasureChildren(arg2,arg3);
915     } catch (std::out_of_range& e) {
916       {
917         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
918       };
919     } catch (std::exception& e) {
920       {
921         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
922       };
923     } catch (...) {
924       {
925         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
926       };
927     }
928   }
929 }
930
931
932 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_MeasureChildrenSwigExplicitLayoutGroupWrapperImpl(void * jarg1, void * jarg2, void * jarg3) {
933   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
934   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg2 ;
935   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg3 ;
936   Dali::Toolkit::MeasureSpec *argp2 ;
937   Dali::Toolkit::MeasureSpec *argp3 ;
938   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
939
940   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
941   argp2 = (Dali::Toolkit::MeasureSpec *)jarg2;
942   if (!argp2) {
943     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
944     return ;
945   }
946   arg2 = *argp2;
947   argp3 = (Dali::Toolkit::MeasureSpec *)jarg3;
948   if (!argp3) {
949     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
950     return ;
951   }
952   arg3 = *argp3;
953   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
954   {
955     try {
956       (darg)->MeasureChildrenSwigPublic(arg2,arg3);
957     } catch (std::out_of_range& e) {
958       {
959         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
960       };
961     } catch (std::exception& e) {
962       {
963         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
964       };
965     } catch (...) {
966       {
967         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
968       };
969     }
970   }
971 }
972
973
974 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_MeasureChild(void * jarg1, void * jarg2, void * jarg3, void * jarg4) {
975   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
976   Dali::Toolkit::Internal::LayoutItemPtr arg2 ;
977   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg3 ;
978   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg4 ;
979   Dali::Toolkit::Internal::LayoutItemPtr *argp2 ;
980   Dali::Toolkit::MeasureSpec *argp3 ;
981   Dali::Toolkit::MeasureSpec *argp4 ;
982   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
983
984   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
985   argp2 = (Dali::Toolkit::Internal::LayoutItemPtr *)jarg2;
986   if (!argp2) {
987     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::Internal::LayoutItemPtr", 0);
988     return ;
989   }
990   arg2 = *argp2;
991   argp3 = (Dali::Toolkit::MeasureSpec *)jarg3;
992   if (!argp3) {
993     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
994     return ;
995   }
996   arg3 = *argp3;
997   argp4 = (Dali::Toolkit::MeasureSpec *)jarg4;
998   if (!argp4) {
999     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
1000     return ;
1001   }
1002   arg4 = *argp4;
1003   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
1004   {
1005     try {
1006       (darg)->MeasureChild(arg2,arg3,arg4);
1007     } catch (std::out_of_range& e) {
1008       {
1009         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1010       };
1011     } catch (std::exception& e) {
1012       {
1013         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1014       };
1015     } catch (...) {
1016       {
1017         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1018       };
1019     }
1020   }
1021 }
1022
1023
1024 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_MeasureChildSwigExplicitLayoutGroupWrapperImpl(void * jarg1, void * jarg2, void * jarg3, void * jarg4) {
1025   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
1026   Dali::Toolkit::Internal::LayoutItemPtr arg2 ;
1027   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg3 ;
1028   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg4 ;
1029   Dali::Toolkit::Internal::LayoutItemPtr *argp2 ;
1030   Dali::Toolkit::MeasureSpec *argp3 ;
1031   Dali::Toolkit::MeasureSpec *argp4 ;
1032   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
1033
1034   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
1035   argp2 = (Dali::Toolkit::Internal::LayoutItemPtr *)jarg2;
1036   if (!argp2) {
1037     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::Internal::LayoutItemPtr", 0);
1038     return ;
1039   }
1040   arg2 = *argp2;
1041   argp3 = (Dali::Toolkit::MeasureSpec *)jarg3;
1042   if (!argp3) {
1043     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
1044     return ;
1045   }
1046   arg3 = *argp3;
1047   argp4 = (Dali::Toolkit::MeasureSpec *)jarg4;
1048   if (!argp4) {
1049     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
1050     return ;
1051   }
1052   arg4 = *argp4;
1053   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
1054   {
1055     try {
1056       (darg)->MeasureChildSwigPublic(arg2,arg3,arg4);
1057     } catch (std::out_of_range& e) {
1058       {
1059         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1060       };
1061     } catch (std::exception& e) {
1062       {
1063         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1064       };
1065     } catch (...) {
1066       {
1067         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1068       };
1069     }
1070   }
1071 }
1072
1073
1074 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_MeasureChildWithMargins(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) {
1075   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
1076   Dali::Toolkit::Internal::LayoutItemPtr arg2 ;
1077   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg3 ;
1078   SwigValueWrapper< Dali::Toolkit::LayoutLength > arg4 ;
1079   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg5 ;
1080   SwigValueWrapper< Dali::Toolkit::LayoutLength > arg6 ;
1081   Dali::Toolkit::Internal::LayoutItemPtr *argp2 ;
1082   Dali::Toolkit::MeasureSpec *argp3 ;
1083   Dali::Toolkit::LayoutLength *argp4 ;
1084   Dali::Toolkit::MeasureSpec *argp5 ;
1085   Dali::Toolkit::LayoutLength *argp6 ;
1086   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
1087
1088   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
1089   argp2 = (Dali::Toolkit::Internal::LayoutItemPtr *)jarg2;
1090   if (!argp2) {
1091     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::Internal::LayoutItemPtr", 0);
1092     return ;
1093   }
1094   arg2 = *argp2;
1095   argp3 = (Dali::Toolkit::MeasureSpec *)jarg3;
1096   if (!argp3) {
1097     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
1098     return ;
1099   }
1100   arg3 = *argp3;
1101   argp4 = (Dali::Toolkit::LayoutLength *)jarg4;
1102   if (!argp4) {
1103     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutLength", 0);
1104     return ;
1105   }
1106   arg4 = *argp4;
1107   argp5 = (Dali::Toolkit::MeasureSpec *)jarg5;
1108   if (!argp5) {
1109     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
1110     return ;
1111   }
1112   arg5 = *argp5;
1113   argp6 = (Dali::Toolkit::LayoutLength *)jarg6;
1114   if (!argp6) {
1115     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutLength", 0);
1116     return ;
1117   }
1118   arg6 = *argp6;
1119   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
1120   {
1121     try {
1122       (darg)->MeasureChildWithMargins(arg2,arg3,arg4,arg5,arg6);
1123     } catch (std::out_of_range& e) {
1124       {
1125         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1126       };
1127     } catch (std::exception& e) {
1128       {
1129         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1130       };
1131     } catch (...) {
1132       {
1133         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1134       };
1135     }
1136   }
1137 }
1138
1139
1140 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_MeasureChildWithMarginsSwigExplicitLayoutGroupWrapperImpl(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) {
1141   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
1142   Dali::Toolkit::Internal::LayoutItemPtr arg2 ;
1143   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg3 ;
1144   SwigValueWrapper< Dali::Toolkit::LayoutLength > arg4 ;
1145   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg5 ;
1146   SwigValueWrapper< Dali::Toolkit::LayoutLength > arg6 ;
1147   Dali::Toolkit::Internal::LayoutItemPtr *argp2 ;
1148   Dali::Toolkit::MeasureSpec *argp3 ;
1149   Dali::Toolkit::LayoutLength *argp4 ;
1150   Dali::Toolkit::MeasureSpec *argp5 ;
1151   Dali::Toolkit::LayoutLength *argp6 ;
1152   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
1153
1154   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
1155   argp2 = (Dali::Toolkit::Internal::LayoutItemPtr *)jarg2;
1156   if (!argp2) {
1157     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::Internal::LayoutItemPtr", 0);
1158     return ;
1159   }
1160   arg2 = *argp2;
1161   argp3 = (Dali::Toolkit::MeasureSpec *)jarg3;
1162   if (!argp3) {
1163     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
1164     return ;
1165   }
1166   arg3 = *argp3;
1167   argp4 = (Dali::Toolkit::LayoutLength *)jarg4;
1168   if (!argp4) {
1169     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutLength", 0);
1170     return ;
1171   }
1172   arg4 = *argp4;
1173   argp5 = (Dali::Toolkit::MeasureSpec *)jarg5;
1174   if (!argp5) {
1175     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
1176     return ;
1177   }
1178   arg5 = *argp5;
1179   argp6 = (Dali::Toolkit::LayoutLength *)jarg6;
1180   if (!argp6) {
1181     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutLength", 0);
1182     return ;
1183   }
1184   arg6 = *argp6;
1185   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
1186   {
1187     try {
1188       (darg)->MeasureChildWithMarginsSwigPublic(arg2,arg3,arg4,arg5,arg6);
1189     } catch (std::out_of_range& e) {
1190       {
1191         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1192       };
1193     } catch (std::exception& e) {
1194       {
1195         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1196       };
1197     } catch (...) {
1198       {
1199         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1200       };
1201     }
1202   }
1203 }
1204
1205
1206 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_director_connect(void *objarg, SwigDirector_LayoutGroupWrapperImpl::SWIG_Callback0_t callback0, SwigDirector_LayoutGroupWrapperImpl::SWIG_Callback3_t callback3, SwigDirector_LayoutGroupWrapperImpl::SWIG_Callback4_t callback4, SwigDirector_LayoutGroupWrapperImpl::SWIG_Callback5_t callback5, SwigDirector_LayoutGroupWrapperImpl::SWIG_Callback6_t callback6, SwigDirector_LayoutGroupWrapperImpl::SWIG_Callback7_t callback7, SwigDirector_LayoutGroupWrapperImpl::SWIG_Callback8_t callback8, SwigDirector_LayoutGroupWrapperImpl::SWIG_Callback9_t callback9, SwigDirector_LayoutGroupWrapperImpl::SWIG_Callback10_t callback10, SwigDirector_LayoutGroupWrapperImpl::SWIG_Callback11_t callback11, SwigDirector_LayoutGroupWrapperImpl::SWIG_Callback12_t callback12, SwigDirector_LayoutGroupWrapperImpl::SWIG_Callback13_t callback13, SwigDirector_LayoutGroupWrapperImpl::SWIG_Callback14_t callback14) {
1207   Dali::Toolkit::Internal::LayoutGroup *obj = (Dali::Toolkit::Internal::LayoutGroup *)objarg;
1208   SwigDirector_LayoutGroupWrapperImpl *director = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(obj);
1209   if (director) {
1210     director->swig_connect_director(callback0, callback3, callback4, callback5, callback6, callback7, callback8, callback9, callback10, callback11, callback12, callback13, callback14);
1211   }
1212 }
1213
1214
1215 /*SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GetImplementation__SWIG_2(void * jarg1) {
1216   void * jresult ;
1217   Dali::Toolkit::LayoutGroup *arg1 = 0 ;
1218   Dali::Toolkit::Internal::LayoutGroup *result = 0 ;
1219
1220   arg1 = (Dali::Toolkit::LayoutGroup *)jarg1;
1221   if (!arg1) {
1222     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::LayoutGroup & type is null", 0);
1223     return 0;
1224   }
1225   {
1226     try {
1227       result = (Dali::Toolkit::Internal::LayoutGroup *) &Dali::Toolkit::GetImplementation(*arg1);
1228     } catch (std::out_of_range& e) {
1229       {
1230         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1231       };
1232     } catch (std::exception& e) {
1233       {
1234         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1235       };
1236     } catch (...) {
1237       {
1238         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1239       };
1240     }
1241   }
1242   jresult = (void *)result;
1243   return jresult;
1244 }*/
1245
1246 SWIGEXPORT Dali::Toolkit::Internal::LayoutItem * SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_SWIGUpcast(Dali::Toolkit::Internal::LayoutGroup *jarg1) {
1247     return (Dali::Toolkit::Internal::LayoutItem *)jarg1;
1248 }
1249
1250 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LayoutGroupWrapperImpl()
1251 {
1252   void * jresult ;
1253   Dali::Toolkit::Internal::LayoutGroup *result = 0 ;
1254
1255   try
1256   {
1257     result = (Dali::Toolkit::Internal::LayoutGroup *) new SwigDirector_LayoutGroupWrapperImpl();
1258   }
1259   catch (std::out_of_range& e)
1260   {
1261     SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1262   }
1263   catch (std::exception& e)
1264   {
1265     SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1266   }
1267   catch (Dali::DaliException e)
1268   {
1269     SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1270   }
1271   catch (...)
1272   {
1273     SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1274   }
1275
1276   jresult = (void *)result;
1277   return jresult;
1278 }
1279
1280 #ifdef __cplusplus
1281 }
1282 #endif