[dali_2.3.22] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / controls / text-controls / text-field-devel.cpp
index fce7819..7f19475 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -55,6 +55,11 @@ SelectionClearedSignalType& SelectionClearedSignal(TextField textField)
   return GetImpl(textField).SelectionClearedSignal();
 }
 
+SelectionStartedSignalType& SelectionStartedSignal(TextField textField)
+{
+  return GetImpl(textField).SelectionStartedSignal();
+}
+
 void SelectWholeText(TextField textField)
 {
   GetImpl(textField).SelectWholeText();
@@ -80,6 +85,11 @@ Vector<Vector2> GetTextPosition(TextField textField, const uint32_t startIndex,
   return GetImpl(textField).GetTextPosition(startIndex, endIndex);
 }
 
+Rect<> GetTextBoundingRectangle(TextField textField, uint32_t startIndex, uint32_t endIndex)
+{
+  return GetImpl(textField).GetTextBoundingRectangle(startIndex, endIndex);
+}
+
 string CopyText(TextField textField)
 {
   return GetImpl(textField).CopyText();
@@ -95,6 +105,26 @@ void PasteText(TextField textField)
   GetImpl(textField).PasteText();
 }
 
+void SetRemoveFrontInset(TextField textField, const bool remove)
+{
+  GetImpl(textField).SetRemoveFrontInset(remove);
+}
+
+bool IsRemoveFrontInset(TextField textField)
+{
+  return GetImpl(textField).IsRemoveFrontInset();
+}
+
+void SetRemoveBackInset(TextField textField, const bool remove)
+{
+  GetImpl(textField).SetRemoveBackInset(remove);
+}
+
+bool IsRemoveBackInset(TextField textField)
+{
+  return GetImpl(textField).IsRemoveBackInset();
+}
+
 } // namespace DevelTextField
 
 } // namespace Toolkit