Merge "Text selection refactoring" 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 97ee0fa..adcff4c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 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();
+}
+
+void SelectWholeText(TextEditor textEditor)
+{
+  GetImpl(textEditor).SelectWholeText();
+}
 
-InputMethodContext GetInputMethodContext( TextEditor textEditor )
+void SelectNone(TextEditor textEditor)
 {
-  return GetImpl( textEditor ).GetInputMethodContext();
+  GetImpl(textEditor).SelectNone();
 }
 
 } // namespace DevelTextEditor
 
 } // namespace Toolkit
 
-} // namespace Dali
\ No newline at end of file
+} // namespace Dali