X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Ftext-controls%2Ftext-editor-devel.cpp;h=41d0c345cbad1fb8bbb9ba5923371a68c400ea37;hb=refs%2Fchanges%2F16%2F269516%2F7;hp=563bc025ec96bf2353dc0a0b8dc7bbbfdbd2dc76;hpb=ac95292b53ca62c34114cde6e78e8595909bcb9c;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/controls/text-controls/text-editor-devel.cpp b/dali-toolkit/devel-api/controls/text-controls/text-editor-devel.cpp index 563bc02..41d0c34 100644 --- a/dali-toolkit/devel-api/controls/text-controls/text-editor-devel.cpp +++ b/dali-toolkit/devel-api/controls/text-controls/text-editor-devel.cpp @@ -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. @@ -50,6 +50,21 @@ InputFilteredSignalType& InputFilteredSignal(TextEditor textEditor) return GetImpl(textEditor).InputFilteredSignal(); } +SelectionChangedSignalType& SelectionChangedSignal(TextEditor textEditor) +{ + return GetImpl(textEditor).SelectionChangedSignal(); +} + +SelectionClearedSignalType& SelectionClearedSignal(TextEditor textEditor) +{ + return GetImpl(textEditor).SelectionClearedSignal(); +} + +SelectionStartedSignalType& SelectionStartedSignal(TextEditor textEditor) +{ + return GetImpl(textEditor).SelectionStartedSignal(); +} + void SelectWholeText(TextEditor textEditor) { GetImpl(textEditor).SelectWholeText(); @@ -70,6 +85,31 @@ void ScrollBy(TextEditor textEditor, Vector2 scroll) GetImpl(textEditor).ScrollBy(scroll); } +Vector GetTextSize(TextEditor textEditor, const uint32_t startIndex, const uint32_t endIndex) +{ + return GetImpl(textEditor).GetTextSize(startIndex, endIndex); +} + +Vector GetTextPosition(TextEditor textEditor, const uint32_t startIndex, const uint32_t endIndex) +{ + return GetImpl(textEditor).GetTextPosition(startIndex, endIndex); +} + +string CopyText(TextEditor textEditor) +{ + return GetImpl(textEditor).CopyText(); +} + +string CutText(TextEditor textEditor) +{ + return GetImpl(textEditor).CutText(); +} + +void PasteText(TextEditor textEditor) +{ + GetImpl(textEditor).PasteText(); +} + } // namespace DevelTextEditor } // namespace Toolkit