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