Merge "Add AllowTextPrediction/IsTextPredictionAllowed api" into 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   if(!darg)
705   {
706     SWIG_CSharpException(SWIG_TypeError, "dynamic_cast<SwigDirector_LayoutGroupWrapperImpl> error. darg is null");
707     return;
708   }
709   {
710     try {
711       (darg)->DoInitialize();
712     } catch (std::out_of_range& e) {
713       {
714         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
715       };
716     } catch (std::exception& e) {
717       {
718         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
719       };
720     } catch (...) {
721       {
722         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
723       };
724     }
725   }
726 }
727
728
729 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_DoInitializeSwigExplicitLayoutGroupWrapperImpl(void * jarg1) {
730   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
731   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
732
733   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
734   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
735   if(!darg)
736   {
737     SWIG_CSharpException(SWIG_TypeError, "dynamic_cast<SwigDirector_LayoutGroupWrapperImpl> error. darg is null");
738     return;
739   }
740   {
741     try {
742       (darg)->DoInitializeSwigPublic();
743     } catch (std::out_of_range& e) {
744       {
745         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
746       };
747     } catch (std::exception& e) {
748       {
749         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
750       };
751     } catch (...) {
752       {
753         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
754       };
755     }
756   }
757 }
758
759
760 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_DoRegisterChildProperties(void * jarg1, char * jarg2) {
761   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
762   std::string *arg2 = 0 ;
763   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
764
765   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
766   if (!jarg2) {
767     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
768     return ;
769   }
770   std::string arg2_str(jarg2);
771   arg2 = &arg2_str;
772   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
773   if(!darg)
774   {
775     SWIG_CSharpException(SWIG_TypeError, "dynamic_cast<SwigDirector_LayoutGroupWrapperImpl> error. darg is null");
776     return;
777   }
778   {
779     try {
780       (darg)->DoRegisterChildProperties((std::string const &)*arg2);
781     } catch (std::out_of_range& e) {
782       {
783         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
784       };
785     } catch (std::exception& e) {
786       {
787         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
788       };
789     } catch (...) {
790       {
791         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
792       };
793     }
794   }
795
796   //argout typemap for const std::string&
797
798 }
799
800
801 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_DoRegisterChildPropertiesSwigExplicitLayoutGroupWrapperImpl(void * jarg1, char * jarg2) {
802   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
803   std::string *arg2 = 0 ;
804   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
805
806   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
807   if (!jarg2) {
808     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
809     return ;
810   }
811   std::string arg2_str(jarg2);
812   arg2 = &arg2_str;
813   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
814   if(!darg)
815   {
816     SWIG_CSharpException(SWIG_TypeError, "dynamic_cast<SwigDirector_LayoutGroupWrapperImpl> error. darg is null");
817     return;
818   }
819   {
820     try {
821       (darg)->DoRegisterChildPropertiesSwigPublic((std::string const &)*arg2);
822     } catch (std::out_of_range& e) {
823       {
824         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
825       };
826     } catch (std::exception& e) {
827       {
828         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
829       };
830     } catch (...) {
831       {
832         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
833       };
834     }
835   }
836
837   //argout typemap for const std::string&
838
839 }
840
841
842 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_GenerateDefaultChildPropertyValues(void * jarg1, void * jarg2) {
843   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
844   Dali::Handle arg2 ;
845   Dali::Handle *argp2 ;
846   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
847
848   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
849   argp2 = (Dali::Handle *)jarg2;
850   if (!argp2) {
851     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Handle", 0);
852     return ;
853   }
854   arg2 = *argp2;
855   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
856   if(!darg)
857   {
858     SWIG_CSharpException(SWIG_TypeError, "dynamic_cast<SwigDirector_LayoutGroupWrapperImpl> error. darg is null");
859     return;
860   }
861   {
862     try {
863       (darg)->GenerateDefaultChildPropertyValues(arg2);
864     } catch (std::out_of_range& e) {
865       {
866         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
867       };
868     } catch (std::exception& e) {
869       {
870         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
871       };
872     } catch (...) {
873       {
874         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
875       };
876     }
877   }
878 }
879
880
881 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_GenerateDefaultChildPropertyValuesSwigExplicitLayoutGroupWrapperImpl(void * jarg1, void * jarg2) {
882   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
883   Dali::Handle arg2 ;
884   Dali::Handle *argp2 ;
885   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
886
887   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
888   argp2 = (Dali::Handle *)jarg2;
889   if (!argp2) {
890     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Handle", 0);
891     return ;
892   }
893   arg2 = *argp2;
894   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
895   if(!darg)
896   {
897     SWIG_CSharpException(SWIG_TypeError, "dynamic_cast<SwigDirector_LayoutGroupWrapperImpl> error. darg is null");
898     return;
899   }
900   {
901     try {
902       (darg)->GenerateDefaultChildPropertyValuesSwigPublic(arg2);
903     } catch (std::out_of_range& e) {
904       {
905         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
906       };
907     } catch (std::exception& e) {
908       {
909         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
910       };
911     } catch (...) {
912       {
913         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
914       };
915     }
916   }
917 }
918
919
920 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_MeasureChildren(void * jarg1, void * jarg2, void * jarg3) {
921   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
922   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg2 ;
923   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg3 ;
924   Dali::Toolkit::MeasureSpec *argp2 ;
925   Dali::Toolkit::MeasureSpec *argp3 ;
926   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
927
928   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
929   argp2 = (Dali::Toolkit::MeasureSpec *)jarg2;
930   if (!argp2) {
931     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
932     return ;
933   }
934   arg2 = *argp2;
935   argp3 = (Dali::Toolkit::MeasureSpec *)jarg3;
936   if (!argp3) {
937     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
938     return ;
939   }
940   arg3 = *argp3;
941   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
942   if(!darg)
943   {
944     SWIG_CSharpException(SWIG_TypeError, "dynamic_cast<SwigDirector_LayoutGroupWrapperImpl> error. darg is null");
945     return;
946   }
947   {
948     try {
949       (darg)->MeasureChildren(arg2,arg3);
950     } catch (std::out_of_range& e) {
951       {
952         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
953       };
954     } catch (std::exception& e) {
955       {
956         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
957       };
958     } catch (...) {
959       {
960         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
961       };
962     }
963   }
964 }
965
966
967 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_MeasureChildrenSwigExplicitLayoutGroupWrapperImpl(void * jarg1, void * jarg2, void * jarg3) {
968   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
969   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg2 ;
970   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg3 ;
971   Dali::Toolkit::MeasureSpec *argp2 ;
972   Dali::Toolkit::MeasureSpec *argp3 ;
973   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
974
975   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
976   argp2 = (Dali::Toolkit::MeasureSpec *)jarg2;
977   if (!argp2) {
978     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
979     return ;
980   }
981   arg2 = *argp2;
982   argp3 = (Dali::Toolkit::MeasureSpec *)jarg3;
983   if (!argp3) {
984     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
985     return ;
986   }
987   arg3 = *argp3;
988   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
989   if(!darg)
990   {
991     SWIG_CSharpException(SWIG_TypeError, "dynamic_cast<SwigDirector_LayoutGroupWrapperImpl> error. darg is null");
992     return;
993   }
994   {
995     try {
996       (darg)->MeasureChildrenSwigPublic(arg2,arg3);
997     } catch (std::out_of_range& e) {
998       {
999         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1000       };
1001     } catch (std::exception& e) {
1002       {
1003         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1004       };
1005     } catch (...) {
1006       {
1007         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1008       };
1009     }
1010   }
1011 }
1012
1013
1014 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_MeasureChild(void * jarg1, void * jarg2, void * jarg3, void * jarg4) {
1015   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
1016   Dali::Toolkit::Internal::LayoutItemPtr arg2 ;
1017   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg3 ;
1018   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg4 ;
1019   Dali::Toolkit::Internal::LayoutItemPtr *argp2 ;
1020   Dali::Toolkit::MeasureSpec *argp3 ;
1021   Dali::Toolkit::MeasureSpec *argp4 ;
1022   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
1023
1024   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
1025   argp2 = (Dali::Toolkit::Internal::LayoutItemPtr *)jarg2;
1026   if (!argp2) {
1027     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::Internal::LayoutItemPtr", 0);
1028     return ;
1029   }
1030   arg2 = *argp2;
1031   argp3 = (Dali::Toolkit::MeasureSpec *)jarg3;
1032   if (!argp3) {
1033     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
1034     return ;
1035   }
1036   arg3 = *argp3;
1037   argp4 = (Dali::Toolkit::MeasureSpec *)jarg4;
1038   if (!argp4) {
1039     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
1040     return ;
1041   }
1042   arg4 = *argp4;
1043   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
1044   if(!darg)
1045   {
1046     SWIG_CSharpException(SWIG_TypeError, "dynamic_cast<SwigDirector_LayoutGroupWrapperImpl> error. darg is null");
1047     return;
1048   }
1049   {
1050     try {
1051       (darg)->MeasureChild(arg2,arg3,arg4);
1052     } catch (std::out_of_range& e) {
1053       {
1054         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1055       };
1056     } catch (std::exception& e) {
1057       {
1058         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1059       };
1060     } catch (...) {
1061       {
1062         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1063       };
1064     }
1065   }
1066 }
1067
1068
1069 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_MeasureChildSwigExplicitLayoutGroupWrapperImpl(void * jarg1, void * jarg2, void * jarg3, void * jarg4) {
1070   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
1071   Dali::Toolkit::Internal::LayoutItemPtr arg2 ;
1072   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg3 ;
1073   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg4 ;
1074   Dali::Toolkit::Internal::LayoutItemPtr *argp2 ;
1075   Dali::Toolkit::MeasureSpec *argp3 ;
1076   Dali::Toolkit::MeasureSpec *argp4 ;
1077   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
1078
1079   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
1080   argp2 = (Dali::Toolkit::Internal::LayoutItemPtr *)jarg2;
1081   if (!argp2) {
1082     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::Internal::LayoutItemPtr", 0);
1083     return ;
1084   }
1085   arg2 = *argp2;
1086   argp3 = (Dali::Toolkit::MeasureSpec *)jarg3;
1087   if (!argp3) {
1088     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
1089     return ;
1090   }
1091   arg3 = *argp3;
1092   argp4 = (Dali::Toolkit::MeasureSpec *)jarg4;
1093   if (!argp4) {
1094     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
1095     return ;
1096   }
1097   arg4 = *argp4;
1098   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
1099   if(!darg)
1100   {
1101     SWIG_CSharpException(SWIG_TypeError, "dynamic_cast<SwigDirector_LayoutGroupWrapperImpl> error. darg is null");
1102     return;
1103   }
1104   {
1105     try {
1106       (darg)->MeasureChildSwigPublic(arg2,arg3,arg4);
1107     } catch (std::out_of_range& e) {
1108       {
1109         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1110       };
1111     } catch (std::exception& e) {
1112       {
1113         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1114       };
1115     } catch (...) {
1116       {
1117         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1118       };
1119     }
1120   }
1121 }
1122
1123
1124 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_MeasureChildWithMargins(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) {
1125   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
1126   Dali::Toolkit::Internal::LayoutItemPtr arg2 ;
1127   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg3 ;
1128   SwigValueWrapper< Dali::Toolkit::LayoutLength > arg4 ;
1129   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg5 ;
1130   SwigValueWrapper< Dali::Toolkit::LayoutLength > arg6 ;
1131   Dali::Toolkit::Internal::LayoutItemPtr *argp2 ;
1132   Dali::Toolkit::MeasureSpec *argp3 ;
1133   Dali::Toolkit::LayoutLength *argp4 ;
1134   Dali::Toolkit::MeasureSpec *argp5 ;
1135   Dali::Toolkit::LayoutLength *argp6 ;
1136   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
1137
1138   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
1139   argp2 = (Dali::Toolkit::Internal::LayoutItemPtr *)jarg2;
1140   if (!argp2) {
1141     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::Internal::LayoutItemPtr", 0);
1142     return ;
1143   }
1144   arg2 = *argp2;
1145   argp3 = (Dali::Toolkit::MeasureSpec *)jarg3;
1146   if (!argp3) {
1147     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
1148     return ;
1149   }
1150   arg3 = *argp3;
1151   argp4 = (Dali::Toolkit::LayoutLength *)jarg4;
1152   if (!argp4) {
1153     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutLength", 0);
1154     return ;
1155   }
1156   arg4 = *argp4;
1157   argp5 = (Dali::Toolkit::MeasureSpec *)jarg5;
1158   if (!argp5) {
1159     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
1160     return ;
1161   }
1162   arg5 = *argp5;
1163   argp6 = (Dali::Toolkit::LayoutLength *)jarg6;
1164   if (!argp6) {
1165     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutLength", 0);
1166     return ;
1167   }
1168   arg6 = *argp6;
1169   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
1170   if(!darg)
1171   {
1172     SWIG_CSharpException(SWIG_TypeError, "dynamic_cast<SwigDirector_LayoutGroupWrapperImpl> error. darg is null");
1173     return;
1174   }
1175   {
1176     try {
1177       (darg)->MeasureChildWithMargins(arg2,arg3,arg4,arg5,arg6);
1178     } catch (std::out_of_range& e) {
1179       {
1180         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1181       };
1182     } catch (std::exception& e) {
1183       {
1184         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1185       };
1186     } catch (...) {
1187       {
1188         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1189       };
1190     }
1191   }
1192 }
1193
1194
1195 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_MeasureChildWithMarginsSwigExplicitLayoutGroupWrapperImpl(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) {
1196   Dali::Toolkit::Internal::LayoutGroup *arg1 = (Dali::Toolkit::Internal::LayoutGroup *) 0 ;
1197   Dali::Toolkit::Internal::LayoutItemPtr arg2 ;
1198   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg3 ;
1199   SwigValueWrapper< Dali::Toolkit::LayoutLength > arg4 ;
1200   SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg5 ;
1201   SwigValueWrapper< Dali::Toolkit::LayoutLength > arg6 ;
1202   Dali::Toolkit::Internal::LayoutItemPtr *argp2 ;
1203   Dali::Toolkit::MeasureSpec *argp3 ;
1204   Dali::Toolkit::LayoutLength *argp4 ;
1205   Dali::Toolkit::MeasureSpec *argp5 ;
1206   Dali::Toolkit::LayoutLength *argp6 ;
1207   SwigDirector_LayoutGroupWrapperImpl *darg = 0;
1208
1209   arg1 = (Dali::Toolkit::Internal::LayoutGroup *)jarg1;
1210   argp2 = (Dali::Toolkit::Internal::LayoutItemPtr *)jarg2;
1211   if (!argp2) {
1212     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::Internal::LayoutItemPtr", 0);
1213     return ;
1214   }
1215   arg2 = *argp2;
1216   argp3 = (Dali::Toolkit::MeasureSpec *)jarg3;
1217   if (!argp3) {
1218     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
1219     return ;
1220   }
1221   arg3 = *argp3;
1222   argp4 = (Dali::Toolkit::LayoutLength *)jarg4;
1223   if (!argp4) {
1224     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutLength", 0);
1225     return ;
1226   }
1227   arg4 = *argp4;
1228   argp5 = (Dali::Toolkit::MeasureSpec *)jarg5;
1229   if (!argp5) {
1230     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
1231     return ;
1232   }
1233   arg5 = *argp5;
1234   argp6 = (Dali::Toolkit::LayoutLength *)jarg6;
1235   if (!argp6) {
1236     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutLength", 0);
1237     return ;
1238   }
1239   arg6 = *argp6;
1240   darg = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(arg1);
1241   if(!darg)
1242   {
1243     SWIG_CSharpException(SWIG_TypeError, "dynamic_cast<SwigDirector_LayoutGroupWrapperImpl> error. darg is null");
1244     return;
1245   }
1246   {
1247     try {
1248       (darg)->MeasureChildWithMarginsSwigPublic(arg2,arg3,arg4,arg5,arg6);
1249     } catch (std::out_of_range& e) {
1250       {
1251         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1252       };
1253     } catch (std::exception& e) {
1254       {
1255         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1256       };
1257     } catch (...) {
1258       {
1259         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1260       };
1261     }
1262   }
1263 }
1264
1265
1266 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) {
1267   Dali::Toolkit::Internal::LayoutGroup *obj = (Dali::Toolkit::Internal::LayoutGroup *)objarg;
1268   SwigDirector_LayoutGroupWrapperImpl *director = dynamic_cast<SwigDirector_LayoutGroupWrapperImpl *>(obj);
1269   if (director) {
1270     director->swig_connect_director(callback0, callback3, callback4, callback5, callback6, callback7, callback8, callback9, callback10, callback11, callback12, callback13, callback14);
1271   }
1272 }
1273
1274
1275 /*SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GetImplementation__SWIG_2(void * jarg1) {
1276   void * jresult ;
1277   Dali::Toolkit::LayoutGroup *arg1 = 0 ;
1278   Dali::Toolkit::Internal::LayoutGroup *result = 0 ;
1279
1280   arg1 = (Dali::Toolkit::LayoutGroup *)jarg1;
1281   if (!arg1) {
1282     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::LayoutGroup & type is null", 0);
1283     return 0;
1284   }
1285   {
1286     try {
1287       result = (Dali::Toolkit::Internal::LayoutGroup *) &Dali::Toolkit::GetImplementation(*arg1);
1288     } catch (std::out_of_range& e) {
1289       {
1290         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1291       };
1292     } catch (std::exception& e) {
1293       {
1294         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1295       };
1296     } catch (...) {
1297       {
1298         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1299       };
1300     }
1301   }
1302   jresult = (void *)result;
1303   return jresult;
1304 }*/
1305
1306 SWIGEXPORT Dali::Toolkit::Internal::LayoutItem * SWIGSTDCALL CSharp_Dali_LayoutGroupWrapperImpl_SWIGUpcast(Dali::Toolkit::Internal::LayoutGroup *jarg1) {
1307     return (Dali::Toolkit::Internal::LayoutItem *)jarg1;
1308 }
1309
1310 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LayoutGroupWrapperImpl()
1311 {
1312   void * jresult ;
1313   Dali::Toolkit::Internal::LayoutGroup *result = 0 ;
1314
1315   try
1316   {
1317     result = (Dali::Toolkit::Internal::LayoutGroup *) new SwigDirector_LayoutGroupWrapperImpl();
1318   }
1319   catch (std::out_of_range& e)
1320   {
1321     SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1322   }
1323   catch (std::exception& e)
1324   {
1325     SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1326   }
1327   catch (Dali::DaliException e)
1328   {
1329     SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1330   }
1331   catch (...)
1332   {
1333     SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1334   }
1335
1336   jresult = (void *)result;
1337   return jresult;
1338 }
1339
1340 #ifdef __cplusplus
1341 }
1342 #endif