X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fcontroller%2Ftext-controller.cpp;h=e8d6337df07dac0e29310393602d57e9592a7f49;hb=e4025736c4d5e85ab7408f9d6932cc7b3e9c9fef;hp=53628048553147f2834cf43c1f76c3f11d205474;hpb=8d70765e9e608bda15d8e04720687f3a0ddc0e81;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/controller/text-controller.cpp b/dali-toolkit/internal/text/controller/text-controller.cpp index 5362804..e8d6337 100644 --- a/dali-toolkit/internal/text/controller/text-controller.cpp +++ b/dali-toolkit/internal/text/controller/text-controller.cpp @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -472,6 +473,11 @@ void Controller::GetText(std::string& text) const mImpl->GetText(text); } +void Controller::SetSpannedText(const Text::Spanned& spannedText) +{ + SpannableHandler::SetSpannedText(*this, spannedText); +} + void Controller::SetPlaceholderText(PlaceholderType type, const std::string& text) { PlaceholderHandler::SetPlaceholderText(*this, type, text); @@ -1420,6 +1426,16 @@ Rect Controller::GetLineBoundingRectangle(const uint32_t lineIndex) return GetLineBoundingRect(mImpl->mModel, lineIndex); } +Rect Controller::GetCharacterBoundingRectangle(const uint32_t charIndex) +{ + return GetCharacterBoundingRect(mImpl->mModel, charIndex); +} + +int Controller::GetCharacterIndexAtPosition(float visualX, float visualY) +{ + return GetCharIndexAtPosition(mImpl->mModel, visualX, visualY); +} + Rect<> Controller::GetTextBoundingRectangle(CharacterIndex startIndex, CharacterIndex endIndex) { Vector sizeList;