Home
last modified time | relevance | path

Searched refs:newScore (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/rating/
H A Drender_rating.cpp394 double newScore = ceil(ratingScore_ / stepSize_) * stepSize_; in HandleTouchEvent() local
395 newScore = (newScore > starNum_) ? starNum_ : newScore; in HandleTouchEvent()
396 if (NearEqual(newScore, drawScore_)) { in HandleTouchEvent()
399 drawScore_ = newScore; in HandleTouchEvent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rating/
H A Drating_pattern.cpp327 std::ostringstream newScore; in RecalculatedRatingScoreBasedOnEventPoint() local
329 newScore << std::fixed << std::setprecision(1) << newDrawScore; in RecalculatedRatingScoreBasedOnEventPoint()
331 … host->OnAccessibilityEvent(AccessibilityEventType::TEXT_CHANGE, oldScore.str(), newScore.str()); in RecalculatedRatingScoreBasedOnEventPoint()