From: Huayong Xu Date: Mon, 8 Apr 2019 06:45:35 +0000 (+0800) Subject: add some inerfaces to select all text of text-field X-Git-Tag: dali_1.4.16~1^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git;a=commitdiff_plain;h=55976d19cb15820a6892652da971311550d8ea1d add some inerfaces to select all text of text-field Some interfaces are added for text-field, all text could be selected and grah handle / popup be enabled or disabled. Change-Id: Ie5cabe2ec4a0fe26875e547de659089e15afdb24 Signed-off-by: Huayong Xu --- diff --git a/dali-csharp-binder/src/text-field.cpp b/dali-csharp-binder/src/text-field.cpp index 303c940..34841cb 100755 --- a/dali-csharp-binder/src/text-field.cpp +++ b/dali-csharp-binder/src/text-field.cpp @@ -523,6 +523,24 @@ SWIGEXPORT int SWIGSTDCALL CSharp_TextField_Property_ENABLE_SELECTION_get() { return jresult; } +SWIGEXPORT int SWIGSTDCALL CSharp_TextField_Property_ENABLE_GRAB_HANDLE_get() { + int jresult; + int result; + + result = (int)Dali::Toolkit::DevelTextField::Property::ENABLE_GRAB_HANDLE; + jresult = (int)result; + return jresult; +} + +SWIGEXPORT int SWIGSTDCALL CSharp_TextField_Property_ENABLE_GRAB_HANDLE_POPUP_get() { + int jresult; + int result; + + result = (int)Dali::Toolkit::DevelTextField::Property::ENABLE_GRAB_HANDLE_POPUP; + jresult = (int)result; + return jresult; +} + SWIGEXPORT int SWIGSTDCALL CSharp_TextField_Property_PLACEHOLDER_get() { int jresult ; int result; @@ -966,6 +984,38 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextField_InputStyleChangedSignal(void } +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextField_SelectWholeText(void * jarg1) { + Dali::Toolkit::TextField *arg1 = (Dali::Toolkit::TextField *) 0; + + arg1 = (Dali::Toolkit::TextField *)jarg1; + { + try { + Dali::Toolkit::DevelTextField::SelectWholeText( *arg1 ); + } + catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); + }; + } + catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); + }; + } + catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); + }; + } + catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); + }; + } + } +} + + SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_TextFieldSignal_Empty(void * jarg1) { unsigned int jresult ; Dali::Signal< void (Dali::Toolkit::TextField) > *arg1 = (Dali::Signal< void (Dali::Toolkit::TextField) > *) 0 ;