From: dongsug song Date: Tue, 8 Jan 2019 04:09:46 +0000 (+0000) Subject: Merge " Add C# binding for MatchSystemLanguageDirection" into devel/master X-Git-Tag: dali_1.4.2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=52314717397b213736158f0b9436131846359dea;hp=903c81c1cf860c4590d45e8de4a15a5bbb5bcec7;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git Merge " Add C# binding for MatchSystemLanguageDirection" into devel/master --- diff --git a/dali-csharp-binder/src/application.cpp b/dali-csharp-binder/src/application.cpp index 6878a17..ec1e507 100755 --- a/dali-csharp-binder/src/application.cpp +++ b/dali-csharp-binder/src/application.cpp @@ -844,6 +844,134 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_Application_GetLanguage(void * jarg1) return jresult; } +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_SetViewMode(void * jarg1, int jarg2) { + Dali::Application *arg1 = (Dali::Application *) 0 ; + Dali::ViewMode arg2 ; + + arg1 = (Dali::Application *)jarg1; + arg2 = (Dali::ViewMode)jarg2; + { + try { + (arg1)->SetViewMode(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 int SWIGSTDCALL CSharp_Dali_Application_GetViewMode(void * jarg1) { + int jresult ; + Dali::Application *arg1 = (Dali::Application *) 0 ; + Dali::ViewMode result; + + arg1 = (Dali::Application *)jarg1; + { + try { + result = (Dali::ViewMode)((Dali::Application const *)arg1)->GetViewMode(); + } 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 = (int)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_SetStereoBase(void * jarg1, float jarg2) { + Dali::Application *arg1 = (Dali::Application *) 0 ; + float arg2 ; + + arg1 = (Dali::Application *)jarg1; + arg2 = (float)jarg2; + { + try { + (arg1)->SetStereoBase(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 float SWIGSTDCALL CSharp_Dali_Application_GetStereoBase(void * jarg1) { + float jresult ; + Dali::Application *arg1 = (Dali::Application *) 0 ; + float result; + + arg1 = (Dali::Application *)jarg1; + { + try { + result = (float)((Dali::Application const *)arg1)->GetStereoBase(); + } 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 void * SWIGSTDCALL CSharp_Dali_Application_InitSignal(void * jarg1) { void * jresult ; Dali::Application *arg1 = (Dali::Application *) 0 ; diff --git a/dali-csharp-binder/src/dali_wrap.cpp b/dali-csharp-binder/src/dali_wrap.cpp index caef00f..377e641 100755 --- a/dali-csharp-binder/src/dali_wrap.cpp +++ b/dali-csharp-binder/src/dali_wrap.cpp @@ -33247,16 +33247,6 @@ SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Actor_Property_COLOR_MODE_get() { } -SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Actor_Property_POSITION_INHERITANCE_get() { - int jresult ; - int result; - - result = (int)Dali::Actor::Property::POSITION_INHERITANCE; - jresult = (int)result; - return jresult; -} - - SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Actor_Property_DRAW_MODE_get() { int jresult ; int result; @@ -34863,39 +34853,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Actor_SetInheritPosition(void * jarg1, u } -SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Actor_GetPositionInheritanceMode(void * jarg1) { - int jresult ; - Dali::Actor *arg1 = (Dali::Actor *) 0 ; - Dali::PositionInheritanceMode result; - - arg1 = (Dali::Actor *)jarg1; - { - try { - result = (Dali::PositionInheritanceMode)((Dali::Actor const *)arg1)->GetPositionInheritanceMode(); - } 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 = (int)result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Actor_IsPositionInherited(void * jarg1) { unsigned int jresult ; Dali::Actor *arg1 = (Dali::Actor *) 0 ; @@ -84420,55 +84377,6 @@ SWIGEXPORT int SWIGSTDCALL CSharp_Dali_TextLabel_Property_TEXT_COLOR_get() { return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_Dali_TextLabel_Property_SHADOW_OFFSET_get() { - int jresult ; - int result; - - result = (int)Dali::Toolkit::TextLabel::Property::SHADOW_OFFSET; - jresult = (int)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_Dali_TextLabel_Property_SHADOW_COLOR_get() { - int jresult ; - int result; - - result = (int)Dali::Toolkit::TextLabel::Property::SHADOW_COLOR; - jresult = (int)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_Dali_TextLabel_Property_UNDERLINE_ENABLED_get() { - int jresult ; - int result; - - result = (int)Dali::Toolkit::TextLabel::Property::UNDERLINE_ENABLED; - jresult = (int)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_Dali_TextLabel_Property_UNDERLINE_COLOR_get() { - int jresult ; - int result; - - result = (int)Dali::Toolkit::TextLabel::Property::UNDERLINE_COLOR; - jresult = (int)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_Dali_TextLabel_Property_UNDERLINE_HEIGHT_get() { - int jresult ; - int result; - - result = (int)Dali::Toolkit::TextLabel::Property::UNDERLINE_HEIGHT; - jresult = (int)result; - return jresult; -} - SWIGEXPORT int SWIGSTDCALL CSharp_Dali_TextLabel_Property_ENABLE_MARKUP_get() { int jresult ; diff --git a/dali-csharp-binder/src/input-method-context.cpp b/dali-csharp-binder/src/input-method-context.cpp index ddcd31c..abb2e3f 100755 --- a/dali-csharp-binder/src/input-method-context.cpp +++ b/dali-csharp-binder/src/input-method-context.cpp @@ -460,14 +460,12 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_InputMethodContext_CallbackData(v } SWIGEXPORT void SWIGSTDCALL CSharp_Dali_InputMethodContext_Finalize(void * jarg1) { - //This is not necessary in tizen5.0, but because of backwards compatibility, the method is maintained but the body is deleted. - //Dali::InputMethodContext *arg1 = (Dali::InputMethodContext *) 0 ; + Dali::InputMethodContext *arg1 = (Dali::InputMethodContext *) 0 ; - //arg1 = (Dali::InputMethodContext *)jarg1; + arg1 = (Dali::InputMethodContext *)jarg1; { try { - //This is not necessary in tizen5.0, but because of backwards compatibility, the method is maintained but the body is deleted. - //(arg1)->Finalize(); + (arg1)->Finalize(); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; diff --git a/dali-csharp-binder/src/text-field.cpp b/dali-csharp-binder/src/text-field.cpp index 8204762..303c940 100755 --- a/dali-csharp-binder/src/text-field.cpp +++ b/dali-csharp-binder/src/text-field.cpp @@ -177,26 +177,6 @@ SWIGEXPORT int SWIGSTDCALL CSharp_Dali_TextField_Property_PLACEHOLDER_TEXT_COLOR } -SWIGEXPORT int SWIGSTDCALL CSharp_Dali_TextField_Property_SHADOW_OFFSET_get() { - int jresult ; - int result; - - result = (int)Dali::Toolkit::TextField::Property::SHADOW_OFFSET; - jresult = (int)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_Dali_TextField_Property_SHADOW_COLOR_get() { - int jresult ; - int result; - - result = (int)Dali::Toolkit::TextField::Property::SHADOW_COLOR; - jresult = (int)result; - return jresult; -} - - SWIGEXPORT int SWIGSTDCALL CSharp_Dali_TextField_Property_PRIMARY_CURSOR_COLOR_get() { int jresult ; int result; diff --git a/packaging/dali-csharp-binder.spec b/packaging/dali-csharp-binder.spec index 75f8352..065d119 100755 --- a/packaging/dali-csharp-binder.spec +++ b/packaging/dali-csharp-binder.spec @@ -21,7 +21,7 @@ Name: dali-csharp-binder Summary: The DALI Csharp Binder -Version: 1.3.54 +Version: 1.4.1 Release: 1 Group: uifw/graphic License: Apache-2.0 and BSD-3-Clause and MIT