}
int
-_TokenEditPresenter::GetTokenIndexFromCoordinate(const FloatPoint point) const
+_TokenEditPresenter::GetTokenIndexFromCoordinate(const Point point) const
{
int tokenIndex = -1;
if (pToken)
{
FloatRectangle tokenRect = pToken->displayRect;
- if (tokenRect.Contains(point))
+ if (tokenRect.Contains(FloatPoint(point.x, point.y)))
{
tokenIndex = i;
break;
result
_TokenEditPresenter::ProcessTokeningByTouchEvent(const _Control& source, const _TouchInfo& touchinfo)
{
- int tokenIndex = GetTokenIndexFromCoordinate(touchinfo.GetCurrentPosition());
+ int tokenIndex = GetTokenIndexFromCoordinate(_CoordinateSystemUtils::ConvertToInteger(touchinfo.GetCurrentPosition()));
//Reset "longPressed" when Touch released on a different token after long gesture on a token
if (__trackTokenIndex != tokenIndex)
//Remove token focus on touch press
__focusedTokenIndex = -1;
- int tokenIndex = GetTokenIndexFromCoordinate(touchinfo.GetCurrentPosition());
+ int tokenIndex = GetTokenIndexFromCoordinate(_CoordinateSystemUtils::ConvertToInteger(touchinfo.GetCurrentPosition()));
__trackTokenIndex = tokenIndex;
_TouchInfo TouchInfo(touchinfo);
bool DrawDescriptionText(void);
result SetDescriptionTextRect(const Tizen::Graphics::FloatRectangle& rect);
result TrimTokenAndAdjustEllipsisAt(int index);
- int GetTokenIndexFromCoordinate(const Tizen::Graphics::FloatPoint point) const;
+ int GetTokenIndexFromCoordinate(const Tizen::Graphics::Point point) const;
result SetEditingTokenTextBounds(int index, bool isSetText = true);
result ProcessTokeningByTouchEvent(const _Control& source, const _TouchInfo& touchinfo);
result SetTokenBoundsByTouchInfo(const _TouchInfo& touchinfo);