Merge "Add InputFilter to TextField, TextEditor" into devel/master
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / controls / text-controls / text-editor-devel.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 875e270..a685aee
@@ -1,8 +1,5 @@
-#ifndef DALI_TOOLKIT_TEXT_EDITOR_DEVEL_H
-#define DALI_TOOLKIT_TEXT_EDITOR_DEVEL_H
-
 /*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 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.
 
 namespace Dali
 {
-
 namespace Toolkit
 {
-
 namespace DevelTextEditor
 {
+InputMethodContext GetInputMethodContext(TextEditor textEditor)
+{
+  return GetImpl(textEditor).GetInputMethodContext();
+}
+
+MaxLengthReachedSignalType& MaxLengthReachedSignal(TextEditor textEditor)
+{
+  return GetImpl(textEditor).MaxLengthReachedSignal();
+}
+
+AnchorClickedSignalType& AnchorClickedSignal(TextEditor textEditor)
+{
+  return GetImpl(textEditor).AnchorClickedSignal();
+}
 
-InputMethodContext GetInputMethodContext( TextEditor textEditor )
+InputFilteredSignalType& InputFilteredSignal(TextEditor textEditor)
 {
-  return GetImpl( textEditor ).GetInputMethodContext();
+  return GetImpl(textEditor).InputFilteredSignal();
+}
+
+void SelectWholeText(TextEditor textEditor)
+{
+  GetImpl(textEditor).SelectWholeText();
+}
+
+void SelectNone(TextEditor textEditor)
+{
+  GetImpl(textEditor).SelectNone();
+}
+
+void ScrollBy(TextEditor textEditor, Vector2 scroll)
+{
+  GetImpl(textEditor).ScrollBy(scroll);
 }
 
 } // namespace DevelTextEditor
@@ -41,5 +65,3 @@ InputMethodContext GetInputMethodContext( TextEditor textEditor )
 } // namespace Toolkit
 
 } // namespace Dali
-
-#endif // DALI_TOOLKIT_TEXT_EDITOR_DEVEL_H