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