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