2 * Copyright (c) 2020 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #include "view-wrapper-impl-wrap.h"
22 #include <dali-toolkit/devel-api/visual-factory/visual-base.h>
29 SwigDirector_ViewWrapperImpl::SwigDirector_ViewWrapperImpl(Dali::Toolkit::Internal::ControlWrapper::CustomControlBehaviour behaviourFlags) : Dali::Toolkit::Internal::ControlWrapper(behaviourFlags) {
30 swig_init_callbacks();
33 SwigDirector_ViewWrapperImpl::~SwigDirector_ViewWrapperImpl() {
38 void SwigDirector_ViewWrapperImpl::OnSceneConnection(int depth) {
39 swig_callbackOnSceneConnection(depth);
41 Dali::Toolkit::Internal::Control::OnSceneConnection(depth);
44 void SwigDirector_ViewWrapperImpl::OnSceneDisconnection() {
45 swig_callbackOnSceneDisconnection();
47 Dali::Toolkit::Internal::Control::OnSceneDisconnection();
50 void SwigDirector_ViewWrapperImpl::OnChildAdd(Dali::Actor &child) {
51 void * jchild = (Dali::Actor *) &child;
52 swig_callbackOnChildAdd(jchild);
54 Dali::Toolkit::Internal::Control::OnChildAdd( child );
57 void SwigDirector_ViewWrapperImpl::OnChildRemove(Dali::Actor &child) {
58 void * jchild = (Dali::Actor *) &child;
59 swig_callbackOnChildRemove(jchild);
61 Dali::Toolkit::Internal::Control::OnChildRemove( child );
64 void SwigDirector_ViewWrapperImpl::OnPropertySet(Dali::Property::Index index, Dali::Property::Value propertyValue) {
66 void * jpropertyValue ;
69 jpropertyValue = (void *)new Dali::Property::Value((const Dali::Property::Value &)propertyValue);
70 swig_callbackOnPropertySet(jindex, jpropertyValue);
72 Dali::Toolkit::Internal::ControlWrapper::OnPropertySet(index,propertyValue);
75 void SwigDirector_ViewWrapperImpl::OnSizeSet(Dali::Vector3 const &targetSize) {
76 swig_callbackOnSizeSet((Dali::Vector3 *) &targetSize);
78 Dali::Toolkit::Internal::Control::OnSizeSet(targetSize);
81 void SwigDirector_ViewWrapperImpl::OnSizeAnimation(Dali::Animation &animation, Dali::Vector3 const &targetSize) {
82 swig_callbackOnSizeAnimation(new Dali::Animation(animation), (Dali::Vector3 *) &targetSize);
84 Dali::Toolkit::Internal::Control::OnSizeAnimation(animation,targetSize);
88 bool SwigDirector_ViewWrapperImpl::OnHoverEvent(Dali::HoverEvent const &event) {
89 bool c_result = SwigValueInit< bool >() ;
90 unsigned int jresult = 0 ;
93 if (!swig_callbackOnHoverEvent) {
94 return Dali::Toolkit::Internal::Control::OnHoverEvent(event);
96 jarg0 = (Dali::HoverEvent *) &event;
97 jresult = (unsigned int) swig_callbackOnHoverEvent(jarg0);
98 c_result = jresult ? true : false;
103 bool SwigDirector_ViewWrapperImpl::OnKeyEvent(Dali::KeyEvent const &event) {
104 bool c_result = SwigValueInit< bool >() ;
105 unsigned int jresult = 0 ;
108 if (!swig_callbackOnKeyEvent) {
109 return Dali::Toolkit::Internal::Control::OnKeyEvent(event);
111 jarg0 = (Dali::KeyEvent *) &event;
112 jresult = (unsigned int) swig_callbackOnKeyEvent(jarg0);
113 c_result = jresult ? true : false;
118 bool SwigDirector_ViewWrapperImpl::OnWheelEvent(Dali::WheelEvent const &event) {
119 bool c_result = SwigValueInit< bool >() ;
120 unsigned int jresult = 0 ;
123 if (!swig_callbackOnWheelEvent) {
124 return Dali::Toolkit::Internal::Control::OnWheelEvent(event);
126 jarg0 = (Dali::WheelEvent *) &event;
127 jresult = (unsigned int) swig_callbackOnWheelEvent(jarg0);
128 c_result = jresult ? true : false;
133 void SwigDirector_ViewWrapperImpl::OnRelayout(Dali::Vector2 const &size, Dali::RelayoutContainer &container) {
135 void * jcontainer = 0 ;
137 jsize = (Dali::Vector2 *) &size;
138 jcontainer = (Dali::RelayoutContainer *) &container;
139 swig_callbackOnRelayout(jsize, jcontainer);
141 Dali::Toolkit::Internal::Control::OnRelayout(size,container);
144 void SwigDirector_ViewWrapperImpl::OnSetResizePolicy(Dali::ResizePolicy::Type policy, Dali::Dimension::Type dimension) {
148 jpolicy = (int)policy;
149 jdimension = (int)dimension;
150 swig_callbackOnSetResizePolicy(jpolicy, jdimension);
152 Dali::Toolkit::Internal::Control::OnSetResizePolicy(policy,dimension);
155 Dali::Vector3 SwigDirector_ViewWrapperImpl::GetNaturalSize() {
156 Dali::Vector3 c_result ;
159 if (!swig_callbackGetNaturalSize) {
160 return Dali::Toolkit::Internal::Control::GetNaturalSize();
162 jresult = (void *) swig_callbackGetNaturalSize();
164 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Unexpected null return for type Dali::Vector3", 0);
167 c_result = *(Dali::Vector3 *)jresult;
172 float SwigDirector_ViewWrapperImpl::CalculateChildSize(Dali::Actor const &child, Dali::Dimension::Type dimension) {
173 float c_result = SwigValueInit< float >() ;
178 if (!swig_callbackCalculateChildSize) {
179 return Dali::Toolkit::Internal::Control::CalculateChildSize(child,dimension);
181 jchild = (Dali::Actor *) &child;
182 jdimension = (int)dimension;
183 jresult = (float) swig_callbackCalculateChildSize(jchild, jdimension);
184 c_result = (float)jresult;
189 float SwigDirector_ViewWrapperImpl::GetHeightForWidth(float width) {
190 float c_result = SwigValueInit< float >() ;
194 if (!swig_callbackGetHeightForWidth) {
195 return Dali::Toolkit::Internal::Control::GetHeightForWidth(width);
198 jresult = (float) swig_callbackGetHeightForWidth(jwidth);
199 c_result = (float)jresult;
204 float SwigDirector_ViewWrapperImpl::GetWidthForHeight(float height) {
205 float c_result = SwigValueInit< float >() ;
209 if (!swig_callbackGetWidthForHeight) {
210 return Dali::Toolkit::Internal::Control::GetWidthForHeight(height);
213 jresult = (float) swig_callbackGetWidthForHeight(jheight);
214 c_result = (float)jresult;
219 bool SwigDirector_ViewWrapperImpl::RelayoutDependentOnChildren(Dali::Dimension::Type dimension) {
220 bool c_result = SwigValueInit< bool >() ;
221 unsigned int jresult = 0 ;
224 if (!swig_callbackRelayoutDependentOnChildren__SWIG_0) {
225 return Dali::Toolkit::Internal::Control::RelayoutDependentOnChildren(dimension);
227 jdimension = (int)dimension;
228 jresult = (unsigned int) swig_callbackRelayoutDependentOnChildren__SWIG_0(jdimension);
229 c_result = jresult ? true : false;
234 void SwigDirector_ViewWrapperImpl::OnCalculateRelayoutSize(Dali::Dimension::Type dimension) {
237 jdimension = (int)dimension;
238 swig_callbackOnCalculateRelayoutSize(jdimension);
240 Dali::Toolkit::Internal::Control::OnCalculateRelayoutSize(dimension);
243 void SwigDirector_ViewWrapperImpl::OnLayoutNegotiated(float size, Dali::Dimension::Type dimension) {
248 jdimension = (int)dimension;
249 swig_callbackOnLayoutNegotiated(jsize, jdimension);
251 Dali::Toolkit::Internal::Control::OnLayoutNegotiated(size,dimension);
254 void SwigDirector_ViewWrapperImpl::OnInitialize() {
255 swig_callbackOnInitialize();
257 Dali::Toolkit::Internal::Control::OnInitialize();
260 void SwigDirector_ViewWrapperImpl::OnStyleChange(Dali::Toolkit::StyleManager styleManager, Dali::StyleChange::Type change) {
261 void * jstyleManager ;
264 jstyleManager = (void *)new Dali::Toolkit::StyleManager((const Dali::Toolkit::StyleManager &)styleManager);
265 jchange = (int)change;
266 swig_callbackOnStyleChange(jstyleManager, jchange);
268 Dali::Toolkit::Internal::Control::OnStyleChange(styleManager,change);
271 bool SwigDirector_ViewWrapperImpl::OnAccessibilityActivated() {
272 bool c_result = SwigValueInit< bool >() ;
273 unsigned int jresult = 0 ;
275 if (!swig_callbackOnAccessibilityActivated) {
276 return Dali::Toolkit::Internal::Control::OnAccessibilityActivated();
278 jresult = (unsigned int) swig_callbackOnAccessibilityActivated();
279 c_result = jresult ? true : false;
284 bool SwigDirector_ViewWrapperImpl::OnAccessibilityPan(Dali::PanGesture gesture) {
285 bool c_result = SwigValueInit< bool >() ;
286 unsigned int jresult = 0 ;
289 if (!swig_callbackOnAccessibilityPan) {
290 return Dali::Toolkit::Internal::Control::OnAccessibilityPan(gesture);
292 jgesture = (void *)new Dali::PanGesture((const Dali::PanGesture &)gesture);
293 jresult = (unsigned int) swig_callbackOnAccessibilityPan(jgesture);
294 c_result = jresult ? true : false;
299 bool SwigDirector_ViewWrapperImpl::OnAccessibilityValueChange(bool isIncrease) {
300 bool c_result = SwigValueInit< bool >();
301 unsigned int jresult = 0;
302 unsigned int jisIncrease;
304 if (!swig_callbackOnAccessibilityValueChange) {
305 return Dali::Toolkit::Internal::Control::OnAccessibilityValueChange(isIncrease);
307 jisIncrease = isIncrease;
308 jresult = (unsigned int) swig_callbackOnAccessibilityValueChange(jisIncrease);
309 c_result = jresult ? true : false;
314 bool SwigDirector_ViewWrapperImpl::OnAccessibilityZoom() {
315 bool c_result = SwigValueInit< bool >() ;
316 unsigned int jresult = 0 ;
318 if (!swig_callbackOnAccessibilityZoom) {
319 return Dali::Toolkit::Internal::Control::OnAccessibilityZoom();
321 jresult = (unsigned int) swig_callbackOnAccessibilityZoom();
322 c_result = jresult ? true : false;
327 void SwigDirector_ViewWrapperImpl::OnKeyInputFocusGained() {
328 swig_callbackOnKeyInputFocusGained();
330 Dali::Toolkit::Internal::Control::OnKeyInputFocusGained();
333 void SwigDirector_ViewWrapperImpl::OnKeyInputFocusLost() {
334 swig_callbackOnKeyInputFocusLost();
336 Dali::Toolkit::Internal::Control::OnKeyInputFocusLost();
339 Dali::Actor SwigDirector_ViewWrapperImpl::GetNextKeyboardFocusableActor(Dali::Actor currentFocusedActor, Dali::Toolkit::Control::KeyboardFocus::Direction direction, bool loopEnabled) {
340 Dali::Actor c_result ;
342 void * jcurrentFocusedActor ;
344 unsigned int jloopEnabled ;
346 if (!swig_callbackGetNextKeyboardFocusableActor) {
347 return Dali::Toolkit::Internal::Control::GetNextKeyboardFocusableActor(currentFocusedActor,direction,loopEnabled);
349 jcurrentFocusedActor = (void *)new Dali::Actor((const Dali::Actor &)currentFocusedActor);
350 jdirection = (int)direction;
351 jloopEnabled = loopEnabled;
352 jresult = (void *) swig_callbackGetNextKeyboardFocusableActor(jcurrentFocusedActor, jdirection, jloopEnabled);
354 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Unexpected null return for type Dali::Actor", 0);
357 c_result = *(Dali::Actor *)jresult;
362 void SwigDirector_ViewWrapperImpl::OnKeyboardFocusChangeCommitted(Dali::Actor commitedFocusableActor) {
363 void * jcommitedFocusableActor ;
364 jcommitedFocusableActor = (void *)new Dali::Actor((const Dali::Actor &)commitedFocusableActor);
365 swig_callbackOnKeyboardFocusChangeCommitted(jcommitedFocusableActor);
367 Dali::Toolkit::Internal::Control::OnKeyboardFocusChangeCommitted(commitedFocusableActor);
370 bool SwigDirector_ViewWrapperImpl::OnKeyboardEnter() {
371 bool c_result = SwigValueInit< bool >() ;
372 unsigned int jresult = 0 ;
374 if (!swig_callbackOnKeyboardEnter) {
375 return Dali::Toolkit::Internal::Control::OnKeyboardEnter();
377 jresult = (unsigned int) swig_callbackOnKeyboardEnter();
378 c_result = jresult ? true : false;
383 void SwigDirector_ViewWrapperImpl::OnPinch(Dali::PinchGesture const &pinch) {
385 jpinch = (Dali::PinchGesture *) &pinch;
386 swig_callbackOnPinch(jpinch);
388 Dali::Toolkit::Internal::Control::OnPinch(pinch);
391 void SwigDirector_ViewWrapperImpl::OnPan(Dali::PanGesture const &pan) {
393 jpan = (Dali::PanGesture *) &pan;
394 swig_callbackOnPan(jpan);
396 Dali::Toolkit::Internal::Control::OnPan(pan);
399 void SwigDirector_ViewWrapperImpl::OnTap(Dali::TapGesture const &tap) {
401 jtap = (Dali::TapGesture *) &tap;
402 swig_callbackOnTap(jtap);
404 Dali::Toolkit::Internal::Control::OnTap(tap);
407 void SwigDirector_ViewWrapperImpl::OnLongPress(Dali::LongPressGesture const &longPress) {
408 void * jlongPress = 0 ;
410 jlongPress = (Dali::LongPressGesture *) &longPress;
411 swig_callbackOnLongPress(jlongPress);
413 Dali::Toolkit::Internal::Control::OnLongPress(longPress);
416 Dali::Toolkit::Internal::Control::Extension *SwigDirector_ViewWrapperImpl::GetControlExtension() {
417 return Dali::Toolkit::Internal::Control::GetControlExtension();
420 void SwigDirector_ViewWrapperImpl::swig_connect_director(SWIG_Callback0_t callbackOnSceneConnection, SWIG_Callback1_t callbackOnSceneDisconnection, SWIG_Callback2_t callbackOnChildAdd, SWIG_Callback3_t callbackOnChildRemove, SWIG_Callback4_t callbackOnPropertySet, SWIG_Callback5_t callbackOnSizeSet, SWIG_Callback6_t callbackOnSizeAnimation, SWIG_Callback8_t callbackOnHoverEvent, SWIG_Callback9_t callbackOnKeyEvent, SWIG_Callback10_t callbackOnWheelEvent, SWIG_Callback11_t callbackOnRelayout, SWIG_Callback12_t callbackOnSetResizePolicy, SWIG_Callback13_t callbackGetNaturalSize, SWIG_Callback14_t callbackCalculateChildSize, SWIG_Callback15_t callbackGetHeightForWidth, SWIG_Callback16_t callbackGetWidthForHeight, SWIG_Callback17_t callbackRelayoutDependentOnChildren__SWIG_0, SWIG_Callback18_t callbackRelayoutDependentOnChildren__SWIG_1, SWIG_Callback19_t callbackOnCalculateRelayoutSize, SWIG_Callback20_t callbackOnLayoutNegotiated, SWIG_Callback21_t callbackOnInitialize, SWIG_Callback24_t callbackOnStyleChange, SWIG_Callback25_t callbackOnAccessibilityActivated, SWIG_Callback26_t callbackOnAccessibilityPan, SWIG_Callback28_t callbackOnAccessibilityValueChange, SWIG_Callback29_t callbackOnAccessibilityZoom, SWIG_Callback30_t callbackOnKeyInputFocusGained, SWIG_Callback31_t callbackOnKeyInputFocusLost, SWIG_Callback32_t callbackGetNextKeyboardFocusableActor, SWIG_Callback33_t callbackOnKeyboardFocusChangeCommitted, SWIG_Callback34_t callbackOnKeyboardEnter, SWIG_Callback35_t callbackOnPinch, SWIG_Callback36_t callbackOnPan, SWIG_Callback37_t callbackOnTap, SWIG_Callback38_t callbackOnLongPress, SWIG_Callback39_t callbackSignalConnected, SWIG_Callback40_t callbackSignalDisconnected) {
421 swig_callbackOnSceneConnection = callbackOnSceneConnection;
422 swig_callbackOnSceneDisconnection = callbackOnSceneDisconnection;
423 swig_callbackOnChildAdd = callbackOnChildAdd;
424 swig_callbackOnChildRemove = callbackOnChildRemove;
425 swig_callbackOnPropertySet = callbackOnPropertySet;
426 swig_callbackOnSizeSet = callbackOnSizeSet;
427 swig_callbackOnSizeAnimation = callbackOnSizeAnimation;
428 swig_callbackOnHoverEvent = callbackOnHoverEvent;
429 swig_callbackOnKeyEvent = callbackOnKeyEvent;
430 swig_callbackOnWheelEvent = callbackOnWheelEvent;
431 swig_callbackOnRelayout = callbackOnRelayout;
432 swig_callbackOnSetResizePolicy = callbackOnSetResizePolicy;
433 swig_callbackGetNaturalSize = callbackGetNaturalSize;
434 swig_callbackCalculateChildSize = callbackCalculateChildSize;
435 swig_callbackGetHeightForWidth = callbackGetHeightForWidth;
436 swig_callbackGetWidthForHeight = callbackGetWidthForHeight;
437 swig_callbackRelayoutDependentOnChildren__SWIG_0 = callbackRelayoutDependentOnChildren__SWIG_0;
438 swig_callbackRelayoutDependentOnChildren__SWIG_1 = callbackRelayoutDependentOnChildren__SWIG_1;
439 swig_callbackOnCalculateRelayoutSize = callbackOnCalculateRelayoutSize;
440 swig_callbackOnLayoutNegotiated = callbackOnLayoutNegotiated;
441 swig_callbackOnInitialize = callbackOnInitialize;
442 swig_callbackOnStyleChange = callbackOnStyleChange;
443 swig_callbackOnAccessibilityActivated = callbackOnAccessibilityActivated;
444 swig_callbackOnAccessibilityPan = callbackOnAccessibilityPan;
445 swig_callbackOnAccessibilityValueChange = callbackOnAccessibilityValueChange;
446 swig_callbackOnAccessibilityZoom = callbackOnAccessibilityZoom;
447 swig_callbackOnKeyInputFocusGained = callbackOnKeyInputFocusGained;
448 swig_callbackOnKeyInputFocusLost = callbackOnKeyInputFocusLost;
449 swig_callbackGetNextKeyboardFocusableActor = callbackGetNextKeyboardFocusableActor;
450 swig_callbackOnKeyboardFocusChangeCommitted = callbackOnKeyboardFocusChangeCommitted;
451 swig_callbackOnKeyboardEnter = callbackOnKeyboardEnter;
452 swig_callbackOnPinch = callbackOnPinch;
453 swig_callbackOnPan = callbackOnPan;
454 swig_callbackOnTap = callbackOnTap;
455 swig_callbackOnLongPress = callbackOnLongPress;
456 swig_callbackSignalConnected = callbackSignalConnected;
457 swig_callbackSignalDisconnected = callbackSignalDisconnected;
460 void SwigDirector_ViewWrapperImpl::swig_init_callbacks() {
461 swig_callbackOnSceneConnection = 0;
462 swig_callbackOnSceneDisconnection = 0;
463 swig_callbackOnChildAdd = 0;
464 swig_callbackOnChildRemove = 0;
465 swig_callbackOnPropertySet = 0;
466 swig_callbackOnSizeSet = 0;
467 swig_callbackOnSizeAnimation = 0;
468 swig_callbackOnHoverEvent = 0;
469 swig_callbackOnKeyEvent = 0;
470 swig_callbackOnWheelEvent = 0;
471 swig_callbackOnRelayout = 0;
472 swig_callbackOnSetResizePolicy = 0;
473 swig_callbackGetNaturalSize = 0;
474 swig_callbackCalculateChildSize = 0;
475 swig_callbackGetHeightForWidth = 0;
476 swig_callbackGetWidthForHeight = 0;
477 swig_callbackRelayoutDependentOnChildren__SWIG_0 = 0;
478 swig_callbackRelayoutDependentOnChildren__SWIG_1 = 0;
479 swig_callbackOnCalculateRelayoutSize = 0;
480 swig_callbackOnLayoutNegotiated = 0;
481 swig_callbackOnInitialize = 0;
482 swig_callbackOnStyleChange = 0;
483 swig_callbackOnAccessibilityActivated = 0;
484 swig_callbackOnAccessibilityPan = 0;
485 swig_callbackOnAccessibilityValueChange = 0;
486 swig_callbackOnAccessibilityZoom = 0;
487 swig_callbackOnKeyInputFocusGained = 0;
488 swig_callbackOnKeyInputFocusLost = 0;
489 swig_callbackGetNextKeyboardFocusableActor = 0;
490 swig_callbackOnKeyboardFocusChangeCommitted = 0;
491 swig_callbackOnKeyboardEnter = 0;
492 swig_callbackOnPinch = 0;
493 swig_callbackOnPan = 0;
494 swig_callbackOnTap = 0;
495 swig_callbackOnLongPress = 0;
496 swig_callbackSignalConnected = 0;
497 swig_callbackSignalDisconnected = 0;
500 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_ViewWrapperImpl_CONTROL_BEHAVIOUR_FLAG_COUNT_get() {
504 result = (int)Dali::Toolkit::Internal::ControlWrapper::CONTROL_BEHAVIOUR_FLAG_COUNT;
510 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ViewWrapperImpl(int jarg1) {
512 Dali::Toolkit::Internal::ControlWrapper::CustomControlBehaviour arg1 ;
513 Dali::Toolkit::Internal::ControlWrapper *result = 0 ;
515 arg1 = (Dali::Toolkit::Internal::ControlWrapper::CustomControlBehaviour)jarg1;
518 result = (Dali::Toolkit::Internal::ControlWrapper *)new SwigDirector_ViewWrapperImpl(arg1);
519 } catch (std::out_of_range& e) {
521 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
523 } catch (std::exception& e) {
525 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
527 } catch (Dali::DaliException e) {
529 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
533 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
538 jresult = (void *)result;
543 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ViewWrapperImpl_New(char * jarg1, void * jarg2) {
546 Dali::Toolkit::Internal::ControlWrapper *arg2 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
547 Dali::Toolkit::ControlWrapper result;
550 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
553 (&arg1)->assign(jarg1);
554 arg2 = (Dali::Toolkit::Internal::ControlWrapper *)jarg2;
557 result = Dali::Toolkit::Internal::ControlWrapper::New(arg1,arg2);
558 } catch (std::out_of_range& e) {
560 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
562 } catch (std::exception& e) {
564 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
566 } catch (Dali::DaliException e) {
568 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
572 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
577 jresult = new Dali::Toolkit::ControlWrapper((const Dali::Toolkit::ControlWrapper &)result);
582 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ViewWrapperImpl(void * jarg1) {
583 Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
585 arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
592 } catch (std::out_of_range& e) {
594 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
596 } catch (std::exception& e) {
598 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
600 } catch (Dali::DaliException e) {
602 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
606 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
614 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewWrapperImpl_director_connect(void *objarg, SwigDirector_ViewWrapperImpl::SWIG_Callback0_t callback0, SwigDirector_ViewWrapperImpl::SWIG_Callback1_t callback1, SwigDirector_ViewWrapperImpl::SWIG_Callback2_t callback2, SwigDirector_ViewWrapperImpl::SWIG_Callback3_t callback3, SwigDirector_ViewWrapperImpl::SWIG_Callback4_t callback4, SwigDirector_ViewWrapperImpl::SWIG_Callback5_t callback5, SwigDirector_ViewWrapperImpl::SWIG_Callback6_t callback6, SwigDirector_ViewWrapperImpl::SWIG_Callback8_t callback8, SwigDirector_ViewWrapperImpl::SWIG_Callback9_t callback9, SwigDirector_ViewWrapperImpl::SWIG_Callback10_t callback10, SwigDirector_ViewWrapperImpl::SWIG_Callback11_t callback11, SwigDirector_ViewWrapperImpl::SWIG_Callback12_t callback12, SwigDirector_ViewWrapperImpl::SWIG_Callback13_t callback13, SwigDirector_ViewWrapperImpl::SWIG_Callback14_t callback14, SwigDirector_ViewWrapperImpl::SWIG_Callback15_t callback15, SwigDirector_ViewWrapperImpl::SWIG_Callback16_t callback16, SwigDirector_ViewWrapperImpl::SWIG_Callback17_t callback17, SwigDirector_ViewWrapperImpl::SWIG_Callback18_t callback18, SwigDirector_ViewWrapperImpl::SWIG_Callback19_t callback19, SwigDirector_ViewWrapperImpl::SWIG_Callback20_t callback20, SwigDirector_ViewWrapperImpl::SWIG_Callback21_t callback21, SwigDirector_ViewWrapperImpl::SWIG_Callback24_t callback24, SwigDirector_ViewWrapperImpl::SWIG_Callback25_t callback25, SwigDirector_ViewWrapperImpl::SWIG_Callback26_t callback26, SwigDirector_ViewWrapperImpl::SWIG_Callback28_t callback28, SwigDirector_ViewWrapperImpl::SWIG_Callback29_t callback29, SwigDirector_ViewWrapperImpl::SWIG_Callback30_t callback30, SwigDirector_ViewWrapperImpl::SWIG_Callback31_t callback31, SwigDirector_ViewWrapperImpl::SWIG_Callback32_t callback32, SwigDirector_ViewWrapperImpl::SWIG_Callback33_t callback33, SwigDirector_ViewWrapperImpl::SWIG_Callback34_t callback34, SwigDirector_ViewWrapperImpl::SWIG_Callback35_t callback35, SwigDirector_ViewWrapperImpl::SWIG_Callback36_t callback36, SwigDirector_ViewWrapperImpl::SWIG_Callback37_t callback37, SwigDirector_ViewWrapperImpl::SWIG_Callback38_t callback38, SwigDirector_ViewWrapperImpl::SWIG_Callback39_t callback39, SwigDirector_ViewWrapperImpl::SWIG_Callback40_t callback40) {
615 Dali::Toolkit::Internal::ControlWrapper *obj = (Dali::Toolkit::Internal::ControlWrapper *)objarg;
616 SwigDirector_ViewWrapperImpl *director = dynamic_cast<SwigDirector_ViewWrapperImpl *>(obj);
618 director->swig_connect_director(callback0, callback1, callback2, callback3, callback4, callback5, callback6, callback8, callback9, callback10, callback11, callback12, callback13, callback14, callback15, callback16, callback17, callback18, callback19, callback20, callback21, callback24, callback25, callback26, callback28, callback29, callback30, callback31, callback32, callback33, callback34, callback35, callback36, callback37, callback38, callback39, callback40);
623 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GetControlWrapperImpl__SWIG_0(void * jarg1) {
625 Dali::Toolkit::ControlWrapper *arg1 = 0 ;
626 Dali::Toolkit::Internal::ControlWrapper *result = 0 ;
628 arg1 = (Dali::Toolkit::ControlWrapper *)jarg1;
630 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::ControlWrapper & type is null", 0);
635 result = (Dali::Toolkit::Internal::ControlWrapper *) &Dali::Toolkit::GetControlWrapperImpl(*arg1);
636 } catch (std::out_of_range& e) {
638 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
640 } catch (std::exception& e) {
642 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
644 } catch (Dali::DaliException e) {
646 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
650 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
655 jresult = (void *)result;
660 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ViewWrapper_New(char * jarg1, void * jarg2) {
663 Dali::Toolkit::Internal::ControlWrapper *arg2 = 0 ;
664 Dali::Toolkit::ControlWrapper result;
667 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
670 (&arg1)->assign(jarg1);
671 arg2 = (Dali::Toolkit::Internal::ControlWrapper *)jarg2;
673 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Internal::ControlWrapper & type is null", 0);
678 result = Dali::Toolkit::ControlWrapper::New(arg1,*arg2);
679 } catch (std::out_of_range& e) {
681 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
683 } catch (std::exception& e) {
685 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
687 } catch (Dali::DaliException e) {
689 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
693 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
698 jresult = new Dali::Toolkit::ControlWrapper((const Dali::Toolkit::ControlWrapper &)result);
703 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ViewWrapper__SWIG_0() {
705 Dali::Toolkit::ControlWrapper *result = 0 ;
709 result = (Dali::Toolkit::ControlWrapper *)new Dali::Toolkit::ControlWrapper();
710 } catch (std::out_of_range& e) {
712 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
714 } catch (std::exception& e) {
716 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
718 } catch (Dali::DaliException e) {
720 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
724 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
729 jresult = (void *)result;
734 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ViewWrapper(void * jarg1) {
735 Dali::Toolkit::ControlWrapper *arg1 = (Dali::Toolkit::ControlWrapper *) 0 ;
737 arg1 = (Dali::Toolkit::ControlWrapper *)jarg1;
741 } catch (std::out_of_range& e) {
743 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
745 } catch (std::exception& e) {
747 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
749 } catch (Dali::DaliException e) {
751 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
755 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
763 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ViewWrapper__SWIG_1(void * jarg1) {
765 Dali::Toolkit::ControlWrapper *arg1 = 0 ;
766 Dali::Toolkit::ControlWrapper *result = 0 ;
768 arg1 = (Dali::Toolkit::ControlWrapper *)jarg1;
770 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::ControlWrapper const & type is null", 0);
775 result = (Dali::Toolkit::ControlWrapper *)new Dali::Toolkit::ControlWrapper((Dali::Toolkit::ControlWrapper const &)*arg1);
776 } catch (std::out_of_range& e) {
778 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
780 } catch (std::exception& e) {
782 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
784 } catch (Dali::DaliException e) {
786 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
790 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
795 jresult = (void *)result;
800 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ViewWrapper_Assign(void * jarg1, void * jarg2) {
802 Dali::Toolkit::ControlWrapper *arg1 = (Dali::Toolkit::ControlWrapper *) 0 ;
803 Dali::Toolkit::ControlWrapper *arg2 = 0 ;
804 Dali::Toolkit::ControlWrapper *result = 0 ;
806 arg1 = (Dali::Toolkit::ControlWrapper *)jarg1;
807 arg2 = (Dali::Toolkit::ControlWrapper *)jarg2;
809 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::ControlWrapper const & type is null", 0);
814 result = (Dali::Toolkit::ControlWrapper *) &(arg1)->operator =((Dali::Toolkit::ControlWrapper const &)*arg2);
815 } catch (std::out_of_range& e) {
817 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
819 } catch (std::exception& e) {
821 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
823 } catch (Dali::DaliException e) {
825 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
829 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
834 jresult = (void *)result;
839 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ViewWrapper_DownCast(void * jarg1) {
841 Dali::BaseHandle arg1 ;
842 Dali::BaseHandle *argp1 ;
843 Dali::Toolkit::ControlWrapper result;
845 argp1 = (Dali::BaseHandle *)jarg1;
847 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0);
853 result = Dali::Toolkit::ControlWrapper::DownCast(arg1);
854 } catch (std::out_of_range& e) {
856 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
858 } catch (std::exception& e) {
860 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
862 } catch (Dali::DaliException e) {
864 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
868 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
873 jresult = new Dali::Toolkit::ControlWrapper((const Dali::Toolkit::ControlWrapper &)result);
877 SWIGEXPORT Dali::Toolkit::Internal::Control * SWIGSTDCALL CSharp_Dali_ViewWrapperImpl_SWIGUpcast(Dali::Toolkit::Internal::ControlWrapper *jarg1) {
878 return (Dali::Toolkit::Internal::Control *)jarg1;
881 SWIGEXPORT Dali::Toolkit::Control * SWIGSTDCALL CSharp_Dali_ViewWrapper_SWIGUpcast(Dali::Toolkit::ControlWrapper *jarg1) {
882 return (Dali::Toolkit::Control *)jarg1;
885 SWIGEXPORT void SWIGSTDCALL CSharp_ViewWrapperImpl_RelayoutRequest(void * jarg1) {
886 Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
888 arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
891 (arg1)->RelayoutRequest();
892 } catch (std::out_of_range& e) {
894 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
896 } catch (std::exception& e) {
898 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
900 } catch (Dali::DaliException e) {
902 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
906 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
914 SWIGEXPORT float SWIGSTDCALL CSharp_ViewWrapperImpl_GetHeightForWidthBase(void * jarg1, float jarg2) {
916 Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
920 arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
924 result = (float)(arg1)->GetHeightForWidthBase(arg2);
925 } catch (std::out_of_range& e) {
927 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
929 } catch (std::exception& e) {
931 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
933 } catch (Dali::DaliException e) {
935 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
939 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
949 SWIGEXPORT float SWIGSTDCALL CSharp_ViewWrapperImpl_GetWidthForHeightBase(void * jarg1, float jarg2) {
951 Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
955 arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
959 result = (float)(arg1)->GetWidthForHeightBase(arg2);
960 } catch (std::out_of_range& e) {
962 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
964 } catch (std::exception& e) {
966 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
968 } catch (Dali::DaliException e) {
970 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
974 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
984 SWIGEXPORT float SWIGSTDCALL CSharp_ViewWrapperImpl_CalculateChildSizeBase(void * jarg1, void * jarg2, int jarg3) {
986 Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
987 Dali::Actor *arg2 = 0 ;
988 Dali::Dimension::Type arg3 ;
991 arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
992 arg2 = (Dali::Actor *)jarg2;
994 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Actor const & type is null", 0);
997 arg3 = (Dali::Dimension::Type)jarg3;
1000 result = (float)(arg1)->CalculateChildSizeBase((Dali::Actor const &)*arg2,arg3);
1001 } catch (std::out_of_range& e) {
1003 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1005 } catch (std::exception& e) {
1007 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1009 } catch (Dali::DaliException e) {
1011 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1015 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1025 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ViewWrapperImpl_RelayoutDependentOnChildrenBase__SWIG_0(void * jarg1, int jarg2) {
1026 unsigned int jresult ;
1027 Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
1028 Dali::Dimension::Type arg2 ;
1031 arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
1032 arg2 = (Dali::Dimension::Type)jarg2;
1035 result = (bool)(arg1)->RelayoutDependentOnChildrenBase(arg2);
1036 } catch (std::out_of_range& e) {
1038 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1040 } catch (std::exception& e) {
1042 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1044 } catch (Dali::DaliException e) {
1046 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1050 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1060 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ViewWrapperImpl_RelayoutDependentOnChildrenBase__SWIG_1(void * jarg1) {
1061 unsigned int jresult ;
1062 Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
1065 arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
1068 result = (bool)(arg1)->RelayoutDependentOnChildrenBase();
1069 } catch (std::out_of_range& e) {
1071 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1073 } catch (std::exception& e) {
1075 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1077 } catch (Dali::DaliException e) {
1079 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1083 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1092 SWIGEXPORT void SWIGSTDCALL CSharp_ViewWrapperImpl_RegisterVisual__SWIG_0(void * jarg1, int jarg2, void * jarg3) {
1093 Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
1094 Dali::Property::Index arg2 ;
1095 Dali::Toolkit::Visual::Base *arg3 = 0 ;
1097 arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
1098 arg2 = (Dali::Property::Index)jarg2;
1099 arg3 = (Dali::Toolkit::Visual::Base *)jarg3;
1101 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Visual::Base & type is null", 0);
1106 (arg1)->RegisterVisual(arg2,*arg3);
1107 } catch (std::out_of_range& e) {
1109 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1111 } catch (std::exception& e) {
1113 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1115 } catch (Dali::DaliException e) {
1117 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1121 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1129 SWIGEXPORT void SWIGSTDCALL CSharp_ViewWrapperImpl_RegisterVisual__SWIG_1(void * jarg1, int jarg2, void * jarg3, unsigned int jarg4) {
1130 Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
1131 Dali::Property::Index arg2 ;
1132 Dali::Toolkit::Visual::Base *arg3 = 0 ;
1135 arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
1136 arg2 = (Dali::Property::Index)jarg2;
1137 arg3 = (Dali::Toolkit::Visual::Base *)jarg3;
1139 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Visual::Base & type is null", 0);
1142 arg4 = jarg4 ? true : false;
1145 (arg1)->RegisterVisual(arg2,*arg3,arg4);
1146 } catch (std::out_of_range& e) {
1148 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1150 } catch (std::exception& e) {
1152 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1154 } catch (Dali::DaliException e) {
1156 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1160 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1168 SWIGEXPORT void SWIGSTDCALL CSharp_ViewWrapperImpl_UnregisterVisual(void * jarg1, int jarg2) {
1169 Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
1170 Dali::Property::Index arg2 ;
1172 arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
1173 arg2 = (Dali::Property::Index)jarg2;
1176 (arg1)->UnregisterVisual(arg2);
1177 } catch (std::out_of_range& e) {
1179 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1181 } catch (std::exception& e) {
1183 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1185 } catch (Dali::DaliException e) {
1187 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1191 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1199 SWIGEXPORT void * SWIGSTDCALL CSharp_ViewWrapperImpl_GetVisual(void * jarg1, int jarg2) {
1201 Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
1202 Dali::Property::Index arg2 ;
1203 Dali::Toolkit::Visual::Base result;
1205 arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
1206 arg2 = (Dali::Property::Index)jarg2;
1209 result = ((Dali::Toolkit::Internal::ControlWrapper const *)arg1)->GetVisual(arg2);
1210 } catch (std::out_of_range& e) {
1212 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1214 } catch (std::exception& e) {
1216 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1218 } catch (Dali::DaliException e) {
1220 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1224 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1229 jresult = new Dali::Toolkit::Visual::Base((const Dali::Toolkit::Visual::Base &)result);
1234 SWIGEXPORT void SWIGSTDCALL CSharp_ViewWrapperImpl_EnableVisual(void * jarg1, int jarg2, unsigned int jarg3) {
1235 Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
1236 Dali::Property::Index arg2 ;
1239 arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
1240 arg2 = (Dali::Property::Index)jarg2;
1241 arg3 = jarg3 ? true : false;
1244 (arg1)->EnableVisual(arg2,arg3);
1245 } catch (std::out_of_range& e) {
1247 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1249 } catch (std::exception& e) {
1251 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1253 } catch (Dali::DaliException e) {
1255 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1259 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1267 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ViewWrapperImpl_IsVisualEnabled(void * jarg1, int jarg2) {
1268 unsigned int jresult ;
1269 Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
1270 Dali::Property::Index arg2 ;
1273 arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
1274 arg2 = (Dali::Property::Index)jarg2;
1277 result = (bool)((Dali::Toolkit::Internal::ControlWrapper const *)arg1)->IsVisualEnabled(arg2);
1278 } catch (std::out_of_range& e) {
1280 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1282 } catch (std::exception& e) {
1284 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1286 } catch (Dali::DaliException e) {
1288 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1292 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1301 SWIGEXPORT void * SWIGSTDCALL CSharp_ViewWrapperImpl_CreateTransition(void * jarg1, void * jarg2) {
1303 Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
1304 Dali::Toolkit::TransitionData *arg2 = 0 ;
1305 Dali::Animation result;
1307 arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
1308 arg2 = (Dali::Toolkit::TransitionData *)jarg2;
1310 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::TransitionData const & type is null", 0);
1315 result = (arg1)->CreateTransition((Dali::Toolkit::TransitionData const &)*arg2);
1316 } catch (std::out_of_range& e) {
1318 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1320 } catch (std::exception& e) {
1322 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1324 } catch (Dali::DaliException e) {
1326 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1330 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1335 jresult = new Dali::Animation((const Dali::Animation &)result);
1340 SWIGEXPORT void SWIGSTDCALL CSharp_ViewWrapperImpl_EmitKeyInputFocusSignal(void * jarg1, unsigned int jarg2) {
1341 Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
1344 arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
1345 arg2 = jarg2 ? true : false;
1348 (arg1)->EmitKeyInputFocusSignal(arg2);
1349 } catch (std::out_of_range& e) {
1351 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1353 } catch (std::exception& e) {
1355 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1357 } catch (Dali::DaliException e) {
1359 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1363 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1370 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewWrapperImpl_ApplyThemeStyle(void * jarg1) {
1371 Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
1373 arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
1376 (arg1)->ApplyThemeStyle();
1377 } catch (std::out_of_range& e) {
1379 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1381 } catch (std::exception& e) {
1383 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1385 } catch (Dali::DaliException e) {
1387 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1391 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;