[dali-csharp-binder] Add extra text selection support to TextEditor 72/245872/1
authorAli Alzyod <ali198724@gmail.com>
Sun, 18 Oct 2020 08:48:01 +0000 (11:48 +0300)
committerAli Alzyod <ali198724@gmail.com>
Sun, 18 Oct 2020 08:48:01 +0000 (11:48 +0300)
Add support for (SelectWholeText, SelectNone, GetSelectedText)

Change-Id: I2812130d377164066c85aa478258b5c920e2e549

dali-csharp-binder/src/text-editor.cpp

index 8860ef2..fd68985 100755 (executable)
@@ -561,6 +561,15 @@ SWIGEXPORT int SWIGSTDCALL CSharp_TextEditor_Property_PLACEHOLDER_get() {
   return jresult;
 }
 
+SWIGEXPORT int SWIGSTDCALL CSharp_Dali_TextEditor_Property_SELECTED_TEXT_get() {
+  int jresult ;
+  int result;
+
+  result = (int)Dali::Toolkit::DevelTextEditor::Property::SELECTED_TEXT;
+  jresult = (int)result;
+  return jresult;
+}
+
 SWIGEXPORT int SWIGSTDCALL CSharp_TextEditor_Property_SELECTED_TEXT_START_get() {
   int jresult ;
   int result;
@@ -979,6 +988,71 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextEditor_InputStyleChangedSignal(voi
   return jresult;
 }
 
+
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextEditor_SelectWholeText(void * jarg1) {
+  Dali::Toolkit::TextEditor *arg1 = (Dali::Toolkit::TextEditor *) 0;
+
+  arg1 = (Dali::Toolkit::TextEditor *)jarg1;
+  {
+    try {
+      Dali::Toolkit::DevelTextEditor::SelectWholeText( *arg1 );
+    }
+    catch (std::out_of_range& e) {
+      {
+        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
+      };
+    }
+    catch (std::exception& e) {
+      {
+        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
+      };
+    }
+    catch (Dali::DaliException e) {
+      {
+        SWIG_CSharpException(SWIG_UnknownError, e.condition);
+      };
+    }
+    catch (...) {
+      {
+        SWIG_CSharpException(SWIG_UnknownError, "unknown error");
+      };
+    }
+  }
+}
+
+
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextEditor_SelectNone(void * jarg1) {
+  Dali::Toolkit::TextEditor *arg1 = (Dali::Toolkit::TextEditor *) 0;
+
+  arg1 = (Dali::Toolkit::TextEditor *)jarg1;
+  {
+    try {
+      Dali::Toolkit::DevelTextEditor::SelectNone( *arg1 );
+    }
+    catch (std::out_of_range& e) {
+      {
+        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
+      };
+    }
+    catch (std::exception& e) {
+      {
+        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
+      };
+    }
+    catch (Dali::DaliException e) {
+      {
+        SWIG_CSharpException(SWIG_UnknownError, e.condition);
+      };
+    }
+    catch (...) {
+      {
+        SWIG_CSharpException(SWIG_UnknownError, "unknown error");
+      };
+    }
+  }
+}
+
+
 /*TextEditorSignal*/
 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_TextEditorSignal_Empty(void * jarg1) {
   unsigned int jresult ;