Removed On(...)Event()
[platform/core/uifw/dali-csharp-binder.git] / dali-csharp-binder / src / view-wrapper-impl-wrap.cpp
1 /*
2  * Copyright (c) 2020 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 "view-wrapper-impl-wrap.h"
20
21 // INTERNAL INCLUDES
22 #include <dali-toolkit/devel-api/visual-factory/visual-base.h>
23
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 SwigDirector_ViewWrapperImpl::SwigDirector_ViewWrapperImpl(Dali::Toolkit::Internal::ControlWrapper::CustomControlBehaviour behaviourFlags) : Dali::Toolkit::Internal::ControlWrapper(behaviourFlags) {
30   swig_init_callbacks();
31 }
32
33 SwigDirector_ViewWrapperImpl::~SwigDirector_ViewWrapperImpl() {
34
35 }
36
37
38 void SwigDirector_ViewWrapperImpl::OnSceneConnection(int depth) {
39     swig_callbackOnSceneConnection(depth);
40
41     Dali::Toolkit::Internal::Control::OnSceneConnection(depth);
42 }
43
44 void SwigDirector_ViewWrapperImpl::OnSceneDisconnection() {
45     swig_callbackOnSceneDisconnection();
46
47     Dali::Toolkit::Internal::Control::OnSceneDisconnection();
48 }
49
50 void SwigDirector_ViewWrapperImpl::OnChildAdd(Dali::Actor &child) {
51     void * jchild = (Dali::Actor *) &child;
52     swig_callbackOnChildAdd(jchild);
53
54     Dali::Toolkit::Internal::Control::OnChildAdd( child );
55 }
56
57 void SwigDirector_ViewWrapperImpl::OnChildRemove(Dali::Actor &child) {
58     void * jchild = (Dali::Actor *) &child;
59     swig_callbackOnChildRemove(jchild);
60
61     Dali::Toolkit::Internal::Control::OnChildRemove( child );
62 }
63
64 void SwigDirector_ViewWrapperImpl::OnPropertySet(Dali::Property::Index index, Dali::Property::Value propertyValue) {
65   int jindex  ;
66   void * jpropertyValue  ;
67
68   jindex = index;
69   jpropertyValue = (void *)new Dali::Property::Value((const Dali::Property::Value &)propertyValue);
70   swig_callbackOnPropertySet(jindex, jpropertyValue);
71
72   Dali::Toolkit::Internal::ControlWrapper::OnPropertySet(index,propertyValue);
73 }
74
75 void SwigDirector_ViewWrapperImpl::OnSizeSet(Dali::Vector3 const &targetSize) {
76   swig_callbackOnSizeSet((Dali::Vector3 *) &targetSize);
77
78   Dali::Toolkit::Internal::Control::OnSizeSet(targetSize);
79 }
80
81 void SwigDirector_ViewWrapperImpl::OnSizeAnimation(Dali::Animation &animation, Dali::Vector3 const &targetSize) {
82   swig_callbackOnSizeAnimation(new Dali::Animation(animation), (Dali::Vector3 *) &targetSize);
83
84   Dali::Toolkit::Internal::Control::OnSizeAnimation(animation,targetSize);
85 }
86
87 bool SwigDirector_ViewWrapperImpl::OnKeyEvent(Dali::KeyEvent const &event) {
88   bool c_result = SwigValueInit< bool >() ;
89   unsigned int jresult = 0 ;
90   void * jarg0 = 0 ;
91
92   if (!swig_callbackOnKeyEvent) {
93     return Dali::Toolkit::Internal::Control::OnKeyEvent(event);
94   } else {
95     jarg0 = (Dali::KeyEvent *) &event;
96     jresult = (unsigned int) swig_callbackOnKeyEvent(jarg0);
97     c_result = jresult ? true : false;
98   }
99   return c_result;
100 }
101
102 void SwigDirector_ViewWrapperImpl::OnRelayout(Dali::Vector2 const &size, Dali::RelayoutContainer &container) {
103   void * jsize = 0 ;
104   void * jcontainer = 0 ;
105
106   jsize = (Dali::Vector2 *) &size;
107   jcontainer = (Dali::RelayoutContainer *) &container;
108   swig_callbackOnRelayout(jsize, jcontainer);
109
110   Dali::Toolkit::Internal::Control::OnRelayout(size,container);
111 }
112
113 void SwigDirector_ViewWrapperImpl::OnSetResizePolicy(Dali::ResizePolicy::Type policy, Dali::Dimension::Type dimension) {
114   int jpolicy  ;
115   int jdimension  ;
116
117   jpolicy = (int)policy;
118   jdimension = (int)dimension;
119   swig_callbackOnSetResizePolicy(jpolicy, jdimension);
120
121   Dali::Toolkit::Internal::Control::OnSetResizePolicy(policy,dimension);
122 }
123
124 Dali::Vector3 SwigDirector_ViewWrapperImpl::GetNaturalSize() {
125   Dali::Vector3 c_result ;
126   void * jresult = 0 ;
127
128   if (!swig_callbackGetNaturalSize) {
129     return Dali::Toolkit::Internal::Control::GetNaturalSize();
130   } else {
131     jresult = (void *) swig_callbackGetNaturalSize();
132     if (!jresult) {
133       SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Unexpected null return for type Dali::Vector3", 0);
134       return c_result;
135     }
136     c_result = *(Dali::Vector3 *)jresult;
137   }
138   return c_result;
139 }
140
141 float SwigDirector_ViewWrapperImpl::CalculateChildSize(Dali::Actor const &child, Dali::Dimension::Type dimension) {
142   float c_result = SwigValueInit< float >() ;
143   float jresult = 0 ;
144   void * jchild = 0 ;
145   int jdimension  ;
146
147   if (!swig_callbackCalculateChildSize) {
148     return Dali::Toolkit::Internal::Control::CalculateChildSize(child,dimension);
149   } else {
150     jchild = (Dali::Actor *) &child;
151     jdimension = (int)dimension;
152     jresult = (float) swig_callbackCalculateChildSize(jchild, jdimension);
153     c_result = (float)jresult;
154   }
155   return c_result;
156 }
157
158 float SwigDirector_ViewWrapperImpl::GetHeightForWidth(float width) {
159   float c_result = SwigValueInit< float >() ;
160   float jresult = 0 ;
161   float jwidth  ;
162
163   if (!swig_callbackGetHeightForWidth) {
164     return Dali::Toolkit::Internal::Control::GetHeightForWidth(width);
165   } else {
166     jwidth = width;
167     jresult = (float) swig_callbackGetHeightForWidth(jwidth);
168     c_result = (float)jresult;
169   }
170   return c_result;
171 }
172
173 float SwigDirector_ViewWrapperImpl::GetWidthForHeight(float height) {
174   float c_result = SwigValueInit< float >() ;
175   float jresult = 0 ;
176   float jheight  ;
177
178   if (!swig_callbackGetWidthForHeight) {
179     return Dali::Toolkit::Internal::Control::GetWidthForHeight(height);
180   } else {
181     jheight = height;
182     jresult = (float) swig_callbackGetWidthForHeight(jheight);
183     c_result = (float)jresult;
184   }
185   return c_result;
186 }
187
188 bool SwigDirector_ViewWrapperImpl::RelayoutDependentOnChildren(Dali::Dimension::Type dimension) {
189   bool c_result = SwigValueInit< bool >() ;
190   unsigned int jresult = 0 ;
191   int jdimension  ;
192
193   if (!swig_callbackRelayoutDependentOnChildren__SWIG_0) {
194     return Dali::Toolkit::Internal::Control::RelayoutDependentOnChildren(dimension);
195   } else {
196     jdimension = (int)dimension;
197     jresult = (unsigned int) swig_callbackRelayoutDependentOnChildren__SWIG_0(jdimension);
198     c_result = jresult ? true : false;
199   }
200   return c_result;
201 }
202
203 void SwigDirector_ViewWrapperImpl::OnCalculateRelayoutSize(Dali::Dimension::Type dimension) {
204   int jdimension  ;
205
206   jdimension = (int)dimension;
207   swig_callbackOnCalculateRelayoutSize(jdimension);
208
209   Dali::Toolkit::Internal::Control::OnCalculateRelayoutSize(dimension);
210 }
211
212 void SwigDirector_ViewWrapperImpl::OnLayoutNegotiated(float size, Dali::Dimension::Type dimension) {
213   float jsize  ;
214   int jdimension  ;
215
216   jsize = size;
217   jdimension = (int)dimension;
218   swig_callbackOnLayoutNegotiated(jsize, jdimension);
219
220   Dali::Toolkit::Internal::Control::OnLayoutNegotiated(size,dimension);
221 }
222
223 void SwigDirector_ViewWrapperImpl::OnInitialize() {
224   swig_callbackOnInitialize();
225
226   Dali::Toolkit::Internal::Control::OnInitialize();
227 }
228
229 void SwigDirector_ViewWrapperImpl::OnStyleChange(Dali::Toolkit::StyleManager styleManager, Dali::StyleChange::Type change) {
230   void * jstyleManager  ;
231   int jchange  ;
232
233   jstyleManager = (void *)new Dali::Toolkit::StyleManager((const Dali::Toolkit::StyleManager &)styleManager);
234   jchange = (int)change;
235   swig_callbackOnStyleChange(jstyleManager, jchange);
236
237   Dali::Toolkit::Internal::Control::OnStyleChange(styleManager,change);
238 }
239
240 bool SwigDirector_ViewWrapperImpl::OnAccessibilityActivated() {
241   bool c_result = SwigValueInit< bool >() ;
242   unsigned int jresult = 0 ;
243
244   if (!swig_callbackOnAccessibilityActivated) {
245     return Dali::Toolkit::Internal::Control::OnAccessibilityActivated();
246   } else {
247     jresult = (unsigned int) swig_callbackOnAccessibilityActivated();
248     c_result = jresult ? true : false;
249   }
250   return c_result;
251 }
252
253 bool SwigDirector_ViewWrapperImpl::OnAccessibilityPan(Dali::PanGesture gesture) {
254   bool c_result = SwigValueInit< bool >() ;
255   unsigned int jresult = 0 ;
256   void * jgesture  ;
257
258   if (!swig_callbackOnAccessibilityPan) {
259     return Dali::Toolkit::Internal::Control::OnAccessibilityPan(gesture);
260   } else {
261     jgesture = (void *)new Dali::PanGesture((const Dali::PanGesture &)gesture);
262     jresult = (unsigned int) swig_callbackOnAccessibilityPan(jgesture);
263     c_result = jresult ? true : false;
264   }
265   return c_result;
266 }
267
268 bool SwigDirector_ViewWrapperImpl::OnAccessibilityValueChange(bool isIncrease) {
269   bool c_result = SwigValueInit< bool >();
270   unsigned int jresult = 0;
271   unsigned int jisIncrease;
272
273   if (!swig_callbackOnAccessibilityValueChange) {
274     return Dali::Toolkit::Internal::Control::OnAccessibilityValueChange(isIncrease);
275   } else {
276     jisIncrease = isIncrease;
277     jresult = (unsigned int) swig_callbackOnAccessibilityValueChange(jisIncrease);
278     c_result = jresult ? true : false;
279   }
280   return c_result;
281 }
282
283 bool SwigDirector_ViewWrapperImpl::OnAccessibilityZoom() {
284   bool c_result = SwigValueInit< bool >() ;
285   unsigned int jresult = 0 ;
286
287   if (!swig_callbackOnAccessibilityZoom) {
288     return Dali::Toolkit::Internal::Control::OnAccessibilityZoom();
289   } else {
290     jresult = (unsigned int) swig_callbackOnAccessibilityZoom();
291     c_result = jresult ? true : false;
292   }
293   return c_result;
294 }
295
296 void SwigDirector_ViewWrapperImpl::OnKeyInputFocusGained() {
297   swig_callbackOnKeyInputFocusGained();
298
299   Dali::Toolkit::Internal::Control::OnKeyInputFocusGained();
300 }
301
302 void SwigDirector_ViewWrapperImpl::OnKeyInputFocusLost() {
303   swig_callbackOnKeyInputFocusLost();
304
305   Dali::Toolkit::Internal::Control::OnKeyInputFocusLost();
306 }
307
308 Dali::Actor SwigDirector_ViewWrapperImpl::GetNextKeyboardFocusableActor(Dali::Actor currentFocusedActor, Dali::Toolkit::Control::KeyboardFocus::Direction direction, bool loopEnabled) {
309   Dali::Actor c_result ;
310   void * jresult = 0 ;
311   void * jcurrentFocusedActor  ;
312   int jdirection  ;
313   unsigned int jloopEnabled  ;
314
315   if (!swig_callbackGetNextKeyboardFocusableActor) {
316     return Dali::Toolkit::Internal::Control::GetNextKeyboardFocusableActor(currentFocusedActor,direction,loopEnabled);
317   } else {
318     jcurrentFocusedActor = (void *)new Dali::Actor((const Dali::Actor &)currentFocusedActor);
319     jdirection = (int)direction;
320     jloopEnabled = loopEnabled;
321     jresult = (void *) swig_callbackGetNextKeyboardFocusableActor(jcurrentFocusedActor, jdirection, jloopEnabled);
322     if (!jresult) {
323       SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Unexpected null return for type Dali::Actor", 0);
324       return c_result;
325     }
326     c_result = *(Dali::Actor *)jresult;
327   }
328   return c_result;
329 }
330
331 void SwigDirector_ViewWrapperImpl::OnKeyboardFocusChangeCommitted(Dali::Actor commitedFocusableActor) {
332   void * jcommitedFocusableActor  ;
333   jcommitedFocusableActor = (void *)new Dali::Actor((const Dali::Actor &)commitedFocusableActor);
334   swig_callbackOnKeyboardFocusChangeCommitted(jcommitedFocusableActor);
335
336   Dali::Toolkit::Internal::Control::OnKeyboardFocusChangeCommitted(commitedFocusableActor);
337 }
338
339 bool SwigDirector_ViewWrapperImpl::OnKeyboardEnter() {
340   bool c_result = SwigValueInit< bool >() ;
341   unsigned int jresult = 0 ;
342
343   if (!swig_callbackOnKeyboardEnter) {
344     return Dali::Toolkit::Internal::Control::OnKeyboardEnter();
345   } else {
346     jresult = (unsigned int) swig_callbackOnKeyboardEnter();
347     c_result = jresult ? true : false;
348   }
349   return c_result;
350 }
351
352 void SwigDirector_ViewWrapperImpl::OnPinch(Dali::PinchGesture const &pinch) {
353   void * jpinch = 0 ;
354   jpinch = (Dali::PinchGesture *) &pinch;
355   swig_callbackOnPinch(jpinch);
356
357   Dali::Toolkit::Internal::Control::OnPinch(pinch);
358 }
359
360 void SwigDirector_ViewWrapperImpl::OnPan(Dali::PanGesture const &pan) {
361   void * jpan = 0 ;
362   jpan = (Dali::PanGesture *) &pan;
363   swig_callbackOnPan(jpan);
364
365   Dali::Toolkit::Internal::Control::OnPan(pan);
366 }
367
368 void SwigDirector_ViewWrapperImpl::OnTap(Dali::TapGesture const &tap) {
369   void * jtap = 0 ;
370   jtap = (Dali::TapGesture *) &tap;
371   swig_callbackOnTap(jtap);
372
373   Dali::Toolkit::Internal::Control::OnTap(tap);
374 }
375
376 void SwigDirector_ViewWrapperImpl::OnLongPress(Dali::LongPressGesture const &longPress) {
377   void * jlongPress = 0 ;
378
379   jlongPress = (Dali::LongPressGesture *) &longPress;
380   swig_callbackOnLongPress(jlongPress);
381
382   Dali::Toolkit::Internal::Control::OnLongPress(longPress);
383 }
384
385 Dali::Toolkit::Internal::Control::Extension *SwigDirector_ViewWrapperImpl::GetControlExtension() {
386   return Dali::Toolkit::Internal::Control::GetControlExtension();
387 }
388
389 void SwigDirector_ViewWrapperImpl::swig_connect_director(SWIG_Callback0_t callbackOnSceneConnection, SWIG_Callback1_t callbackOnSceneDisconnection, SWIG_Callback2_t callbackOnChildAdd, SWIG_Callback3_t callbackOnChildRemove, SWIG_Callback4_t callbackOnPropertySet, SWIG_Callback5_t callbackOnSizeSet, SWIG_Callback6_t callbackOnSizeAnimation, SWIG_Callback9_t callbackOnKeyEvent, SWIG_Callback11_t callbackOnRelayout, SWIG_Callback12_t callbackOnSetResizePolicy, SWIG_Callback13_t callbackGetNaturalSize, SWIG_Callback14_t callbackCalculateChildSize, SWIG_Callback15_t callbackGetHeightForWidth, SWIG_Callback16_t callbackGetWidthForHeight, SWIG_Callback17_t callbackRelayoutDependentOnChildren__SWIG_0, SWIG_Callback18_t callbackRelayoutDependentOnChildren__SWIG_1, SWIG_Callback19_t callbackOnCalculateRelayoutSize, SWIG_Callback20_t callbackOnLayoutNegotiated, SWIG_Callback21_t callbackOnInitialize, SWIG_Callback24_t callbackOnStyleChange, SWIG_Callback25_t callbackOnAccessibilityActivated, SWIG_Callback26_t callbackOnAccessibilityPan, SWIG_Callback28_t callbackOnAccessibilityValueChange, SWIG_Callback29_t callbackOnAccessibilityZoom, SWIG_Callback30_t callbackOnKeyInputFocusGained, SWIG_Callback31_t callbackOnKeyInputFocusLost, SWIG_Callback32_t callbackGetNextKeyboardFocusableActor, SWIG_Callback33_t callbackOnKeyboardFocusChangeCommitted, SWIG_Callback34_t callbackOnKeyboardEnter, SWIG_Callback35_t callbackOnPinch, SWIG_Callback36_t callbackOnPan, SWIG_Callback37_t callbackOnTap, SWIG_Callback38_t callbackOnLongPress, SWIG_Callback39_t callbackSignalConnected, SWIG_Callback40_t callbackSignalDisconnected) {
390   swig_callbackOnSceneConnection = callbackOnSceneConnection;
391   swig_callbackOnSceneDisconnection = callbackOnSceneDisconnection;
392   swig_callbackOnChildAdd = callbackOnChildAdd;
393   swig_callbackOnChildRemove = callbackOnChildRemove;
394   swig_callbackOnPropertySet = callbackOnPropertySet;
395   swig_callbackOnSizeSet = callbackOnSizeSet;
396   swig_callbackOnSizeAnimation = callbackOnSizeAnimation;
397   swig_callbackOnKeyEvent = callbackOnKeyEvent;
398   swig_callbackOnRelayout = callbackOnRelayout;
399   swig_callbackOnSetResizePolicy = callbackOnSetResizePolicy;
400   swig_callbackGetNaturalSize = callbackGetNaturalSize;
401   swig_callbackCalculateChildSize = callbackCalculateChildSize;
402   swig_callbackGetHeightForWidth = callbackGetHeightForWidth;
403   swig_callbackGetWidthForHeight = callbackGetWidthForHeight;
404   swig_callbackRelayoutDependentOnChildren__SWIG_0 = callbackRelayoutDependentOnChildren__SWIG_0;
405   swig_callbackRelayoutDependentOnChildren__SWIG_1 = callbackRelayoutDependentOnChildren__SWIG_1;
406   swig_callbackOnCalculateRelayoutSize = callbackOnCalculateRelayoutSize;
407   swig_callbackOnLayoutNegotiated = callbackOnLayoutNegotiated;
408   swig_callbackOnInitialize = callbackOnInitialize;
409   swig_callbackOnStyleChange = callbackOnStyleChange;
410   swig_callbackOnAccessibilityActivated = callbackOnAccessibilityActivated;
411   swig_callbackOnAccessibilityPan = callbackOnAccessibilityPan;
412   swig_callbackOnAccessibilityValueChange = callbackOnAccessibilityValueChange;
413   swig_callbackOnAccessibilityZoom = callbackOnAccessibilityZoom;
414   swig_callbackOnKeyInputFocusGained = callbackOnKeyInputFocusGained;
415   swig_callbackOnKeyInputFocusLost = callbackOnKeyInputFocusLost;
416   swig_callbackGetNextKeyboardFocusableActor = callbackGetNextKeyboardFocusableActor;
417   swig_callbackOnKeyboardFocusChangeCommitted = callbackOnKeyboardFocusChangeCommitted;
418   swig_callbackOnKeyboardEnter = callbackOnKeyboardEnter;
419   swig_callbackOnPinch = callbackOnPinch;
420   swig_callbackOnPan = callbackOnPan;
421   swig_callbackOnTap = callbackOnTap;
422   swig_callbackOnLongPress = callbackOnLongPress;
423   swig_callbackSignalConnected = callbackSignalConnected;
424   swig_callbackSignalDisconnected = callbackSignalDisconnected;
425 }
426
427 void SwigDirector_ViewWrapperImpl::swig_init_callbacks() {
428   swig_callbackOnSceneConnection = 0;
429   swig_callbackOnSceneDisconnection = 0;
430   swig_callbackOnChildAdd = 0;
431   swig_callbackOnChildRemove = 0;
432   swig_callbackOnPropertySet = 0;
433   swig_callbackOnSizeSet = 0;
434   swig_callbackOnSizeAnimation = 0;
435   swig_callbackOnKeyEvent = 0;
436   swig_callbackOnRelayout = 0;
437   swig_callbackOnSetResizePolicy = 0;
438   swig_callbackGetNaturalSize = 0;
439   swig_callbackCalculateChildSize = 0;
440   swig_callbackGetHeightForWidth = 0;
441   swig_callbackGetWidthForHeight = 0;
442   swig_callbackRelayoutDependentOnChildren__SWIG_0 = 0;
443   swig_callbackRelayoutDependentOnChildren__SWIG_1 = 0;
444   swig_callbackOnCalculateRelayoutSize = 0;
445   swig_callbackOnLayoutNegotiated = 0;
446   swig_callbackOnInitialize = 0;
447   swig_callbackOnStyleChange = 0;
448   swig_callbackOnAccessibilityActivated = 0;
449   swig_callbackOnAccessibilityPan = 0;
450   swig_callbackOnAccessibilityValueChange = 0;
451   swig_callbackOnAccessibilityZoom = 0;
452   swig_callbackOnKeyInputFocusGained = 0;
453   swig_callbackOnKeyInputFocusLost = 0;
454   swig_callbackGetNextKeyboardFocusableActor = 0;
455   swig_callbackOnKeyboardFocusChangeCommitted = 0;
456   swig_callbackOnKeyboardEnter = 0;
457   swig_callbackOnPinch = 0;
458   swig_callbackOnPan = 0;
459   swig_callbackOnTap = 0;
460   swig_callbackOnLongPress = 0;
461   swig_callbackSignalConnected = 0;
462   swig_callbackSignalDisconnected = 0;
463 }
464
465 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_ViewWrapperImpl_CONTROL_BEHAVIOUR_FLAG_COUNT_get() {
466   int jresult ;
467   int result;
468
469   result = (int)Dali::Toolkit::Internal::ControlWrapper::CONTROL_BEHAVIOUR_FLAG_COUNT;
470   jresult = result;
471   return jresult;
472 }
473
474
475 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ViewWrapperImpl(int jarg1) {
476   void * jresult ;
477   Dali::Toolkit::Internal::ControlWrapper::CustomControlBehaviour arg1 ;
478   Dali::Toolkit::Internal::ControlWrapper *result = 0 ;
479
480   arg1 = (Dali::Toolkit::Internal::ControlWrapper::CustomControlBehaviour)jarg1;
481   {
482     try {
483       result = (Dali::Toolkit::Internal::ControlWrapper *)new SwigDirector_ViewWrapperImpl(arg1);
484     } catch (std::out_of_range& e) {
485       {
486         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
487       };
488     } catch (std::exception& e) {
489       {
490         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
491       };
492     } catch (Dali::DaliException e) {
493       {
494         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
495       };
496     } catch (...) {
497       {
498         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
499       };
500     }
501   }
502
503   jresult = (void *)result;
504   return jresult;
505 }
506
507
508 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ViewWrapperImpl_New(char * jarg1, void * jarg2) {
509   void * jresult ;
510   std::string arg1 ;
511   Dali::Toolkit::Internal::ControlWrapper *arg2 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
512   Dali::Toolkit::ControlWrapper result;
513
514   if (!jarg1) {
515     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
516     return 0;
517   }
518   (&arg1)->assign(jarg1);
519   arg2 = (Dali::Toolkit::Internal::ControlWrapper *)jarg2;
520   {
521     try {
522       result = Dali::Toolkit::Internal::ControlWrapper::New(arg1,arg2);
523     } catch (std::out_of_range& e) {
524       {
525         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
526       };
527     } catch (std::exception& e) {
528       {
529         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
530       };
531     } catch (Dali::DaliException e) {
532       {
533         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
534       };
535     } catch (...) {
536       {
537         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
538       };
539     }
540   }
541
542   jresult = new Dali::Toolkit::ControlWrapper((const Dali::Toolkit::ControlWrapper &)result);
543   return jresult;
544 }
545
546
547 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ViewWrapperImpl(void * jarg1) {
548   Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
549
550   arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
551   {
552     try {
553       if (arg1)
554       {
555         arg1->Unreference();
556       }
557     } catch (std::out_of_range& e) {
558       {
559         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
560       };
561     } catch (std::exception& e) {
562       {
563         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
564       };
565     } catch (Dali::DaliException e) {
566       {
567         SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
568       };
569     } catch (...) {
570       {
571         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
572       };
573     }
574   }
575
576 }
577
578
579 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewWrapperImpl_director_connect(void *objarg, SwigDirector_ViewWrapperImpl::SWIG_Callback0_t callback0, SwigDirector_ViewWrapperImpl::SWIG_Callback1_t callback1, SwigDirector_ViewWrapperImpl::SWIG_Callback2_t callback2, SwigDirector_ViewWrapperImpl::SWIG_Callback3_t callback3, SwigDirector_ViewWrapperImpl::SWIG_Callback4_t callback4, SwigDirector_ViewWrapperImpl::SWIG_Callback5_t callback5, SwigDirector_ViewWrapperImpl::SWIG_Callback6_t callback6, SwigDirector_ViewWrapperImpl::SWIG_Callback9_t callback9, SwigDirector_ViewWrapperImpl::SWIG_Callback11_t callback11, SwigDirector_ViewWrapperImpl::SWIG_Callback12_t callback12, SwigDirector_ViewWrapperImpl::SWIG_Callback13_t callback13, SwigDirector_ViewWrapperImpl::SWIG_Callback14_t callback14, SwigDirector_ViewWrapperImpl::SWIG_Callback15_t callback15, SwigDirector_ViewWrapperImpl::SWIG_Callback16_t callback16, SwigDirector_ViewWrapperImpl::SWIG_Callback17_t callback17, SwigDirector_ViewWrapperImpl::SWIG_Callback18_t callback18, SwigDirector_ViewWrapperImpl::SWIG_Callback19_t callback19, SwigDirector_ViewWrapperImpl::SWIG_Callback20_t callback20, SwigDirector_ViewWrapperImpl::SWIG_Callback21_t callback21, SwigDirector_ViewWrapperImpl::SWIG_Callback24_t callback24, SwigDirector_ViewWrapperImpl::SWIG_Callback25_t callback25, SwigDirector_ViewWrapperImpl::SWIG_Callback26_t callback26, SwigDirector_ViewWrapperImpl::SWIG_Callback28_t callback28, SwigDirector_ViewWrapperImpl::SWIG_Callback29_t callback29, SwigDirector_ViewWrapperImpl::SWIG_Callback30_t callback30, SwigDirector_ViewWrapperImpl::SWIG_Callback31_t callback31, SwigDirector_ViewWrapperImpl::SWIG_Callback32_t callback32, SwigDirector_ViewWrapperImpl::SWIG_Callback33_t callback33, SwigDirector_ViewWrapperImpl::SWIG_Callback34_t callback34, SwigDirector_ViewWrapperImpl::SWIG_Callback35_t callback35, SwigDirector_ViewWrapperImpl::SWIG_Callback36_t callback36, SwigDirector_ViewWrapperImpl::SWIG_Callback37_t callback37, SwigDirector_ViewWrapperImpl::SWIG_Callback38_t callback38, SwigDirector_ViewWrapperImpl::SWIG_Callback39_t callback39, SwigDirector_ViewWrapperImpl::SWIG_Callback40_t callback40) {
580   Dali::Toolkit::Internal::ControlWrapper *obj = (Dali::Toolkit::Internal::ControlWrapper *)objarg;
581   SwigDirector_ViewWrapperImpl *director = dynamic_cast<SwigDirector_ViewWrapperImpl *>(obj);
582   if (director) {
583     director->swig_connect_director(callback0, callback1, callback2, callback3, callback4, callback5, callback6, callback9, callback11, callback12, callback13, callback14, callback15, callback16, callback17, callback18, callback19, callback20, callback21, callback24, callback25, callback26, callback28, callback29, callback30, callback31, callback32, callback33, callback34, callback35, callback36, callback37, callback38, callback39, callback40);
584   }
585 }
586
587
588 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GetControlWrapperImpl__SWIG_0(void * jarg1) {
589   void * jresult ;
590   Dali::Toolkit::ControlWrapper *arg1 = 0 ;
591   Dali::Toolkit::Internal::ControlWrapper *result = 0 ;
592
593   arg1 = (Dali::Toolkit::ControlWrapper *)jarg1;
594   if (!arg1) {
595     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::ControlWrapper & type is null", 0);
596     return 0;
597   }
598   {
599     try {
600       result = (Dali::Toolkit::Internal::ControlWrapper *) &Dali::Toolkit::GetControlWrapperImpl(*arg1);
601     } catch (std::out_of_range& e) {
602       {
603         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
604       };
605     } catch (std::exception& e) {
606       {
607         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
608       };
609     } catch (Dali::DaliException e) {
610       {
611         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
612       };
613     } catch (...) {
614       {
615         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
616       };
617     }
618   }
619
620   jresult = (void *)result;
621   return jresult;
622 }
623
624
625 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ViewWrapper_New(char * jarg1, void * jarg2) {
626   void * jresult ;
627   std::string arg1 ;
628   Dali::Toolkit::Internal::ControlWrapper *arg2 = 0 ;
629   Dali::Toolkit::ControlWrapper result;
630
631   if (!jarg1) {
632     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
633     return 0;
634   }
635   (&arg1)->assign(jarg1);
636   arg2 = (Dali::Toolkit::Internal::ControlWrapper *)jarg2;
637   if (!arg2) {
638     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Internal::ControlWrapper & type is null", 0);
639     return 0;
640   }
641   {
642     try {
643       result = Dali::Toolkit::ControlWrapper::New(arg1,*arg2);
644     } catch (std::out_of_range& e) {
645       {
646         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
647       };
648     } catch (std::exception& e) {
649       {
650         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
651       };
652     } catch (Dali::DaliException e) {
653       {
654         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
655       };
656     } catch (...) {
657       {
658         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
659       };
660     }
661   }
662
663   jresult = new Dali::Toolkit::ControlWrapper((const Dali::Toolkit::ControlWrapper &)result);
664   return jresult;
665 }
666
667
668 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ViewWrapper__SWIG_0() {
669   void * jresult ;
670   Dali::Toolkit::ControlWrapper *result = 0 ;
671
672   {
673     try {
674       result = (Dali::Toolkit::ControlWrapper *)new Dali::Toolkit::ControlWrapper();
675     } catch (std::out_of_range& e) {
676       {
677         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
678       };
679     } catch (std::exception& e) {
680       {
681         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
682       };
683     } catch (Dali::DaliException e) {
684       {
685         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
686       };
687     } catch (...) {
688       {
689         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
690       };
691     }
692   }
693
694   jresult = (void *)result;
695   return jresult;
696 }
697
698
699 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ViewWrapper(void * jarg1) {
700   Dali::Toolkit::ControlWrapper *arg1 = (Dali::Toolkit::ControlWrapper *) 0 ;
701
702   arg1 = (Dali::Toolkit::ControlWrapper *)jarg1;
703   {
704     try {
705       delete arg1;
706     } catch (std::out_of_range& e) {
707       {
708         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
709       };
710     } catch (std::exception& e) {
711       {
712         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
713       };
714     } catch (Dali::DaliException e) {
715       {
716         SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
717       };
718     } catch (...) {
719       {
720         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
721       };
722     }
723   }
724
725 }
726
727
728 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ViewWrapper__SWIG_1(void * jarg1) {
729   void * jresult ;
730   Dali::Toolkit::ControlWrapper *arg1 = 0 ;
731   Dali::Toolkit::ControlWrapper *result = 0 ;
732
733   arg1 = (Dali::Toolkit::ControlWrapper *)jarg1;
734   if (!arg1) {
735     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::ControlWrapper const & type is null", 0);
736     return 0;
737   }
738   {
739     try {
740       result = (Dali::Toolkit::ControlWrapper *)new Dali::Toolkit::ControlWrapper((Dali::Toolkit::ControlWrapper const &)*arg1);
741     } catch (std::out_of_range& e) {
742       {
743         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
744       };
745     } catch (std::exception& e) {
746       {
747         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
748       };
749     } catch (Dali::DaliException e) {
750       {
751         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
752       };
753     } catch (...) {
754       {
755         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
756       };
757     }
758   }
759
760   jresult = (void *)result;
761   return jresult;
762 }
763
764
765 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ViewWrapper_Assign(void * jarg1, void * jarg2) {
766   void * jresult ;
767   Dali::Toolkit::ControlWrapper *arg1 = (Dali::Toolkit::ControlWrapper *) 0 ;
768   Dali::Toolkit::ControlWrapper *arg2 = 0 ;
769   Dali::Toolkit::ControlWrapper *result = 0 ;
770
771   arg1 = (Dali::Toolkit::ControlWrapper *)jarg1;
772   arg2 = (Dali::Toolkit::ControlWrapper *)jarg2;
773   if (!arg2) {
774     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::ControlWrapper const & type is null", 0);
775     return 0;
776   }
777   {
778     try {
779       result = (Dali::Toolkit::ControlWrapper *) &(arg1)->operator =((Dali::Toolkit::ControlWrapper const &)*arg2);
780     } catch (std::out_of_range& e) {
781       {
782         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
783       };
784     } catch (std::exception& e) {
785       {
786         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
787       };
788     } catch (Dali::DaliException e) {
789       {
790         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
791       };
792     } catch (...) {
793       {
794         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
795       };
796     }
797   }
798
799   jresult = (void *)result;
800   return jresult;
801 }
802
803
804 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ViewWrapper_DownCast(void * jarg1) {
805   void * jresult ;
806   Dali::BaseHandle arg1 ;
807   Dali::BaseHandle *argp1 ;
808   Dali::Toolkit::ControlWrapper result;
809
810   argp1 = (Dali::BaseHandle *)jarg1;
811   if (!argp1) {
812     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0);
813     return 0;
814   }
815   arg1 = *argp1;
816   {
817     try {
818       result = Dali::Toolkit::ControlWrapper::DownCast(arg1);
819     } catch (std::out_of_range& e) {
820       {
821         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
822       };
823     } catch (std::exception& e) {
824       {
825         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
826       };
827     } catch (Dali::DaliException e) {
828       {
829         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
830       };
831     } catch (...) {
832       {
833         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
834       };
835     }
836   }
837
838   jresult = new Dali::Toolkit::ControlWrapper((const Dali::Toolkit::ControlWrapper &)result);
839   return jresult;
840 }
841
842 SWIGEXPORT Dali::Toolkit::Internal::Control * SWIGSTDCALL CSharp_Dali_ViewWrapperImpl_SWIGUpcast(Dali::Toolkit::Internal::ControlWrapper *jarg1) {
843     return (Dali::Toolkit::Internal::Control *)jarg1;
844 }
845
846 SWIGEXPORT Dali::Toolkit::Control * SWIGSTDCALL CSharp_Dali_ViewWrapper_SWIGUpcast(Dali::Toolkit::ControlWrapper *jarg1) {
847     return (Dali::Toolkit::Control *)jarg1;
848 }
849
850 SWIGEXPORT void SWIGSTDCALL CSharp_ViewWrapperImpl_RelayoutRequest(void * jarg1) {
851   Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
852
853   arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
854   {
855     try {
856       (arg1)->RelayoutRequest();
857     } catch (std::out_of_range& e) {
858       {
859         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
860       };
861     } catch (std::exception& e) {
862       {
863         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
864       };
865     } catch (Dali::DaliException e) {
866       {
867         SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
868       };
869     } catch (...) {
870       {
871         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
872       };
873     }
874   }
875
876 }
877
878
879 SWIGEXPORT float SWIGSTDCALL CSharp_ViewWrapperImpl_GetHeightForWidthBase(void * jarg1, float jarg2) {
880   float jresult ;
881   Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
882   float arg2 ;
883   float result;
884
885   arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
886   arg2 = (float)jarg2;
887   {
888     try {
889       result = (float)(arg1)->GetHeightForWidthBase(arg2);
890     } catch (std::out_of_range& e) {
891       {
892         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
893       };
894     } catch (std::exception& e) {
895       {
896         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
897       };
898     } catch (Dali::DaliException e) {
899       {
900         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
901       };
902     } catch (...) {
903       {
904         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
905       };
906     }
907   }
908
909   jresult = result;
910   return jresult;
911 }
912
913
914 SWIGEXPORT float SWIGSTDCALL CSharp_ViewWrapperImpl_GetWidthForHeightBase(void * jarg1, float jarg2) {
915   float jresult ;
916   Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
917   float arg2 ;
918   float result;
919
920   arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
921   arg2 = (float)jarg2;
922   {
923     try {
924       result = (float)(arg1)->GetWidthForHeightBase(arg2);
925     } catch (std::out_of_range& e) {
926       {
927         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
928       };
929     } catch (std::exception& e) {
930       {
931         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
932       };
933     } catch (Dali::DaliException e) {
934       {
935         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
936       };
937     } catch (...) {
938       {
939         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
940       };
941     }
942   }
943
944   jresult = result;
945   return jresult;
946 }
947
948
949 SWIGEXPORT float SWIGSTDCALL CSharp_ViewWrapperImpl_CalculateChildSizeBase(void * jarg1, void * jarg2, int jarg3) {
950   float jresult ;
951   Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
952   Dali::Actor *arg2 = 0 ;
953   Dali::Dimension::Type arg3 ;
954   float result;
955
956   arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
957   arg2 = (Dali::Actor *)jarg2;
958   if (!arg2) {
959     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Actor const & type is null", 0);
960     return 0;
961   }
962   arg3 = (Dali::Dimension::Type)jarg3;
963   {
964     try {
965       result = (float)(arg1)->CalculateChildSizeBase((Dali::Actor const &)*arg2,arg3);
966     } catch (std::out_of_range& e) {
967       {
968         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
969       };
970     } catch (std::exception& e) {
971       {
972         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
973       };
974     } catch (Dali::DaliException e) {
975       {
976         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
977       };
978     } catch (...) {
979       {
980         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
981       };
982     }
983   }
984
985   jresult = result;
986   return jresult;
987 }
988
989
990 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ViewWrapperImpl_RelayoutDependentOnChildrenBase__SWIG_0(void * jarg1, int jarg2) {
991   unsigned int jresult ;
992   Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
993   Dali::Dimension::Type arg2 ;
994   bool result;
995
996   arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
997   arg2 = (Dali::Dimension::Type)jarg2;
998   {
999     try {
1000       result = (bool)(arg1)->RelayoutDependentOnChildrenBase(arg2);
1001     } catch (std::out_of_range& e) {
1002       {
1003         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1004       };
1005     } catch (std::exception& e) {
1006       {
1007         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1008       };
1009     } catch (Dali::DaliException e) {
1010       {
1011         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1012       };
1013     } catch (...) {
1014       {
1015         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1016       };
1017     }
1018   }
1019
1020   jresult = result;
1021   return jresult;
1022 }
1023
1024
1025 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ViewWrapperImpl_RelayoutDependentOnChildrenBase__SWIG_1(void * jarg1) {
1026   unsigned int jresult ;
1027   Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
1028   bool result;
1029
1030   arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
1031   {
1032     try {
1033       result = (bool)(arg1)->RelayoutDependentOnChildrenBase();
1034     } catch (std::out_of_range& e) {
1035       {
1036         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1037       };
1038     } catch (std::exception& e) {
1039       {
1040         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1041       };
1042     } catch (Dali::DaliException e) {
1043       {
1044         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1045       };
1046     } catch (...) {
1047       {
1048         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1049       };
1050     }
1051   }
1052
1053   jresult = result;
1054   return jresult;
1055 }
1056
1057 SWIGEXPORT void SWIGSTDCALL CSharp_ViewWrapperImpl_RegisterVisual__SWIG_0(void * jarg1, int jarg2, void * jarg3) {
1058   Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
1059   Dali::Property::Index arg2 ;
1060   Dali::Toolkit::Visual::Base *arg3 = 0 ;
1061
1062   arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
1063   arg2 = (Dali::Property::Index)jarg2;
1064   arg3 = (Dali::Toolkit::Visual::Base *)jarg3;
1065   if (!arg3) {
1066     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Visual::Base & type is null", 0);
1067     return ;
1068   }
1069   {
1070     try {
1071       (arg1)->RegisterVisual(arg2,*arg3);
1072     } catch (std::out_of_range& e) {
1073       {
1074         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1075       };
1076     } catch (std::exception& e) {
1077       {
1078         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1079       };
1080     } catch (Dali::DaliException e) {
1081       {
1082         SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1083       };
1084     } catch (...) {
1085       {
1086         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1087       };
1088     }
1089   }
1090
1091 }
1092
1093
1094 SWIGEXPORT void SWIGSTDCALL CSharp_ViewWrapperImpl_RegisterVisual__SWIG_1(void * jarg1, int jarg2, void * jarg3, unsigned int jarg4) {
1095   Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
1096   Dali::Property::Index arg2 ;
1097   Dali::Toolkit::Visual::Base *arg3 = 0 ;
1098   bool arg4 ;
1099
1100   arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
1101   arg2 = (Dali::Property::Index)jarg2;
1102   arg3 = (Dali::Toolkit::Visual::Base *)jarg3;
1103   if (!arg3) {
1104     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Visual::Base & type is null", 0);
1105     return ;
1106   }
1107   arg4 = jarg4 ? true : false;
1108   {
1109     try {
1110       (arg1)->RegisterVisual(arg2,*arg3,arg4);
1111     } catch (std::out_of_range& e) {
1112       {
1113         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1114       };
1115     } catch (std::exception& e) {
1116       {
1117         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1118       };
1119     } catch (Dali::DaliException e) {
1120       {
1121         SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1122       };
1123     } catch (...) {
1124       {
1125         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1126       };
1127     }
1128   }
1129
1130 }
1131
1132
1133 SWIGEXPORT void SWIGSTDCALL CSharp_ViewWrapperImpl_UnregisterVisual(void * jarg1, int jarg2) {
1134   Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
1135   Dali::Property::Index arg2 ;
1136
1137   arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
1138   arg2 = (Dali::Property::Index)jarg2;
1139   {
1140     try {
1141       (arg1)->UnregisterVisual(arg2);
1142     } catch (std::out_of_range& e) {
1143       {
1144         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1145       };
1146     } catch (std::exception& e) {
1147       {
1148         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1149       };
1150     } catch (Dali::DaliException e) {
1151       {
1152         SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1153       };
1154     } catch (...) {
1155       {
1156         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1157       };
1158     }
1159   }
1160
1161 }
1162
1163
1164 SWIGEXPORT void * SWIGSTDCALL CSharp_ViewWrapperImpl_GetVisual(void * jarg1, int jarg2) {
1165   void * jresult ;
1166   Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
1167   Dali::Property::Index arg2 ;
1168   Dali::Toolkit::Visual::Base result;
1169
1170   arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
1171   arg2 = (Dali::Property::Index)jarg2;
1172   {
1173     try {
1174       result = ((Dali::Toolkit::Internal::ControlWrapper const *)arg1)->GetVisual(arg2);
1175     } catch (std::out_of_range& e) {
1176       {
1177         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1178       };
1179     } catch (std::exception& e) {
1180       {
1181         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1182       };
1183     } catch (Dali::DaliException e) {
1184       {
1185         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1186       };
1187     } catch (...) {
1188       {
1189         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1190       };
1191     }
1192   }
1193
1194   jresult = new Dali::Toolkit::Visual::Base((const Dali::Toolkit::Visual::Base &)result);
1195   return jresult;
1196 }
1197
1198
1199 SWIGEXPORT void SWIGSTDCALL CSharp_ViewWrapperImpl_EnableVisual(void * jarg1, int jarg2, unsigned int jarg3) {
1200   Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
1201   Dali::Property::Index arg2 ;
1202   bool arg3 ;
1203
1204   arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
1205   arg2 = (Dali::Property::Index)jarg2;
1206   arg3 = jarg3 ? true : false;
1207   {
1208     try {
1209       (arg1)->EnableVisual(arg2,arg3);
1210     } catch (std::out_of_range& e) {
1211       {
1212         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1213       };
1214     } catch (std::exception& e) {
1215       {
1216         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1217       };
1218     } catch (Dali::DaliException e) {
1219       {
1220         SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1221       };
1222     } catch (...) {
1223       {
1224         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1225       };
1226     }
1227   }
1228
1229 }
1230
1231
1232 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ViewWrapperImpl_IsVisualEnabled(void * jarg1, int jarg2) {
1233   unsigned int jresult ;
1234   Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
1235   Dali::Property::Index arg2 ;
1236   bool result;
1237
1238   arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
1239   arg2 = (Dali::Property::Index)jarg2;
1240   {
1241     try {
1242       result = (bool)((Dali::Toolkit::Internal::ControlWrapper const *)arg1)->IsVisualEnabled(arg2);
1243     } catch (std::out_of_range& e) {
1244       {
1245         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1246       };
1247     } catch (std::exception& e) {
1248       {
1249         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1250       };
1251     } catch (Dali::DaliException e) {
1252       {
1253         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1254       };
1255     } catch (...) {
1256       {
1257         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1258       };
1259     }
1260   }
1261
1262   jresult = result;
1263   return jresult;
1264 }
1265
1266 SWIGEXPORT void * SWIGSTDCALL CSharp_ViewWrapperImpl_CreateTransition(void * jarg1, void * jarg2) {
1267   void * jresult ;
1268   Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
1269   Dali::Toolkit::TransitionData *arg2 = 0 ;
1270   Dali::Animation result;
1271
1272   arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
1273   arg2 = (Dali::Toolkit::TransitionData *)jarg2;
1274   if (!arg2) {
1275     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::TransitionData const & type is null", 0);
1276     return 0;
1277   }
1278   {
1279     try {
1280       result = (arg1)->CreateTransition((Dali::Toolkit::TransitionData const &)*arg2);
1281     } catch (std::out_of_range& e) {
1282       {
1283         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1284       };
1285     } catch (std::exception& e) {
1286       {
1287         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1288       };
1289     } catch (Dali::DaliException e) {
1290       {
1291         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1292       };
1293     } catch (...) {
1294       {
1295         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1296       };
1297     }
1298   }
1299
1300   jresult = new Dali::Animation((const Dali::Animation &)result);
1301   return jresult;
1302 }
1303
1304
1305 SWIGEXPORT void SWIGSTDCALL CSharp_ViewWrapperImpl_EmitKeyInputFocusSignal(void * jarg1, unsigned int jarg2) {
1306   Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
1307   bool arg2 ;
1308
1309   arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
1310   arg2 = jarg2 ? true : false;
1311   {
1312     try {
1313       (arg1)->EmitKeyInputFocusSignal(arg2);
1314     } catch (std::out_of_range& e) {
1315       {
1316         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1317       };
1318     } catch (std::exception& e) {
1319       {
1320         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1321       };
1322     } catch (Dali::DaliException e) {
1323       {
1324         SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1325       };
1326     } catch (...) {
1327       {
1328         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1329       };
1330     }
1331   }
1332
1333 }
1334
1335 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewWrapperImpl_ApplyThemeStyle(void * jarg1) {
1336   Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
1337
1338   arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
1339   {
1340     try {
1341       (arg1)->ApplyThemeStyle();
1342     } catch (std::out_of_range& e) {
1343       {
1344         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1345       };
1346     } catch (std::exception& e) {
1347       {
1348         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1349       };
1350     } catch (Dali::DaliException e) {
1351       {
1352         SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1353       };
1354     } catch (...) {
1355       {
1356         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1357       };
1358     }
1359   }
1360
1361 }
1362
1363
1364 #ifdef __cplusplus
1365 }
1366 #endif