X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Ftext-controls%2Ftext-field-devel.cpp;h=210575694329d69256544433be0726076c33b565;hb=HEAD;hp=e9a609f55531a5f0c94e8caf799ba9915828d73b;hpb=f5d6eddacdd05840b7024b26d3b184a652cfed11;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/controls/text-controls/text-field-devel.cpp b/dali-toolkit/devel-api/controls/text-controls/text-field-devel.cpp index e9a609f..7f19475 100644 --- a/dali-toolkit/devel-api/controls/text-controls/text-field-devel.cpp +++ b/dali-toolkit/devel-api/controls/text-controls/text-field-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,16 @@ SelectionChangedSignalType& SelectionChangedSignal(TextField textField) return GetImpl(textField).SelectionChangedSignal(); } +SelectionClearedSignalType& SelectionClearedSignal(TextField textField) +{ + return GetImpl(textField).SelectionClearedSignal(); +} + +SelectionStartedSignalType& SelectionStartedSignal(TextField textField) +{ + return GetImpl(textField).SelectionStartedSignal(); +} + void SelectWholeText(TextField textField) { GetImpl(textField).SelectWholeText(); @@ -65,6 +75,21 @@ void SelectText(TextField textField, const uint32_t start, const uint32_t end) GetImpl(textField).SelectText(start, end); } +Vector GetTextSize(TextField textField, const uint32_t startIndex, const uint32_t endIndex) +{ + return GetImpl(textField).GetTextSize(startIndex, endIndex); +} + +Vector GetTextPosition(TextField textField, const uint32_t startIndex, const uint32_t endIndex) +{ + return GetImpl(textField).GetTextPosition(startIndex, endIndex); +} + +Rect<> GetTextBoundingRectangle(TextField textField, uint32_t startIndex, uint32_t endIndex) +{ + return GetImpl(textField).GetTextBoundingRectangle(startIndex, endIndex); +} + string CopyText(TextField textField) { return GetImpl(textField).CopyText(); @@ -80,6 +105,26 @@ void PasteText(TextField textField) GetImpl(textField).PasteText(); } +void SetRemoveFrontInset(TextField textField, const bool remove) +{ + GetImpl(textField).SetRemoveFrontInset(remove); +} + +bool IsRemoveFrontInset(TextField textField) +{ + return GetImpl(textField).IsRemoveFrontInset(); +} + +void SetRemoveBackInset(TextField textField, const bool remove) +{ + GetImpl(textField).SetRemoveBackInset(remove); +} + +bool IsRemoveBackInset(TextField textField) +{ + return GetImpl(textField).IsRemoveBackInset(); +} + } // namespace DevelTextField } // namespace Toolkit