From: Bowon Ryu Date: Thu, 10 Nov 2022 06:08:43 +0000 (+0900) Subject: [Tizen] Add DISABLE_STYLE_CHANGE_SIGNALS in NUI Text components X-Git-Tag: accepted/tizen/7.0/unified/20230428.015842^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c3170f6cc4e91e8fa6ee481f43095bd5efceacf5;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git [Tizen] Add DISABLE_STYLE_CHANGE_SIGNALS in NUI Text components If the text components have a NUI theme, dali's style change signal is disabled. Change-Id: Iba74b06738a1144088c359fcd3fd1ea66710808d Signed-off-by: Bowon Ryu --- diff --git a/dali-csharp-binder/src/dali-wrap.cpp b/dali-csharp-binder/src/dali-wrap.cpp index daee50e..50f3ae4 100644 --- a/dali-csharp-binder/src/dali-wrap.cpp +++ b/dali-csharp-binder/src/dali-wrap.cpp @@ -48551,16 +48551,16 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextLabel_New__SWIG_0() { } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextLabel_New__SWIG_1(char * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextLabel_New__SWIG_1(char * text) { void * jresult ; std::string *arg1 = 0 ; Dali::Toolkit::TextLabel result; - if (!jarg1) { + if (!text) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); return 0; } - std::string arg1_str(jarg1); + std::string arg1_str(text); arg1 = &arg1_str; { try { @@ -48576,6 +48576,54 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextLabel_New__SWIG_1(char * jarg1) { } +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextLabel_New_With_Style(bool hasStyle) { + void * jresult ; + Dali::Toolkit::TextLabel result; + + { + try { + if (hasStyle) { + result = Dali::Toolkit::TextLabel::New(Dali::Toolkit::Control::ControlBehaviour::DISABLE_STYLE_CHANGE_SIGNALS); + } else { + result = Dali::Toolkit::TextLabel::New(); + } + } CALL_CATCH_EXCEPTION(0); + } + + jresult = new Dali::Toolkit::TextLabel((const Dali::Toolkit::TextLabel &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextLabel_New_With_String_Style(char * text, bool hasStyle) { + void * jresult ; + std::string *arg1 = 0 ; + Dali::Toolkit::TextLabel result; + + if (!text) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return 0; + } + std::string arg1_str(text); + arg1 = &arg1_str; + { + try { + if (hasStyle) { + result = Dali::Toolkit::TextLabel::New(Dali::Toolkit::Control::ControlBehaviour::DISABLE_STYLE_CHANGE_SIGNALS, (std::string const &)*arg1); + } else { + result = Dali::Toolkit::TextLabel::New((std::string const &)*arg1); + } + } CALL_CATCH_EXCEPTION(0); + } + + jresult = new Dali::Toolkit::TextLabel((const Dali::Toolkit::TextLabel &)result); + + //argout typemap for const std::string& + + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TextLabel__SWIG_0() { void * jresult ; Dali::Toolkit::TextLabel *result = 0 ; diff --git a/dali-csharp-binder/src/text-editor-wrap.cpp b/dali-csharp-binder/src/text-editor-wrap.cpp index 0f217da..13f4d1a 100755 --- a/dali-csharp-binder/src/text-editor-wrap.cpp +++ b/dali-csharp-binder/src/text-editor-wrap.cpp @@ -795,6 +795,25 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextEditor_New() { } +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextEditor_New_With_Style(bool hasStyle) { + void * jresult ; + Dali::Toolkit::TextEditor result; + + { + try { + if (hasStyle) { + result = Dali::Toolkit::TextEditor::New(Dali::Toolkit::Control::ControlBehaviour::DISABLE_STYLE_CHANGE_SIGNALS); + } else { + result = Dali::Toolkit::TextEditor::New(); + } + } CALL_CATCH_EXCEPTION(0); + } + + jresult = new Dali::Toolkit::TextEditor((const Dali::Toolkit::TextEditor &)result); + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TextEditor__SWIG_0() { void * jresult ; Dali::Toolkit::TextEditor *result = 0 ; diff --git a/dali-csharp-binder/src/text-field-wrap.cpp b/dali-csharp-binder/src/text-field-wrap.cpp index 98ada7d..2cff05d 100755 --- a/dali-csharp-binder/src/text-field-wrap.cpp +++ b/dali-csharp-binder/src/text-field-wrap.cpp @@ -717,6 +717,25 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextField_New() { } +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextField_New_With_Style(bool hasStyle) { + void * jresult ; + Dali::Toolkit::TextField result; + + { + try { + if (hasStyle) { + result = Dali::Toolkit::TextField::New(Dali::Toolkit::Control::ControlBehaviour::DISABLE_STYLE_CHANGE_SIGNALS); + } else { + result = Dali::Toolkit::TextField::New(); + } + } CALL_CATCH_EXCEPTION(0); + } + + jresult = new Dali::Toolkit::TextField((const Dali::Toolkit::TextField &)result); + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TextField__SWIG_0() { void * jresult ; Dali::Toolkit::TextField *result = 0 ;