-
/*
- * 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.
*
*/
-// CLASS HEADER
+// INTERNAL INCLUDES
#include <dali-toolkit/devel-api/controls/text-controls/text-editor-devel.h>
-
-// INTERNAL HEADER
#include <dali-toolkit/internal/controls/text-controls/text-editor-impl.h>
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();
+}
+
+CursorPositionChangedSignalType& CursorPositionChangedSignal(TextEditor textEditor)
+{
+ return GetImpl(textEditor).CursorPositionChangedSignal();
+}
+
+InputFilteredSignalType& InputFilteredSignal(TextEditor textEditor)
+{
+ return GetImpl(textEditor).InputFilteredSignal();
+}
+
+SelectionChangedSignalType& SelectionChangedSignal(TextEditor textEditor)
+{
+ return GetImpl(textEditor).SelectionChangedSignal();
+}
+
+SelectionClearedSignalType& SelectionClearedSignal(TextEditor textEditor)
+{
+ return GetImpl(textEditor).SelectionClearedSignal();
+}
+
+void SelectWholeText(TextEditor textEditor)
+{
+ GetImpl(textEditor).SelectWholeText();
+}
+
+void SelectNone(TextEditor textEditor)
+{
+ GetImpl(textEditor).SelectNone();
+}
+
+void SelectText(TextEditor textEditor, const uint32_t start, const uint32_t end)
+{
+ GetImpl(textEditor).SelectText(start, end);
+}
+
+void ScrollBy(TextEditor textEditor, Vector2 scroll)
+{
+ GetImpl(textEditor).ScrollBy(scroll);
+}
+
+string CopyText(TextEditor textEditor)
+{
+ return GetImpl(textEditor).CopyText();
+}
+
+string CutText(TextEditor textEditor)
+{
+ return GetImpl(textEditor).CutText();
+}
-ScrollStateChangedSignalType& ScrollStateChangedSignal( TextEditor textEditor )
+void PasteText(TextEditor textEditor)
{
- return Dali::Toolkit::GetImpl( textEditor ).ScrollStateChangedSignal();
+ GetImpl(textEditor).PasteText();
}
-} // namespace DevelText
+} // namespace DevelTextEditor
} // namespace Toolkit