X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-csharp-binder%2Fsrc%2Fdali_wrap.cpp;h=3a3d457f26556079acefab83a1a0c4eeb69c61b3;hb=f33dea0010420fd76fa2a87eac1eab1e7a4f317a;hp=39e89be18fb0d5142af8e2f6f03bbc8f4ad4b4fb;hpb=dc324d4f5d60d3e1e9ccea68758974ed6112ad96;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git diff --git a/dali-csharp-binder/src/dali_wrap.cpp b/dali-csharp-binder/src/dali_wrap.cpp index 39e89be..3a3d457 100755 --- a/dali-csharp-binder/src/dali_wrap.cpp +++ b/dali-csharp-binder/src/dali_wrap.cpp @@ -425,6 +425,7 @@ void SWIG_CSharpException(int code, const char *msg) { #include #include +#include #include #include @@ -463,6 +464,7 @@ void SWIG_CSharpException(int code, const char *msg) { #include #include +#include #include @@ -472,7 +474,9 @@ void SWIG_CSharpException(int code, const char *msg) { #include #include +#include "web-view-signal-converter.h" +#include // add here SWIG version check @@ -2564,7 +2568,7 @@ Dali::Actor SwigDirector_CustomAlgorithmInterface::GetNextFocusableActor(Dali::A jdirection = (int)direction; jresult = (void *) swig_callbackGetNextFocusableActor(jcurrent, jproposed, jdirection); if (!jresult) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Unexpected null return for type Dali::Actor", 0); + DALI_LOG_ERROR("[ERROR][%s line:%d] Unexpected null return for type Dali::Actor! Next focus will be NULL, please be cautious to handle the keyboard foucs! ", __FILE__, __LINE__); return c_result; } c_result = *(Dali::Actor *)jresult; @@ -26527,6 +26531,56 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Shader_Assign(void * jarg1, void * jar } +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Renderer_Range_BACKGROUND_EFFECT_get() { + int jresult ; + int result; + + result = (int)Dali::Toolkit::DepthIndex::Ranges::BACKGROUND_EFFECT; + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Renderer_Range_BACKGROUND_get() { + int jresult ; + int result; + + result = (int)Dali::Toolkit::DepthIndex::Ranges::BACKGROUND; + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Renderer_Range_CONTENT_get() { + int jresult ; + int result; + + result = (int)Dali::Toolkit::DepthIndex::Ranges::CONTENT; + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Renderer_Range_DECORATION_get() { + int jresult ; + int result; + + result = (int)Dali::Toolkit::DepthIndex::Ranges::DECORATION; + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Renderer_Range_FOREGROUND_EFFECT_get() { + int jresult ; + int result; + + result = (int)Dali::Toolkit::DepthIndex::FOREGROUND_EFFECT; + jresult = (int)result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Renderer_Property_DEPTH_INDEX_get() { int jresult ; int result; @@ -31451,6 +31505,43 @@ SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Key_state_get(void * jarg1) { return jresult; } +SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_Key_logicalKey_get(void * jarg1) { + char * jresult ; + std::string result; + Dali::KeyEvent *arg1 = (Dali::KeyEvent *) 0; + + arg1 = (Dali::KeyEvent *)jarg1; + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::DevelKeyEvent const & type is null", 0); + return 0; + } + { + try { + result = Dali::DevelKeyEvent::GetLogicalKey(*arg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + + } + + jresult = SWIG_csharp_string_callback( (&result)->c_str() ); + return jresult; +} + SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LongPressGestureDetector__SWIG_0() { void * jresult ; @@ -33711,6 +33802,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Actor_GetId(void * jarg1) { unsigned int result; arg1 = (Dali::Actor *)jarg1; + + if(!arg1) { + DALI_LOG_ERROR("[ERROR] actor is null! return -1"); + return -1; + } + { try { result = (unsigned int)((Dali::Actor const *)arg1)->GetId(); @@ -61947,49 +62044,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Builder_CreateRenderTask(void * jarg1, c } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Builder_GetFrameBufferImage(void * jarg1, char * jarg2) { - void * jresult ; - Dali::Toolkit::Builder *arg1 = (Dali::Toolkit::Builder *) 0 ; - std::string *arg2 = 0 ; - Dali::FrameBufferImage result; - - arg1 = (Dali::Toolkit::Builder *)jarg1; - if (!jarg2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); - return 0; - } - std::string arg2_str(jarg2); - arg2 = &arg2_str; - { - try { - result = (arg1)->GetFrameBufferImage((std::string const &)*arg2); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = new Dali::FrameBufferImage((const Dali::FrameBufferImage &)result); - - //argout typemap for const std::string& - - return jresult; -} - - SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Builder_GetPath(void * jarg1, char * jarg2) { void * jresult ; Dali::Toolkit::Builder *arg1 = (Dali::Toolkit::Builder *) 0 ; @@ -63042,13 +63096,25 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_SetBackgroundColor(void * jarg1 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ViewImpl_GetBackgroundColor(void * jarg1) { void * jresult ; - Dali::Toolkit::Internal::Control *arg1 = (Dali::Toolkit::Internal::Control *) 0 ; + Dali::Handle *arg1 = (Dali::Handle *) 0 ; Dali::Vector4 result; - arg1 = (Dali::Toolkit::Internal::Control *)jarg1; + arg1 = (Dali::Handle *)jarg1; { try { - result = ((Dali::Toolkit::Internal::Control const *)arg1)->GetBackgroundColor(); + Property::Map* resultMap = ((arg1)->GetProperty( Control::Property::BACKGROUND )).GetMap(); + if (resultMap) + { + Dali::Property::Value* type = resultMap->Find( Toolkit::Visual::Property::TYPE ); + if(type && type->Get() == Visual::COLOR ) + { + Dali::Property::Value* value = resultMap->Find( ColorVisual::Property::MIX_COLOR ); + if (value) + { + result = value->Get(); + } + } + } } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -63073,43 +63139,6 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ViewImpl_GetBackgroundColor(void * jar } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_SetBackgroundImage(void * jarg1, void * jarg2) { - Dali::Toolkit::Internal::Control *arg1 = (Dali::Toolkit::Internal::Control *) 0 ; - Dali::Image arg2 ; - Dali::Image *argp2 ; - - arg1 = (Dali::Toolkit::Internal::Control *)jarg1; - argp2 = (Dali::Image *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Image", 0); - return ; - } - arg2 = *argp2; - { - try { - (arg1)->SetBackgroundImage(arg2); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; - }; - } - } - -} - - SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_SetBackground(void * jarg1, void * jarg2) { Dali::Toolkit::Internal::Control *arg1 = (Dali::Toolkit::Internal::Control *) 0 ; Dali::Property::Map *arg2 = 0 ; @@ -66907,27 +66936,6 @@ SWIGEXPORT int SWIGSTDCALL CSharp_Dali_View_Property_STYLE_NAME_get() { return jresult; } - -SWIGEXPORT int SWIGSTDCALL CSharp_Dali_View_Property_BACKGROUND_COLOR_get() { - int jresult ; - int result; - - result = (int)Dali::Toolkit::Control::Property::BACKGROUND_COLOR; - jresult = (int)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_Dali_View_Property_BACKGROUND_IMAGE_get() { - int jresult ; - int result; - - result = (int)Dali::Toolkit::Control::Property::BACKGROUND_IMAGE; - jresult = (int)result; - return jresult; -} - - SWIGEXPORT int SWIGSTDCALL CSharp_Dali_View_Property_KEY_INPUT_FOCUS_get() { int jresult ; int result; @@ -67621,55 +67629,13 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_View_SetBackgroundColor(void * jarg1, vo } - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_View_GetBackgroundColor(void * jarg1) { - void * jresult ; - Dali::Toolkit::Control *arg1 = (Dali::Toolkit::Control *) 0 ; - Dali::Vector4 result; - - arg1 = (Dali::Toolkit::Control *)jarg1; - { - try { - result = ((Dali::Toolkit::Control const *)arg1)->GetBackgroundColor(); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = new Dali::Vector4((const Dali::Vector4 &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_View_SetBackgroundImage(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_View_ClearBackground(void * jarg1) { Dali::Toolkit::Control *arg1 = (Dali::Toolkit::Control *) 0 ; - Dali::Image arg2 ; - Dali::Image *argp2 ; arg1 = (Dali::Toolkit::Control *)jarg1; - argp2 = (Dali::Image *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Image", 0); - return ; - } - arg2 = *argp2; { try { - (arg1)->SetBackgroundImage(arg2); + (arg1)->ClearBackground(); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -67692,44 +67658,48 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_View_SetBackgroundImage(void * jarg1, vo } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_View_ClearBackground(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_View_KeyEventSignal(void * jarg1) { + void * jresult ; Dali::Toolkit::Control *arg1 = (Dali::Toolkit::Control *) 0 ; + Dali::Toolkit::Control::KeyEventSignalType *result = 0 ; arg1 = (Dali::Toolkit::Control *)jarg1; { try { - (arg1)->ClearBackground(); + result = (Dali::Toolkit::Control::KeyEventSignalType *) &(arg1)->KeyEventSignal(); } catch (std::out_of_range& e) { { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; }; } catch (std::exception& e) { { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; }; } catch (Dali::DaliException e) { { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; }; } catch (...) { { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; }; } } + jresult = (void *)result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_View_KeyEventSignal(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_View_KeyInputFocusGainedSignal(void * jarg1) { void * jresult ; Dali::Toolkit::Control *arg1 = (Dali::Toolkit::Control *) 0 ; - Dali::Toolkit::Control::KeyEventSignalType *result = 0 ; + Dali::Toolkit::Control::KeyInputFocusSignalType *result = 0 ; arg1 = (Dali::Toolkit::Control *)jarg1; { try { - result = (Dali::Toolkit::Control::KeyEventSignalType *) &(arg1)->KeyEventSignal(); + result = (Dali::Toolkit::Control::KeyInputFocusSignalType *) &(arg1)->KeyInputFocusGainedSignal(); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -67754,7 +67724,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_View_KeyEventSignal(void * jarg1) { } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_View_KeyInputFocusGainedSignal(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_View_KeyInputFocusLostSignal(void * jarg1) { void * jresult ; Dali::Toolkit::Control *arg1 = (Dali::Toolkit::Control *) 0 ; Dali::Toolkit::Control::KeyInputFocusSignalType *result = 0 ; @@ -67762,7 +67732,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_View_KeyInputFocusGainedSignal(void * arg1 = (Dali::Toolkit::Control *)jarg1; { try { - result = (Dali::Toolkit::Control::KeyInputFocusSignalType *) &(arg1)->KeyInputFocusGainedSignal(); + result = (Dali::Toolkit::Control::KeyInputFocusSignalType *) &(arg1)->KeyInputFocusLostSignal(); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -67787,52 +67757,19 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_View_KeyInputFocusGainedSignal(void * } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_View_KeyInputFocusLostSignal(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_View__SWIG_2(void * jarg1) { void * jresult ; - Dali::Toolkit::Control *arg1 = (Dali::Toolkit::Control *) 0 ; - Dali::Toolkit::Control::KeyInputFocusSignalType *result = 0 ; + Dali::Toolkit::Internal::Control *arg1 = 0 ; + Dali::Toolkit::Control *result = 0 ; - arg1 = (Dali::Toolkit::Control *)jarg1; + arg1 = (Dali::Toolkit::Internal::Control *)jarg1; + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Internal::Control & type is null", 0); + return 0; + } { try { - result = (Dali::Toolkit::Control::KeyInputFocusSignalType *) &(arg1)->KeyInputFocusLostSignal(); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_View__SWIG_2(void * jarg1) { - void * jresult ; - Dali::Toolkit::Internal::Control *arg1 = 0 ; - Dali::Toolkit::Control *result = 0 ; - - arg1 = (Dali::Toolkit::Internal::Control *)jarg1; - if (!arg1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Internal::Control & type is null", 0); - return 0; - } - { - try { - result = (Dali::Toolkit::Control *)new Dali::Toolkit::Control(*arg1); + result = (Dali::Toolkit::Control *)new Dali::Toolkit::Control(*arg1); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -68994,54 +68931,158 @@ SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Button_Property_SELECTED_get() { return jresult; } - -SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Button_Property_UNSELECTED_COLOR_get() { +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Button_Property_LABEL_get() { int jresult ; int result; - result = (int)Dali::Toolkit::Button::Property::UNSELECTED_COLOR; + result = (int)Dali::Toolkit::Button::Property::LABEL; jresult = (int)result; return jresult; } +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Button_Property() { + void * jresult ; + Dali::Toolkit::Button::Property *result = 0 ; -SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Button_Property_SELECTED_COLOR_get() { - int jresult ; - int result; + { + try { + result = (Dali::Toolkit::Button::Property *)new Dali::Toolkit::Button::Property(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } - result = (int)Dali::Toolkit::Button::Property::SELECTED_COLOR; - jresult = (int)result; + jresult = (void *)result; return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Button_Property_LABEL_get() { - int jresult ; - int result; +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_Button_Property(void * jarg1) { + Dali::Toolkit::Button::Property *arg1 = (Dali::Toolkit::Button::Property *) 0 ; - result = (int)Dali::Toolkit::Button::Property::LABEL; - jresult = (int)result; + arg1 = (Dali::Toolkit::Button::Property *)jarg1; + { + try { + delete arg1; + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } + +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Button__SWIG_0() { + void * jresult ; + Dali::Toolkit::Button *result = 0 ; + + { + try { + result = (Dali::Toolkit::Button *)new Dali::Toolkit::Button(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = (void *)result; return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Button_Property_LABEL_TEXT_get() { - int jresult ; - int result; +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Button__SWIG_1(void * jarg1) { + void * jresult ; + Dali::Toolkit::Button *arg1 = 0 ; + Dali::Toolkit::Button *result = 0 ; - result = (int)Dali::Toolkit::Button::Property::LABEL_TEXT; - jresult = (int)result; + arg1 = (Dali::Toolkit::Button *)jarg1; + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Button const & type is null", 0); + return 0; + } + { + try { + result = (Dali::Toolkit::Button *)new Dali::Toolkit::Button((Dali::Toolkit::Button const &)*arg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = (void *)result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Button_Property() { +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Button_Assign(void * jarg1, void * jarg2) { void * jresult ; - Dali::Toolkit::Button::Property *result = 0 ; + Dali::Toolkit::Button *arg1 = (Dali::Toolkit::Button *) 0 ; + Dali::Toolkit::Button *arg2 = 0 ; + Dali::Toolkit::Button *result = 0 ; + arg1 = (Dali::Toolkit::Button *)jarg1; + arg2 = (Dali::Toolkit::Button *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Button const & type is null", 0); + return 0; + } { try { - result = (Dali::Toolkit::Button::Property *)new Dali::Toolkit::Button::Property(); + result = (Dali::Toolkit::Button *) &(arg1)->operator =((Dali::Toolkit::Button const &)*arg2); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -69066,10 +69107,49 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Button_Property() { } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_Button_Property(void * jarg1) { - Dali::Toolkit::Button::Property *arg1 = (Dali::Toolkit::Button::Property *) 0 ; +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Button_DownCast(void * jarg1) { + void * jresult ; + Dali::BaseHandle arg1 ; + Dali::BaseHandle *argp1 ; + Dali::Toolkit::Button result; - arg1 = (Dali::Toolkit::Button::Property *)jarg1; + argp1 = (Dali::BaseHandle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0); + return 0; + } + arg1 = *argp1; + { + try { + result = Dali::Toolkit::Button::DownCast(arg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = new Dali::Toolkit::Button((const Dali::Toolkit::Button &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_Button(void * jarg1) { + Dali::Toolkit::Button *arg1 = (Dali::Toolkit::Button *) 0 ; + + arg1 = (Dali::Toolkit::Button *)jarg1; { try { delete arg1; @@ -69094,665 +69174,47 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_Button_Property(void * jarg1) { } +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Button_PressedSignal(void * jarg1) { + void * jresult ; + Dali::Toolkit::Button *arg1 = (Dali::Toolkit::Button *) 0 ; + Dali::Toolkit::Button::ButtonSignalType *result = 0 ; -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Button__SWIG_0() { + arg1 = (Dali::Toolkit::Button *)jarg1; + { + try { + result = (Dali::Toolkit::Button::ButtonSignalType *) &(arg1)->PressedSignal(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = (void *)result; + return jresult; +} + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Button_ReleasedSignal(void * jarg1) { void * jresult ; - Dali::Toolkit::Button *result = 0 ; + Dali::Toolkit::Button *arg1 = (Dali::Toolkit::Button *) 0 ; + Dali::Toolkit::Button::ButtonSignalType *result = 0 ; + arg1 = (Dali::Toolkit::Button *)jarg1; { try { - result = (Dali::Toolkit::Button *)new Dali::Toolkit::Button(); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Button__SWIG_1(void * jarg1) { - void * jresult ; - Dali::Toolkit::Button *arg1 = 0 ; - Dali::Toolkit::Button *result = 0 ; - - arg1 = (Dali::Toolkit::Button *)jarg1; - if (!arg1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Button const & type is null", 0); - return 0; - } - { - try { - result = (Dali::Toolkit::Button *)new Dali::Toolkit::Button((Dali::Toolkit::Button const &)*arg1); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Button_Assign(void * jarg1, void * jarg2) { - void * jresult ; - Dali::Toolkit::Button *arg1 = (Dali::Toolkit::Button *) 0 ; - Dali::Toolkit::Button *arg2 = 0 ; - Dali::Toolkit::Button *result = 0 ; - - arg1 = (Dali::Toolkit::Button *)jarg1; - arg2 = (Dali::Toolkit::Button *)jarg2; - if (!arg2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Button const & type is null", 0); - return 0; - } - { - try { - result = (Dali::Toolkit::Button *) &(arg1)->operator =((Dali::Toolkit::Button const &)*arg2); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Button_DownCast(void * jarg1) { - void * jresult ; - Dali::BaseHandle arg1 ; - Dali::BaseHandle *argp1 ; - Dali::Toolkit::Button result; - - argp1 = (Dali::BaseHandle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0); - return 0; - } - arg1 = *argp1; - { - try { - result = Dali::Toolkit::Button::DownCast(arg1); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = new Dali::Toolkit::Button((const Dali::Toolkit::Button &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_Button(void * jarg1) { - Dali::Toolkit::Button *arg1 = (Dali::Toolkit::Button *) 0 ; - - arg1 = (Dali::Toolkit::Button *)jarg1; - { - try { - delete arg1; - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; - }; - } - } - -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Button_IsDisabled(void * jarg1) { - unsigned int jresult ; - Dali::Toolkit::Button *arg1 = (Dali::Toolkit::Button *) 0 ; - bool result; - - arg1 = (Dali::Toolkit::Button *)jarg1; - { - try { - result = (bool)((Dali::Toolkit::Button const *)arg1)->IsDisabled(); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Button_IsAutoRepeating(void * jarg1) { - unsigned int jresult ; - Dali::Toolkit::Button *arg1 = (Dali::Toolkit::Button *) 0 ; - bool result; - - arg1 = (Dali::Toolkit::Button *)jarg1; - { - try { - result = (bool)((Dali::Toolkit::Button const *)arg1)->IsAutoRepeating(); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = result; - return jresult; -} - - -SWIGEXPORT float SWIGSTDCALL CSharp_Dali_Button_GetInitialAutoRepeatingDelay(void * jarg1) { - float jresult ; - Dali::Toolkit::Button *arg1 = (Dali::Toolkit::Button *) 0 ; - float result; - - arg1 = (Dali::Toolkit::Button *)jarg1; - { - try { - result = (float)((Dali::Toolkit::Button const *)arg1)->GetInitialAutoRepeatingDelay(); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = result; - return jresult; -} - - -SWIGEXPORT float SWIGSTDCALL CSharp_Dali_Button_GetNextAutoRepeatingDelay(void * jarg1) { - float jresult ; - Dali::Toolkit::Button *arg1 = (Dali::Toolkit::Button *) 0 ; - float result; - - arg1 = (Dali::Toolkit::Button *)jarg1; - { - try { - result = (float)((Dali::Toolkit::Button const *)arg1)->GetNextAutoRepeatingDelay(); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Button_IsTogglableButton(void * jarg1) { - unsigned int jresult ; - Dali::Toolkit::Button *arg1 = (Dali::Toolkit::Button *) 0 ; - bool result; - - arg1 = (Dali::Toolkit::Button *)jarg1; - { - try { - result = (bool)((Dali::Toolkit::Button const *)arg1)->IsTogglableButton(); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Button_IsSelected(void * jarg1) { - unsigned int jresult ; - Dali::Toolkit::Button *arg1 = (Dali::Toolkit::Button *) 0 ; - bool result; - - arg1 = (Dali::Toolkit::Button *)jarg1; - { - try { - result = (bool)((Dali::Toolkit::Button const *)arg1)->IsSelected(); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = result; - return jresult; -} - - -SWIGEXPORT float SWIGSTDCALL CSharp_Dali_Button_GetAnimationTime(void * jarg1) { - float jresult ; - Dali::Toolkit::Button *arg1 = (Dali::Toolkit::Button *) 0 ; - float result; - - arg1 = (Dali::Toolkit::Button *)jarg1; - { - try { - result = (float)((Dali::Toolkit::Button const *)arg1)->GetAnimationTime(); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = result; - return jresult; -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_Button_GetLabelText(void * jarg1) { - char * jresult ; - Dali::Toolkit::Button *arg1 = (Dali::Toolkit::Button *) 0 ; - std::string result; - - arg1 = (Dali::Toolkit::Button *)jarg1; - { - try { - result = ((Dali::Toolkit::Button const *)arg1)->GetLabelText(); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = SWIG_csharp_string_callback((&result)->c_str()); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Button_SetLabel(void * jarg1, void * jarg2) { - Dali::Toolkit::Button *arg1 = (Dali::Toolkit::Button *) 0 ; - Dali::Actor arg2 ; - Dali::Actor *argp2 ; - - arg1 = (Dali::Toolkit::Button *)jarg1; - argp2 = (Dali::Actor *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Actor", 0); - return ; - } - arg2 = *argp2; - { - try { - (arg1)->SetLabel(arg2); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; - }; - } - } - -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Button_SetButtonImage(void * jarg1, void * jarg2) { - Dali::Toolkit::Button *arg1 = (Dali::Toolkit::Button *) 0 ; - Dali::Image arg2 ; - Dali::Image *argp2 ; - - arg1 = (Dali::Toolkit::Button *)jarg1; - argp2 = (Dali::Image *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Image", 0); - return ; - } - arg2 = *argp2; - { - try { - (arg1)->SetButtonImage(arg2); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; - }; - } - } - -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Button_SetSelectedImage(void * jarg1, void * jarg2) { - Dali::Toolkit::Button *arg1 = (Dali::Toolkit::Button *) 0 ; - Dali::Image arg2 ; - Dali::Image *argp2 ; - - arg1 = (Dali::Toolkit::Button *)jarg1; - argp2 = (Dali::Image *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Image", 0); - return ; - } - arg2 = *argp2; - { - try { - (arg1)->SetSelectedImage(arg2); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; - }; - } - } - -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Button_GetButtonImage(void * jarg1) { - void * jresult ; - Dali::Toolkit::Button *arg1 = (Dali::Toolkit::Button *) 0 ; - Dali::Actor result; - - arg1 = (Dali::Toolkit::Button *)jarg1; - { - try { - result = ((Dali::Toolkit::Button const *)arg1)->GetButtonImage(); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = new Dali::Actor((const Dali::Actor &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Button_GetSelectedImage(void * jarg1) { - void * jresult ; - Dali::Toolkit::Button *arg1 = (Dali::Toolkit::Button *) 0 ; - Dali::Actor result; - - arg1 = (Dali::Toolkit::Button *)jarg1; - { - try { - result = ((Dali::Toolkit::Button const *)arg1)->GetSelectedImage(); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = new Dali::Actor((const Dali::Actor &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Button_PressedSignal(void * jarg1) { - void * jresult ; - Dali::Toolkit::Button *arg1 = (Dali::Toolkit::Button *) 0 ; - Dali::Toolkit::Button::ButtonSignalType *result = 0 ; - - arg1 = (Dali::Toolkit::Button *)jarg1; - { - try { - result = (Dali::Toolkit::Button::ButtonSignalType *) &(arg1)->PressedSignal(); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Button_ReleasedSignal(void * jarg1) { - void * jresult ; - Dali::Toolkit::Button *arg1 = (Dali::Toolkit::Button *) 0 ; - Dali::Toolkit::Button::ButtonSignalType *result = 0 ; - - arg1 = (Dali::Toolkit::Button *)jarg1; - { - try { - result = (Dali::Toolkit::Button::ButtonSignalType *) &(arg1)->ReleasedSignal(); + result = (Dali::Toolkit::Button::ButtonSignalType *) &(arg1)->ReleasedSignal(); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -70295,409 +69757,75 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_PushButton(void * jarg1) { } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_PushButton_New() { - void * jresult ; - Dali::Toolkit::PushButton result; - - { - try { - result = Dali::Toolkit::PushButton::New(); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = new Dali::Toolkit::PushButton((const Dali::Toolkit::PushButton &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_PushButton_DownCast(void * jarg1) { - void * jresult ; - Dali::BaseHandle arg1 ; - Dali::BaseHandle *argp1 ; - Dali::Toolkit::PushButton result; - - argp1 = (Dali::BaseHandle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0); - return 0; - } - arg1 = *argp1; - { - try { - result = Dali::Toolkit::PushButton::DownCast(arg1); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = new Dali::Toolkit::PushButton((const Dali::Toolkit::PushButton &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PushButton_SetButtonImage__SWIG_0_0(void * jarg1, void * jarg2) { - Dali::Toolkit::PushButton *arg1 = (Dali::Toolkit::PushButton *) 0 ; - Dali::Image arg2 ; - Dali::Image *argp2 ; - - arg1 = (Dali::Toolkit::PushButton *)jarg1; - argp2 = (Dali::Image *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Image", 0); - return ; - } - arg2 = *argp2; - { - try { - (arg1)->SetButtonImage(arg2); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; - }; - } - } - -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PushButton_SetButtonImage__SWIG_1(void * jarg1, void * jarg2) { - Dali::Toolkit::PushButton *arg1 = (Dali::Toolkit::PushButton *) 0 ; - Dali::Actor arg2 ; - Dali::Actor *argp2 ; - - arg1 = (Dali::Toolkit::PushButton *)jarg1; - argp2 = (Dali::Actor *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Actor", 0); - return ; - } - arg2 = *argp2; - { - try { - (arg1)->SetButtonImage(arg2); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; - }; - } - } - -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PushButton_SetBackgroundImage(void * jarg1, void * jarg2) { - Dali::Toolkit::PushButton *arg1 = (Dali::Toolkit::PushButton *) 0 ; - Dali::Actor arg2 ; - Dali::Actor *argp2 ; - - arg1 = (Dali::Toolkit::PushButton *)jarg1; - argp2 = (Dali::Actor *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Actor", 0); - return ; - } - arg2 = *argp2; - { - try { - (arg1)->SetBackgroundImage(arg2); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; - }; - } - } - -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PushButton_SetSelectedImage__SWIG_0_0(void * jarg1, void * jarg2) { - Dali::Toolkit::PushButton *arg1 = (Dali::Toolkit::PushButton *) 0 ; - Dali::Image arg2 ; - Dali::Image *argp2 ; - - arg1 = (Dali::Toolkit::PushButton *)jarg1; - argp2 = (Dali::Image *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Image", 0); - return ; - } - arg2 = *argp2; - { - try { - (arg1)->SetSelectedImage(arg2); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; - }; - } - } - -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PushButton_SetSelectedImage__SWIG_1(void * jarg1, void * jarg2) { - Dali::Toolkit::PushButton *arg1 = (Dali::Toolkit::PushButton *) 0 ; - Dali::Actor arg2 ; - Dali::Actor *argp2 ; - - arg1 = (Dali::Toolkit::PushButton *)jarg1; - argp2 = (Dali::Actor *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Actor", 0); - return ; - } - arg2 = *argp2; - { - try { - (arg1)->SetSelectedImage(arg2); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; - }; - } - } - -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PushButton_SetSelectedBackgroundImage(void * jarg1, void * jarg2) { - Dali::Toolkit::PushButton *arg1 = (Dali::Toolkit::PushButton *) 0 ; - Dali::Actor arg2 ; - Dali::Actor *argp2 ; - - arg1 = (Dali::Toolkit::PushButton *)jarg1; - argp2 = (Dali::Actor *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Actor", 0); - return ; - } - arg2 = *argp2; - { - try { - (arg1)->SetSelectedBackgroundImage(arg2); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; - }; - } - } - -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PushButton_SetDisabledBackgroundImage(void * jarg1, void * jarg2) { - Dali::Toolkit::PushButton *arg1 = (Dali::Toolkit::PushButton *) 0 ; - Dali::Actor arg2 ; - Dali::Actor *argp2 ; - - arg1 = (Dali::Toolkit::PushButton *)jarg1; - argp2 = (Dali::Actor *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Actor", 0); - return ; - } - arg2 = *argp2; - { - try { - (arg1)->SetDisabledBackgroundImage(arg2); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; - }; - } - } - -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PushButton_SetDisabledImage(void * jarg1, void * jarg2) { - Dali::Toolkit::PushButton *arg1 = (Dali::Toolkit::PushButton *) 0 ; - Dali::Actor arg2 ; - Dali::Actor *argp2 ; +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_PushButton_New() { + void * jresult ; + Dali::Toolkit::PushButton result; - arg1 = (Dali::Toolkit::PushButton *)jarg1; - argp2 = (Dali::Actor *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Actor", 0); - return ; - } - arg2 = *argp2; { try { - (arg1)->SetDisabledImage(arg2); + result = Dali::Toolkit::PushButton::New(); } catch (std::out_of_range& e) { { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; }; } catch (std::exception& e) { { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; }; } catch (Dali::DaliException e) { { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; }; } catch (...) { { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; }; } } + jresult = new Dali::Toolkit::PushButton((const Dali::Toolkit::PushButton &)result); + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PushButton_SetDisabledSelectedImage(void * jarg1, void * jarg2) { - Dali::Toolkit::PushButton *arg1 = (Dali::Toolkit::PushButton *) 0 ; - Dali::Actor arg2 ; - Dali::Actor *argp2 ; +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_PushButton_DownCast(void * jarg1) { + void * jresult ; + Dali::BaseHandle arg1 ; + Dali::BaseHandle *argp1 ; + Dali::Toolkit::PushButton result; - arg1 = (Dali::Toolkit::PushButton *)jarg1; - argp2 = (Dali::Actor *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Actor", 0); - return ; + argp1 = (Dali::BaseHandle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0); + return 0; } - arg2 = *argp2; + arg1 = *argp1; { try { - (arg1)->SetDisabledSelectedImage(arg2); + result = Dali::Toolkit::PushButton::DownCast(arg1); } catch (std::out_of_range& e) { { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; }; } catch (std::exception& e) { { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; }; } catch (Dali::DaliException e) { { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; }; } catch (...) { { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; }; } } + jresult = new Dali::Toolkit::PushButton((const Dali::Toolkit::PushButton &)result); + return jresult; } - SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_RadioButton__SWIG_0() { void * jresult ; Dali::Toolkit::RadioButton *result = 0 ; @@ -71360,17 +70488,6 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_FlexContainer_DownCast(void * jarg1) { return jresult; } - -SWIGEXPORT int SWIGSTDCALL CSharp_Dali_ImageView_Property_RESOURCE_URL_get() { - int jresult ; - int result; - - result = (int)Dali::Toolkit::ImageView::Property::RESOURCE_URL; - jresult = (int)result; - return jresult; -} - - SWIGEXPORT int SWIGSTDCALL CSharp_Dali_ImageView_Property_IMAGE_get() { int jresult ; int result; @@ -89149,21 +88266,21 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_GaussianBlurView_Deactivate(void * jarg1 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_GaussianBlurView_SetUserImageAndOutputRenderTarget(void * jarg1, void * jarg2, void * jarg3) { Dali::Toolkit::GaussianBlurView *arg1 = (Dali::Toolkit::GaussianBlurView *) 0 ; - Dali::Image arg2 ; - Dali::FrameBufferImage arg3 ; - Dali::Image *argp2 ; - Dali::FrameBufferImage *argp3 ; + Dali::Texture arg2 ; + Dali::FrameBuffer arg3 ; + Dali::Texture *argp2 ; + Dali::FrameBuffer *argp3 ; arg1 = (Dali::Toolkit::GaussianBlurView *)jarg1; - argp2 = (Dali::Image *)jarg2; + argp2 = (Dali::Texture *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Image", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Texture", 0); return ; } arg2 = *argp2; - argp3 = (Dali::FrameBufferImage *)jarg3; + argp3 = (Dali::FrameBuffer *)jarg3; if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::FrameBufferImage", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::FrameBuffer", 0); return ; } arg3 = *argp3; @@ -89228,7 +88345,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_Dali_GaussianBlurView_GetBlurStrengthPropertyI SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GaussianBlurView_GetBlurredRenderTarget(void * jarg1) { void * jresult ; Dali::Toolkit::GaussianBlurView *arg1 = (Dali::Toolkit::GaussianBlurView *) 0 ; - Dali::FrameBufferImage result; + Dali::FrameBuffer result; arg1 = (Dali::Toolkit::GaussianBlurView *)jarg1; { @@ -89253,7 +88370,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GaussianBlurView_GetBlurredRenderTarge } } - jresult = new Dali::FrameBufferImage((const Dali::FrameBufferImage &)result); + jresult = new Dali::FrameBuffer((const Dali::FrameBuffer &)result); return jresult; } @@ -89456,11 +88573,11 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_PageFactory_NewPage(void * jarg1, unsi } -SWIGEXPORT int SWIGSTDCALL CSharp_Dali_PageTurnView_Property_PAGE_SIZE_get() { +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_PageTurnView_Property_VIEW_PAGE_SIZE_get() { int jresult ; int result; - result = (int)Dali::Toolkit::PageTurnView::Property::PAGE_SIZE; + result = (int)Dali::Toolkit::PageTurnView::Property::VIEW_PAGE_SIZE; jresult = (int)result; return jresult; } @@ -103047,6 +102164,38 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WebView_DownCast(void * jarg1) { return jresult; } +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WebView_Property_URL_get() { + return (int) Dali::Toolkit::WebView::Property::URL; +} + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WebView_Property_CACHE_MODEL_get() { + return (int) Dali::Toolkit::WebView::Property::CACHE_MODEL; +} + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WebView_Property_COOKIE_ACCEPT_POLICY_get() { + return (int) Dali::Toolkit::WebView::Property::COOKIE_ACCEPT_POLICY; +} + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WebView_Property_USER_AGENT_get() { + return (int) Dali::Toolkit::WebView::Property::USER_AGENT; +} + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WebView_Property_ENABLE_JAVASCRIPT_get() { + return (int) Dali::Toolkit::WebView::Property::ENABLE_JAVASCRIPT; +} + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WebView_Property_LOAD_IMAGES_AUTOMATICALLY_get() { + return (int) Dali::Toolkit::WebView::Property::LOAD_IMAGES_AUTOMATICALLY; +} + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WebView_Property_DEFAULT_TEXT_ENCODING_NAME_get() { + return (int) Dali::Toolkit::WebView::Property::DEFAULT_TEXT_ENCODING_NAME; +} + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WebView_Property_DEFAULT_FONT_SIZE_get() { + return (int) Dali::Toolkit::WebView::Property::DEFAULT_FONT_SIZE; +} + SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebView_LoadUrl(void * jarg1, char * jarg2) { Dali::Toolkit::WebView *arg1 = (Dali::Toolkit::WebView *) 0 ; std::string *arg2; @@ -103083,53 +102232,74 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebView_LoadUrl(void * jarg1, char * jar } } -SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_WebView_GetUrl(void * jarg1) { - char * jresult ; - std::string result; - +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebView_LoadHTMLString(void * jarg1, char * jarg2) { Dali::Toolkit::WebView *arg1 = (Dali::Toolkit::WebView *) 0 ; + std::string *arg2; arg1 = (Dali::Toolkit::WebView *)jarg1; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return; + } + std::string jarg2str = std::string(jarg2); + arg2 = &jarg2str; { try { - result = arg1->GetUrl(); + (arg1)->LoadHTMLString((std::string const &)*arg2); } catch (std::out_of_range& e) { { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; }; } catch (std::exception& e) { { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; }; } catch (Dali::DaliException e) { { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; }; } catch (...) { { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; }; } } - - jresult = SWIG_csharp_string_callback((&result)->c_str()); - return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebView_LoadHTMLString(void * jarg1, char * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebView_Reload(void * jarg1) { Dali::Toolkit::WebView *arg1 = (Dali::Toolkit::WebView *) 0 ; - std::string *arg2; arg1 = (Dali::Toolkit::WebView *)jarg1; - if (!jarg2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); - return; + { + try { + (arg1)->Reload(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } } - std::string jarg2str = std::string(jarg2); - arg2 = &jarg2str; +} + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebView_StopLoading(void * jarg1) { + Dali::Toolkit::WebView *arg1 = (Dali::Toolkit::WebView *) 0 ; + + arg1 = (Dali::Toolkit::WebView *)jarg1; { try { - (arg1)->LoadHTMLString((std::string const &)*arg2); + (arg1)->StopLoading(); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -103150,13 +102320,13 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebView_LoadHTMLString(void * jarg1, cha } } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebView_Reload(void * jarg1) { +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebView_Suspend(void * jarg1) { Dali::Toolkit::WebView *arg1 = (Dali::Toolkit::WebView *) 0 ; arg1 = (Dali::Toolkit::WebView *)jarg1; { try { - (arg1)->Reload(); + (arg1)->Suspend(); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -103177,13 +102347,13 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebView_Reload(void * jarg1) { } } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebView_StopLoading(void * jarg1) { +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebView_Resume(void * jarg1) { Dali::Toolkit::WebView *arg1 = (Dali::Toolkit::WebView *) 0 ; arg1 = (Dali::Toolkit::WebView *)jarg1; { try { - (arg1)->StopLoading(); + (arg1)->Resume(); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -103316,7 +102486,7 @@ SWIGEXPORT bool SWIGSTDCALL CSharp_Dali_WebView_CanGoForward(void * jarg1) { return ret; } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebView_EvaluateJavaScript(void * jarg1, char * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebView_EvaluateJavaScript(void * jarg1, char * jarg2, void* jarg3) { Dali::Toolkit::WebView *arg1 = (Dali::Toolkit::WebView *) 0 ; std::string *arg2; @@ -103327,9 +102497,17 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebView_EvaluateJavaScript(void * jarg1, } std::string jarg2_str = std::string(jarg2); arg2 = &jarg2_str; + { try { - (arg1)->EvaluateJavaScript((std::string const &)*arg2); + if (jarg3) { + void (*handler)(char*) = (void (*)(char*)) jarg3; + (arg1)->EvaluateJavaScript((std::string const &)*arg2, [handler](const std::string& result) { + handler(SWIG_csharp_string_callback(result.c_str())); + }); + } else { + (arg1)->EvaluateJavaScript((std::string const &)*arg2); + } } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -103440,79 +102618,43 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebView_ClearCache(void * jarg1) { } } -SWIGEXPORT Dali::Toolkit::Control * SWIGSTDCALL CSharp_Dali_WebView_SWIGUpcast(Dali::Toolkit::WebView *jarg1) { - return (Dali::Toolkit::Control *)jarg1; -} - - -// Proxy class of WebViewSignal. -// WebViewSignal has an argument of std::string type which is not supported at C# side. -// The purpose of this class is to convert signal argument of string type safely. -class WebViewSignalProxy : public ConnectionTracker -{ -public: - typedef Dali::Signal< void(Dali::Toolkit::WebView, const std::string&) > OriginalSignalType; - typedef Dali::Signal< void(Dali::Toolkit::WebView, char*) > ProxySignalType; - typedef void (*CallbackType)(Dali::Toolkit::WebView, char *); - - WebViewSignalProxy(OriginalSignalType* signal) - : mSignalPtr(signal) - { - } - - void Connect(CallbackType csharpCallback) - { - if (mSignalPtr->Empty()) - { - mSignalPtr->Connect(this, &WebViewSignalProxy::OnEmit); - } - mProxySignal.Connect(csharpCallback); - } - - void Disconnect(CallbackType csharpCallback) - { - mProxySignal.Disconnect(csharpCallback); - if (mProxySignal.Empty()) - { - mSignalPtr->Disconnect(this, &WebViewSignalProxy::OnEmit); - } - } - - bool Empty() - { - return mProxySignal.Empty(); - } - - std::size_t GetConnectionCount() - { - return mProxySignal.GetConnectionCount(); - } +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebView_ClearCookies(void * jarg1) { + Dali::Toolkit::WebView *arg1 = (Dali::Toolkit::WebView *) 0 ; - void Emit(Dali::Toolkit::WebView& webview, char* url) + arg1 = (Dali::Toolkit::WebView *)jarg1; { - if (!mProxySignal.Empty()) - { - mProxySignal.Emit(webview, url); + try { + (arg1)->ClearCookies(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; } } +} - void OnEmit(Dali::Toolkit::WebView webview, const std::string& url) - { - // Safe string conversion - mProxySignal.Emit(webview, SWIG_csharp_string_callback(url.c_str())); - } - -private: - OriginalSignalType* mSignalPtr; - ProxySignalType mProxySignal; -}; +SWIGEXPORT Dali::Toolkit::Control * SWIGSTDCALL CSharp_Dali_WebView_SWIGUpcast(Dali::Toolkit::WebView *jarg1) { + return (Dali::Toolkit::Control *)jarg1; +} -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WebViewSignalProxy_PageLoadStarted(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WebViewPageLoadSignal_PageLoadStarted(void * jarg1) { Dali::Toolkit::WebView* webview = (Dali::Toolkit::WebView *) jarg1; - WebViewSignalProxy* result = NULL; + SignalConverter::WebViewPageLoadSignal* result = NULL; { try { - result = new WebViewSignalProxy(&webview->PageLoadStartedSignal()); + result = new SignalConverter::WebViewPageLoadSignal(&webview->PageLoadStartedSignal()); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -103534,12 +102676,12 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WebViewSignalProxy_PageLoadStarted return (void*) result; } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WebViewSignalProxy_PageLoadFinished(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WebViewPageLoadSignal_PageLoadFinished(void * jarg1) { Dali::Toolkit::WebView* webview = (Dali::Toolkit::WebView *) jarg1; - WebViewSignalProxy* result = NULL; + SignalConverter::WebViewPageLoadSignal* result = NULL; { try { - result = new WebViewSignalProxy(&webview->PageLoadFinishedSignal()); + result = new SignalConverter::WebViewPageLoadSignal(&webview->PageLoadFinishedSignal()); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -103561,9 +102703,9 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WebViewSignalProxy_PageLoadFinishe return (void*) result; } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WebViewSignalProxy(void * jarg1) +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WebViewPageLoadSignal(void * jarg1) { - WebViewSignalProxy* object = (WebViewSignalProxy*) jarg1; + SignalConverter::WebViewPageLoadSignal* object = (SignalConverter::WebViewPageLoadSignal*) jarg1; { try { delete object; @@ -103587,42 +102729,66 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WebViewSignalProxy(void * jarg1) } } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_WebViewSignalProxy_Empty(void * jarg1) +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebViewPageLoadSignal_Connect(void * jarg1, void * jarg2) { - bool result; - WebViewSignalProxy* proxy = (WebViewSignalProxy*) jarg1; + SignalConverter::WebViewPageLoadSignal* proxy = (SignalConverter::WebViewPageLoadSignal*) jarg1; + SignalConverter::WebViewPageLoadSignal::CallbackType callback = (SignalConverter::WebViewPageLoadSignal::CallbackType) jarg2; { try { - result = (bool)proxy->Empty(); + proxy->Connect(callback); } catch (std::out_of_range& e) { { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; }; } catch (std::exception& e) { { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; }; } catch (Dali::DaliException e) { { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; }; } catch (...) { { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; }; } } - return (unsigned int) result; } -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_WebViewSignalProxy_GetConnectionCount(void * jarg1) -{ - std::size_t result; - WebViewSignalProxy* arg1 = (WebViewSignalProxy*) jarg1; +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebViewPageLoadSignal_Disconnect(void * jarg1, void * jarg2) { + SignalConverter::WebViewPageLoadSignal* proxy = (SignalConverter::WebViewPageLoadSignal*) jarg1; + SignalConverter::WebViewPageLoadSignal::CallbackType callback = (SignalConverter::WebViewPageLoadSignal::CallbackType) jarg2; { try { - result = arg1->GetConnectionCount(); + proxy->Disconnect(callback); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WebViewPageLoadErrorSignal_PageLoadError(void * jarg1) { + Dali::Toolkit::WebView* webview = (Dali::Toolkit::WebView *) jarg1; + SignalConverter::WebViewPageLoadErrorSignal* result = NULL; + { + try { + result = new SignalConverter::WebViewPageLoadErrorSignal(&webview->PageLoadErrorSignal()); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -103641,16 +102807,15 @@ SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_WebViewSignalProxy_GetConnectio }; } } - return (unsigned long) result; + return (void*) result; } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebViewSignalProxy_Connect(void * jarg1, void * jarg2) +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WebViewPageLoadErrorSignal(void * jarg1) { - WebViewSignalProxy* proxy = (WebViewSignalProxy*) jarg1; - WebViewSignalProxy::CallbackType callback = (WebViewSignalProxy::CallbackType) jarg2; + SignalConverter::WebViewPageLoadErrorSignal* object = (SignalConverter::WebViewPageLoadErrorSignal*) jarg1; { try { - proxy->Connect(callback); + delete object; } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -103671,13 +102836,13 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebViewSignalProxy_Connect(void * jarg1, } } - -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebViewSignalProxy_Disconnect(void * jarg1, void * jarg2) { - WebViewSignalProxy* proxy = (WebViewSignalProxy*) jarg1; - WebViewSignalProxy::CallbackType callback = (WebViewSignalProxy::CallbackType) jarg2; +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebViewPageLoadErrorSignal_Connect(void * jarg1, void * jarg2) +{ + SignalConverter::WebViewPageLoadErrorSignal* proxy = (SignalConverter::WebViewPageLoadErrorSignal*) jarg1; + SignalConverter::WebViewPageLoadErrorSignal::CallbackType callback = (SignalConverter::WebViewPageLoadErrorSignal::CallbackType) jarg2; { try { - proxy->Disconnect(callback); + proxy->Connect(callback); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -103699,21 +102864,12 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebViewSignalProxy_Disconnect(void * jar } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebViewSignalProxy_Emit(void * jarg1, void * jarg2, char * jarg3) { - if (!jarg2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::WebView & type is null", 0); - return ; - } - if (!jarg3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "jarg3 is null string", 0); - return ; - } - - WebViewSignalProxy* proxy = (WebViewSignalProxy*) jarg1; - Dali::Toolkit::WebView* webview = (Dali::Toolkit::WebView*) jarg2; +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebViewPageLoadErrorSignal_Disconnect(void * jarg1, void * jarg2) { + SignalConverter::WebViewPageLoadErrorSignal* proxy = (SignalConverter::WebViewPageLoadErrorSignal*) jarg1; + SignalConverter::WebViewPageLoadErrorSignal::CallbackType callback = (SignalConverter::WebViewPageLoadErrorSignal::CallbackType) jarg2; { try { - proxy->Emit(*webview, jarg3); + proxy->Disconnect(callback); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ;