Home
last modified time | relevance | path

Searched refs:forgroundWidth (Results 1 - 1 of 1) sorted by relevance

/foundation/arkui/ui_lite/frameworks/components/
H A Dui_box_scroll_bar.cpp54 int16_t forgroundWidth = static_cast<int16_t>(foregroundProportion_ * backgroundRect_.GetWidth()); in OnDraw() local
55 if (forgroundWidth < SCROLL_BAR_MIN_LEN) { in OnDraw()
56 forgroundWidth = SCROLL_BAR_MIN_LEN; in OnDraw()
59 static_cast<int16_t>(scrollProgress_ * (backgroundRect_.GetWidth() - forgroundWidth)); in OnDraw()
60 rect.SetRect(forgroundLeft, backgroundRect_.GetTop(), forgroundLeft + forgroundWidth - 1, in OnDraw()

Completed in 1 milliseconds