X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Ftext-controls%2Ftext-editor-devel.cpp;h=37678d8de024e1fc89a9b6aada334296c5efc73a;hb=b7fa1ad780f9948dd2738dfaa630f97e5f5a7a81;hp=e9292bff424802c138ea54ac473f2f63cd9e4704;hpb=026776eb4b0303604b3c6ca5857cc1ac59b4006e;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 e9292bf..37678d8 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,6 +1,5 @@ - /* - * 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. @@ -16,27 +15,47 @@ * */ -// CLASS HEADER +// INTERNAL INCLUDES #include - -// INTERNAL HEADER #include 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(); +} + +void SelectWholeText(TextEditor textEditor) +{ + GetImpl(textEditor).SelectWholeText(); +} + +void SelectNone(TextEditor textEditor) +{ + GetImpl(textEditor).SelectNone(); +} -ScrollStateChangedSignalType& ScrollStateChangedSignal( TextEditor textEditor ) +void ScrollBy(TextEditor textEditor, Vector2 scroll) { - return Dali::Toolkit::GetImpl( textEditor ).ScrollStateChangedSignal(); + GetImpl(textEditor).ScrollBy(scroll); } -} // namespace DevelText +} // namespace DevelTextEditor } // namespace Toolkit