X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Ftext-controls%2Ftext-editor-devel.cpp;h=a7b4ae4e33caf9a8856af1f181d85bcbe749d8f7;hb=48000ec3ab1ca2d1f8001d192112e32357bb1dfc;hp=b0b248bd8d517dbdf5aa008a2ec12d7bd7f7bf56;hpb=c940eb40f599361d84edfc3883d5f329f58bc0b4;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 old mode 100755 new mode 100644 index b0b248b..a7b4ae4 --- 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) 2018 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. @@ -21,21 +21,88 @@ 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); +} + +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(); +} -InputMethodContext GetInputMethodContext( TextEditor textEditor ) +string CutText(TextEditor textEditor) { - return GetImpl( textEditor ).GetInputMethodContext(); + return GetImpl(textEditor).CutText(); } -MaxLengthReachedSignalType& MaxLengthReachedSignal( TextEditor textEditor ) +void PasteText(TextEditor textEditor) { - return GetImpl( textEditor ).MaxLengthReachedSignal(); + GetImpl(textEditor).PasteText(); } } // namespace DevelTextEditor