X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Ftext-controls%2Ftext-editor-devel.cpp;h=74a57e6dfc2c52f6e5922e874019715dd76ebda1;hp=adcff4c6fd5ca80379c267d32500cbd921a74263;hb=0f19aa986501f6b51de786a08b1fcfda00b849d8;hpb=4f4ab5b156cd1dfd274b1c660e836f575362f784 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 adcff4c..74a57e6 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) 2020 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. @@ -35,6 +35,26 @@ 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(); +} + void SelectWholeText(TextEditor textEditor) { GetImpl(textEditor).SelectWholeText(); @@ -45,6 +65,31 @@ 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(); +} + +void PasteText(TextEditor textEditor) +{ + GetImpl(textEditor).PasteText(); +} + } // namespace DevelTextEditor } // namespace Toolkit