From 6c88f3abfaceb9e28febbf32ce8a1cdd4e2f955c Mon Sep 17 00:00:00 2001 From: "xb.teng" Date: Thu, 8 Jun 2017 00:29:46 +0800 Subject: [PATCH] manual binding for TextEditor and ApplicationExtension There are two changes: 1. Add devel properties(LINE_COUNT/PLACEHOLDER_TEXT/PLACEHOLDER_TEXT_COLOR) binding for text editor 2. Add api called Start binding for application extension Change-Id: I2c2899ccf7bf734e89d6829adfbba14e0ec01935 Signed-off-by: xb.teng --- dali-csharp-binder/src/dali_wrap.cpp | 22 +++++++++++++++++++++ dali-csharp-binder/src/devel-property-wrap.cpp | 27 ++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/dali-csharp-binder/src/dali_wrap.cpp b/dali-csharp-binder/src/dali_wrap.cpp index 14a2a4f..9ee6f50 100755 --- a/dali-csharp-binder/src/dali_wrap.cpp +++ b/dali-csharp-binder/src/dali_wrap.cpp @@ -53464,6 +53464,28 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationExtensions_Init(void * jarg1) } } +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationExtensions_Start(void * jarg1) { + Dali::ApplicationExtensions *arg1 = (Dali::ApplicationExtensions *) 0 ; + + arg1 = (Dali::ApplicationExtensions *)jarg1; + { + try { + (arg1)->Start(); + } 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 (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationExtensions_Terminate(void * jarg1) { Dali::ApplicationExtensions *arg1 = (Dali::ApplicationExtensions *) 0 ; diff --git a/dali-csharp-binder/src/devel-property-wrap.cpp b/dali-csharp-binder/src/devel-property-wrap.cpp index c47c58a..d6faa42 100755 --- a/dali-csharp-binder/src/devel-property-wrap.cpp +++ b/dali-csharp-binder/src/devel-property-wrap.cpp @@ -299,6 +299,33 @@ SWIGEXPORT int SWIGSTDCALL CSharp_TextEditor_Property_PIXEL_SIZE_get() { return jresult; } +SWIGEXPORT int SWIGSTDCALL CSharp_TextEditor_Property_LINE_COUNT_get() { + int jresult ; + int result; + + result = (int)Dali::Toolkit::DevelTextEditor::Property::LINE_COUNT; + jresult = (int)result; + return jresult; +} + +SWIGEXPORT int SWIGSTDCALL CSharp_TextEditor_Property_PLACEHOLDER_TEXT_get() { + int jresult ; + int result; + + result = (int)Dali::Toolkit::DevelTextEditor::Property::PLACEHOLDER_TEXT; + jresult = (int)result; + return jresult; +} + +SWIGEXPORT int SWIGSTDCALL CSharp_TextEditor_Property_PLACEHOLDER_TEXT_COLOR_get() { + int jresult ; + int result; + + result = (int)Dali::Toolkit::DevelTextEditor::Property::PLACEHOLDER_TEXT_COLOR; + jresult = (int)result; + return jresult; +} + SWIGEXPORT int SWIGSTDCALL CSharp_TextField_Property_HIDDEN_INPUT_SETTINGS_get() { int jresult ; int result; -- 2.7.4